jsynoptic.plugins.java3d.tree
Class AbstractNodeAction
java.lang.Object
javax.swing.AbstractAction
jsynoptic.plugins.java3d.tree.AbstractNodeAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
- Direct Known Subclasses:
- ReferenceNode.ExpandAction, ReferenceNode.RemoveAction, SceneGraphNode.CopyAction, SceneGraphNode.CutAction, SceneGraphNode.PasteAction, SceneGraphNode.PropertiesAction, SceneGraphNode.RemoveAction, TransformAnimatorNode.AnimateSelectionAction
public abstract class AbstractNodeAction
- extends javax.swing.AbstractAction
A Node action is a swing AbstractAction with a reference to a Tree Node This
action is initialized according to Tree resources
- 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 |
Constructor Summary |
protected |
AbstractNodeAction()
By default the resource key is equal to the class name excluding the
package names e.g. : jsynoptic.plugins.java3d.tree.NodeAction resource
key=NodeAction |
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 |
Methods inherited from interface java.awt.event.ActionListener |
actionPerformed |
sharedResources
public static MenuResourceBundle sharedResources
_resourceKey
protected java.lang.String _resourceKey
AbstractNodeAction
protected AbstractNodeAction()
- By default the resource key is equal to the class name excluding the
package names e.g. : jsynoptic.plugins.java3d.tree.NodeAction resource
key=NodeAction
addActions
public static void addActions(java.lang.String className,
java.lang.Object... actions)
init
protected void init()
getNode
public AbstractNode getNode()
getActions
public static java.lang.Object[] getActions(java.lang.Object graphObject,
java.lang.String prefix)
- Get actions The prefix is used to retrieve group of actions shared
between objects. If the prefix is set the action list key is equal to
prefix@graphObjectClassName. If there is no action list using this key
then look for a generic action list using the prefix only. The returned
list of action can contain String to describe a group of action to be
added to the returned list or null to isolate members of the list (for
instance using a menu separator) or a NodeAction class
- Parameters:
graphObject
- the graph object to retrieve the actionsprefix
- an optional prefix to retrieve group of actions
- Returns:
- the actions
createAction
public static AbstractNodeAction createAction(java.lang.Class<?> c,
AbstractNode n)