Inheritance diagram for org::gel::mauve::gui::navigation::SearchResultPanel:


Public Member Functions | |
| void | addTreeModelListener (TreeModelListener listen) |
| passes on listeners to real tree model | |
| void | displayFeatures (Object[] data) |
| displays the data passed into the method | |
| Object | getChild (Object parent, int index) |
| Finds the child of the given object. | |
| int | getChildCount (Object parent) |
| Returns the number of children the object has. | |
| int | getIndexOfChild (Object parent, Object child) |
| Returns the index of the child. | |
| Object | getRoot () |
| returns undisplayed root of the tree | |
| JScrollPane | getScrollPane () |
| returns a reference to the ScrollPane that contains this result_panel | |
| Component | getTreeCellRendererComponent (JTree tree, Object val, boolean selected, boolean expanded, boolean leaf, int row, boolean focus) |
| facilitates painting of tree- converts feature to its name | |
| boolean | isLeaf (Object node) |
| Returns true if the object is a leaf. | |
| void | removeTreeModelListener (TreeModelListener list) |
| passes on listener removes to real tree model | |
| SearchResultPanel (Vector genomes, SequenceNavigator nav) | |
| Constructs new SearchResultPanel. | |
| void | valueChanged (TreeSelectionEvent event) |
| When the selection in the tree changes, recenters mauve frame gui on selected feature. | |
| void | valueForPathChanged (TreePath path, Object val) |
| Passes on events to real tree model. | |
| void | waitForResults () |
| sets display to reflect a search is being performed | |
Static Public Member Functions | |
| String | getDisplayText (Feature feat) |
| returns a string including the feature's name and location | |
Static Public Attributes | |
| final String | MATCHLESS = "No features found. . ." |
| represents genome with no found features | |
| final Icon | MINUS_ICON = SignedIcon.getSignedIcon (false) |
| icon shown if a genome did not contain results | |
| final String | NO_RESULTS = "No results to display. . ." |
| String representing no results. | |
| final Icon | PLUS_ICON = SignedIcon.getSignedIcon (true) |
| icon shown if a genome contained results | |
Protected Member Functions | |
| void | initGUI () |
| initializes gui components | |
| void | resetData (Object[] data) |
| Resets the display to include the new data. | |
Protected Attributes | |
| Hashtable | genome_data |
| contains all the data the tree should display | |
| Object[] | genome_indexes |
| contains genomes mapped to their index | |
| DefaultTreeModel | model |
| model that represents the data to be displayed | |
| SequenceNavigator | navigator |
| reference to SequenceNavigator this panel is associated with | |
| DefaultTreeCellRenderer | renderer |
| renders each value in the tree | |
| int | result_state |
| represents display state - if there are no results, value is 0, 1 if there is 1 result, any number higher than 1 means multiple results | |
| DefaultMutableTreeNode | root |
| reference to root node of tree | |
| JScrollPane | scroller |
| allows results to be scrolled through | |
| boolean | searching |
| true when a search is in progress, false otherwise | |
| JTree | tree |
| Tree that contains search results (features). | |
Static Protected Attributes | |
| final String | ROOT = "Root" |
| represents "dummy" root node of tree | |
| final String | SEARCHING = "Searching. . ." |
| represents tree while searching | |
Each result represents a feature that matched the search constraints. If a result is selected, the Genome sequence is scrolled to that feature
Definition at line 51 of file SearchResultPanel.java.
|
||||||||||||
|
Constructs new SearchResultPanel.
Definition at line 143 of file SearchResultPanel.java. References genome_data, genome_indexes, and initGUI(). |
|
|
passes on listeners to real tree model
Definition at line 329 of file SearchResultPanel.java. |
|
|
displays the data passed into the method
Definition at line 200 of file SearchResultPanel.java. References genome_data, genome_indexes, getChild(), getChildCount(), org::gel::mauve::gui::SequenceNavigator::reloadGUI(), resetData(), result_state, root, ROOT, searching, and tree. Referenced by org::gel::mauve::gui::SequenceNavigator::goToFeatureByName(), and org::gel::mauve::gui::SequenceNavigator::showResultTree(). |
|
||||||||||||
|
Finds the child of the given object.
Definition at line 342 of file SearchResultPanel.java. Referenced by displayFeatures(). |
|
|
Returns the number of children the object has.
Definition at line 370 of file SearchResultPanel.java. Referenced by displayFeatures(). |
|
|
returns a string including the feature's name and location
Definition at line 286 of file SearchResultPanel.java. |
|
||||||||||||
|
Returns the index of the child.
Definition at line 397 of file SearchResultPanel.java. |
|
|
returns undisplayed root of the tree
Definition at line 430 of file SearchResultPanel.java. |
|
|
returns a reference to the ScrollPane that contains this result_panel
Definition at line 189 of file SearchResultPanel.java. References scroller. Referenced by org::gel::mauve::gui::SequenceNavigator::initGUI(). |
|
||||||||||||||||||||||||||||||||
|
facilitates painting of tree- converts feature to its name
Definition at line 316 of file SearchResultPanel.java. |
|
|
initializes gui components
Definition at line 159 of file SearchResultPanel.java. References MINUS_ICON, PLUS_ICON, ROOT, root, scroller, and tree. Referenced by SearchResultPanel(). |
|
|
Returns true if the object is a leaf.
Definition at line 441 of file SearchResultPanel.java. |
|
|
passes on listener removes to real tree model
Definition at line 451 of file SearchResultPanel.java. |
|
|
Resets the display to include the new data.
Definition at line 259 of file SearchResultPanel.java. Referenced by displayFeatures(). |
|
|
When the selection in the tree changes, recenters mauve frame gui on selected feature.
Definition at line 305 of file SearchResultPanel.java. |
|
||||||||||||
|
Passes on events to real tree model.
Definition at line 458 of file SearchResultPanel.java. |
|
|
sets display to reflect a search is being performed
Definition at line 242 of file SearchResultPanel.java. References root, and searching. Referenced by org::gel::mauve::gui::SequenceNavigator::doNavigation(). |
|
|
contains all the data the tree should display
Definition at line 128 of file SearchResultPanel.java. Referenced by displayFeatures(), and SearchResultPanel(). |
|
|
contains genomes mapped to their index
Definition at line 133 of file SearchResultPanel.java. Referenced by displayFeatures(), and SearchResultPanel(). |
|
|
represents genome with no found features
Definition at line 103 of file SearchResultPanel.java. |
|
|
icon shown if a genome did not contain results
Definition at line 123 of file SearchResultPanel.java. Referenced by initGUI(). |
|
|
model that represents the data to be displayed
Definition at line 62 of file SearchResultPanel.java. |
|
|
reference to SequenceNavigator this panel is associated with
Definition at line 72 of file SearchResultPanel.java. |
|
|
String representing no results.
Definition at line 98 of file SearchResultPanel.java. |
|
|
icon shown if a genome contained results
Definition at line 118 of file SearchResultPanel.java. Referenced by initGUI(). |
|
|
renders each value in the tree
Definition at line 67 of file SearchResultPanel.java. |
|
|
represents display state - if there are no results, value is 0, 1 if there is 1 result, any number higher than 1 means multiple results
Definition at line 88 of file SearchResultPanel.java. Referenced by displayFeatures(). |
|
|
represents "dummy" root node of tree
Definition at line 113 of file SearchResultPanel.java. Referenced by displayFeatures(), and initGUI(). |
|
|
reference to root node of tree
Definition at line 77 of file SearchResultPanel.java. Referenced by displayFeatures(), initGUI(), and waitForResults(). |
|
|
allows results to be scrolled through
Definition at line 82 of file SearchResultPanel.java. Referenced by getScrollPane(), and initGUI(). |
|
|
represents tree while searching
Definition at line 108 of file SearchResultPanel.java. |
|
|
true when a search is in progress, false otherwise
Definition at line 93 of file SearchResultPanel.java. Referenced by displayFeatures(), and waitForResults(). |
|
|
Tree that contains search results (features).
Definition at line 57 of file SearchResultPanel.java. Referenced by displayFeatures(), and initGUI(). |
1.3.6