info.bioinfweb.treegraph.gui.actions.edit
Class MoveSubtreeAction
java.lang.Object
javax.swing.AbstractAction
info.bioinfweb.treegraph.gui.actions.TreeGraphAction
info.bioinfweb.treegraph.gui.actions.DocumentAction
info.bioinfweb.treegraph.gui.actions.edit.MoveSubtreeAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Direct Known Subclasses:
- MoveSubtreeDownAction, MoveSubtreeUpAction
public abstract class MoveSubtreeAction
- extends DocumentAction
This abstract class contains basic functionalities to extract the node to be
moved from the selection and is the ancestor of MoveSubtreeUpAction
and MoveSubtreeDownAction
.
- Author:
- Ben Stöver
- See Also:
- Serialized Form
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 |
Method Summary |
protected Node |
getSelectedNode(TreeSelection selection)
Returns the node that should be moved if the selection contains this node or its
afferent branch as the first element. |
MoveSubtreeAction
public MoveSubtreeAction(MainFrame mainFrame)
getSelectedNode
protected Node getSelectedNode(TreeSelection selection)
- Returns the node that should be moved if the selection contains this node or its
afferent branch as the first element.
- Parameters:
selection
-
- Returns: