freemind.modes.mindmapmode.actions
Class NodeUpAction
java.lang.Object
javax.swing.AbstractAction
freemind.modes.mindmapmode.actions.NodeUpAction
- All Implemented Interfaces:
- ActorXml, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class NodeUpAction
- extends javax.swing.AbstractAction
- implements ActorXml
- 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 |
Method Summary |
void |
_moveNodes(MindMapNode selected,
java.util.List selecteds,
int direction)
|
void |
act(freemind.controller.actions.generated.instance.XmlAction action)
|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
java.lang.Class |
getDoActionClass()
|
void |
moveNodes(MindMapNode selected,
java.util.List selecteds,
int direction)
|
int |
moveNodeTo(MindMapNode newChild,
MindMapNode parent,
int direction)
The direction is used if side left and right are present. then the next suitable place on the same side#
is searched. if there is no such place, then the side is changed. |
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 |
NodeUpAction
public NodeUpAction(MindMapController modeController)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
moveNodes
public void moveNodes(MindMapNode selected,
java.util.List selecteds,
int direction)
_moveNodes
public void _moveNodes(MindMapNode selected,
java.util.List selecteds,
int direction)
moveNodeTo
public int moveNodeTo(MindMapNode newChild,
MindMapNode parent,
int direction)
- The direction is used if side left and right are present. then the next suitable place on the same side#
is searched. if there is no such place, then the side is changed.
- Returns:
- returns the new index.
act
public void act(freemind.controller.actions.generated.instance.XmlAction action)
- Specified by:
act
in interface ActorXml
getDoActionClass
public java.lang.Class getDoActionClass()
- Specified by:
getDoActionClass
in interface ActorXml