org.graffiti.plugins.modes.advanced
Class AbstractFunctionAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.graffiti.plugins.modes.advanced.AbstractFunctionAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, FunctionAction
Direct Known Subclasses:
AbortAddEdgeAction, AddBendAddEdgeAction, AlignAction, FinishAddEdgeAction, FinishMoveAction, FinishNodeResizeAction, FinishSelectRectAction, MarkUnderlyingNodeAction, MoveAction, PerformNodeResizeAction, SelectionAction, ShortCutAction, ShowPopupMenuAction, StartAddEdgeAction, StartEditLabelAction, StartMoveAction, StartMoveWithBendsAction, StartNodeResizeAction, StartSelectRectAction, UpdateAddEdgeAction, UpdateMoveAction, UpdateSelectionRectAction

public abstract class AbstractFunctionAction
extends AbstractAction
implements FunctionAction

Abstract implementation of the FunctionAction-interface.

See Also:
Serialized Form

Field Summary
 
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
AbstractFunctionAction()
          Constructs an AbstractFunctionAction, using the default-constructor of class javax.swing.AbstractAction.
AbstractFunctionAction(String name)
          Constructs an AbstractFunctionAction with the given name.
AbstractFunctionAction(String name, Icon icon)
          Constructs an AbstractFunctionAction with the given name and icon.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Implementation of the usual actionPerformed-method.
 void actionPerformed(FunctionActionEvent e)
          Implementation of the actionPerformed-method used within the function-concept.
 Map<String,Set<Object>> getValidParameters()
          DOCUMENT ME!
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

AbstractFunctionAction

public AbstractFunctionAction()
Constructs an AbstractFunctionAction, using the default-constructor of class javax.swing.AbstractAction.


AbstractFunctionAction

public AbstractFunctionAction(String name)
Constructs an AbstractFunctionAction with the given name.

Parameters:
name - name of the Action

AbstractFunctionAction

public AbstractFunctionAction(String name,
                              Icon icon)
Constructs an AbstractFunctionAction with the given name and icon.

Parameters:
name - name of the Action
icon - icon to be passed to the Action
Method Detail

getValidParameters

public Map<String,Set<Object>> getValidParameters()
DOCUMENT ME!

Specified by:
getValidParameters in interface FunctionAction
Returns:
DOCUMENT ME!

actionPerformed

public void actionPerformed(ActionEvent e)
Implementation of the usual actionPerformed-method. Using dynamic binding and overloading, it is never called if the passed parameter is a FunctionActionEvent.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - any ActionEvent

actionPerformed

public void actionPerformed(FunctionActionEvent e)
Implementation of the actionPerformed-method used within the function-concept. Should always be overridden by subclasses.

Specified by:
actionPerformed in interface FunctionAction
Parameters:
e - any FunctionActionEvent


Generated at 2012-05-30 11:01:25 PM CEST