info.bioinfweb.treegraph.gui.actions.edit
Class SearchTextAction
java.lang.Object
javax.swing.AbstractAction
info.bioinfweb.treegraph.gui.actions.TreeGraphAction
info.bioinfweb.treegraph.gui.actions.DocumentAction
info.bioinfweb.treegraph.gui.actions.edit.SearchTextAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class SearchTextAction
- extends DocumentAction
- See Also:
- Serialized Form
| 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 |
| 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 |
dialog
private SearchTextDialog dialog
selection
private TreeSelection selection
wordPattern
private java.util.regex.Pattern wordPattern
SearchTextAction
public SearchTextAction(MainFrame mainFrame)
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(java.awt.event.ActionEvent e,
TreeInternalFrame frame)
- Specified by:
onActionPerformed in class DocumentAction
setEnabled
public void setEnabled(Document document,
TreeSelection selection)
- Specified by:
setEnabled in class DocumentAction