|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.ceryle.ui.search.GraphSearchPanel
public class GraphSearchPanel
Extends JPanel, creating a panel for graph searching. UI-wise, this just includes the search results, but behind the scenes also the machinery for graph-based queries.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static Color |
COLOR_SELECTED_HIT_BG
The color used as the background color for selected hits. |
protected JList |
m_resultList
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GraphSearchPanel(FindReplaceDialog dialog)
Constructor for a GraphSearchPanel provided a MessageWriter. |
|
| Method Summary | |
|---|---|
boolean |
clearResults()
Clear the results list, returning true if they are successfully cleared. |
TNode |
getResult()
Returns the single result of a search, the selected item in the search result list, or null if empty. |
int |
getResultCount()
Returns the number of matching Topics in the last-performed search. |
Set |
getResults()
Returns a Set containing the results of the last-performed search, or null if empty. |
void |
loadTopicMap(TMLayoutPanel tmlpanel)
Builds the HashMap containing references to all TNodes in the graph found in the provided TMLayoutPanel tmlpanel, crossreferenced with their corresponding Topics, or null when the latter is unavailable. |
boolean |
search(String searchString,
boolean next)
Searches the graph for the string searchString, starting at the beginning of the iterated results if next is false, or at the end of the last search if true. |
void |
selectTopics(ActionEvent event)
Selects in the graph those Topics selected in the results list. |
void |
setCLUT(ColorLookupTable clut)
Sets the ColorLookupTable (CLUT) to clut. |
protected void |
setResultList(StackSet set)
Sets the displayed list based on the search result StackSet set. |
void |
writeStatus(String message)
Sets the content of the status line to the String message. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static Color COLOR_SELECTED_HIT_BG
protected JList m_resultList
| Constructor Detail |
|---|
public GraphSearchPanel(FindReplaceDialog dialog)
| Method Detail |
|---|
public void setCLUT(ColorLookupTable clut)
public void selectTopics(ActionEvent event)
public boolean search(String searchString,
boolean next)
public int getResultCount()
public Set getResults()
public TNode getResult()
protected void setResultList(StackSet set)
public boolean clearResults()
public void loadTopicMap(TMLayoutPanel tmlpanel)
If called with a null parameter after the TMLayoutPanel has been set, re-processes the graph (perhaps with a different set of visible nodes).
tmlpanel - the TMLayoutPanel source of the graphpublic void writeStatus(String message)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||