org.simbrain.network.actions
Class InteractionModeAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.simbrain.network.actions.InteractionModeAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
BothWaysInteractionModeAction, NeitherWayInteractionModeAction, NetworkToWorldInteractionModeAction, WorldToNetworkInteractionModeAction

 class InteractionModeAction
extends AbstractAction

Interaction mode action.


Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
InteractionModeAction(String name, NetworkPanel networkPanel, InteractionMode interactionMode)
          Create a new interaction mode action with the specified name, network panel, and interaction mode.
 
Method Summary
 void actionPerformed(ActionEvent event)
           
 
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
 

Constructor Detail

InteractionModeAction

InteractionModeAction(String name,
                      NetworkPanel networkPanel,
                      InteractionMode interactionMode)
Create a new interaction mode action with the specified name, network panel, and interaction mode.

Parameters:
name - name
networkPanel - network panel, must not be null
interactionMode - interaction mode, must not be null
Method Detail

actionPerformed

public final void actionPerformed(ActionEvent event)
See Also:
AbstractAction