Home / Development / Documentation / 2.0.44 / SearchTextAction
TreeGraph 2
 


info.bioinfweb.treegraph.gui.actions.edit
Class SearchTextAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by info.bioinfweb.treegraph.gui.actions.TreeGraphAction
          extended by info.bioinfweb.treegraph.gui.actions.DocumentAction
              extended by info.bioinfweb.treegraph.gui.actions.edit.SearchTextAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class SearchTextAction
extends DocumentAction

See Also:
Serialized Form

Field Summary
private  SearchTextDialog dialog
           
private  Pattern pattern
           
private  TreeSelection selection
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
SearchTextAction(MainFrame mainFrame)
           
 
Method Summary
private  boolean matches(TextElement element)
           
protected  void onActionPerformed(ActionEvent e, TreeInternalFrame frame)
          Subclasses should implement this method instead of overriding DocumentAction.actionPerformed(ActionEvent).
private  void searchLabelBlock(Labels labels, boolean above)
           
private  void searchLegends(Legends legends)
           
private  void searchScaleBar(Tree tree)
           
private  void searchSubtree(Node root)
           
 void setEnabled(Document document, TreeSelection selection, NodeBranchDataAdapter tableAdapter)
           
 
Methods inherited from class info.bioinfweb.treegraph.gui.actions.DocumentAction
actionPerformed, getMainFrame, oneElementSelected
 
Methods inherited from class info.bioinfweb.treegraph.gui.actions.TreeGraphAction
loadSymbols
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dialog

private SearchTextDialog dialog

selection

private TreeSelection selection

pattern

private Pattern pattern
Constructor Detail

SearchTextAction

public SearchTextAction(MainFrame mainFrame)
Method Detail

matches

private boolean matches(TextElement element)

searchLabelBlock

private void searchLabelBlock(Labels labels,
                              boolean above)

searchSubtree

private void searchSubtree(Node root)

searchLegends

private void searchLegends(Legends legends)

searchScaleBar

private void searchScaleBar(Tree tree)

onActionPerformed

protected void onActionPerformed(ActionEvent e,
                                 TreeInternalFrame frame)
Description copied from class: DocumentAction
Subclasses should implement this method instead of overriding DocumentAction.actionPerformed(ActionEvent).

Specified by:
onActionPerformed in class DocumentAction
frame - the internal frame which was active while the user performed this action

setEnabled

public void setEnabled(Document document,
                       TreeSelection selection,
                       NodeBranchDataAdapter tableAdapter)
Specified by:
setEnabled in class DocumentAction