org.simbrain.network
Class NetworkActionManager

java.lang.Object
  extended by org.simbrain.network.NetworkActionManager

final class NetworkActionManager
extends Object

Network action manager.

This class contains references to all the actions for a NetworkPanel. In some cases, related actions are grouped together, see e.g. getNetworkModeActions().

These references are contained here instead of in NetworkPanel simply to reduce the amount of code in NetworkPanel. Most but not all actions hold a reference to the NetworkPanel, passed in via their constructor.


Constructor Summary
NetworkActionManager(NetworkPanel networkPanel)
          Create a new network action manager for the specified network panel.
 
Method Summary
 Action getAddGaugeAction()
          Return the add gauge action.
 Action getAlignHorizontalAction()
          Return the align horizontal action.
 Action getAlignVerticalAction()
          Return the align vertical action.
 Action getBothWaysInteractionModeAction()
          Return the both ways interaction mode action.
 JCheckBoxMenuItem getClampNeuronsMenuItem()
          Return the clamp neurons check box menu item.
 JCheckBoxMenuItem getClampWeightsMenuItem()
          Return the clamp weight check box menu item.
 Action getClearAction()
          Return the clear action.
 Action getClearNeuronsAction()
          Return the clear neurons action.
 Action getClearSelectionAction()
          Return the clear selection action.
 List getClipboardActions()
          Return clipboard actions.
 Action getCloseNetworkAction()
          Return the close network action.
 Action getCopyAction()
          Return the copy action.
 Action getCutAction()
          Return the cut action.
 List getInteractionModeActions()
          Return a list of interaction mode actions.
 Action getIterateNetworkAction()
          Return the iterate network action.
 Action getNeitherWayInteractionModeAction()
          Return the neither way interaction mode action.
 List getNetworkControlActions()
          Return a list of network control actions.
 List getNetworkEditingActions()
          Return a list of network editing actions.
 List getNetworkModeActions()
          Return a list of network mode actions.
 Action getNetworkToWorldInteractionModeAction()
          Return the network to world interaction mode action.
 Action getNewBackpropNetworkAction()
          Return the new backprop network action.
 Action getNewCompetitiveNetworkAction()
          Return the new competitive network action.
 Action getNewElmanNetworkAction()
          Return the new elman network action.
 Action getNewHopfieldNetworkAction()
          Return the new discrete hopfield network action.
 Action getNewLMSNetworkAction()
          Return the new LMSNetwork network action.
 Action getNewNeuronAction()
          Return the new neuron action.
 Action getNewStandardNetworkAction()
          Return the standard network action.
 Action getNewWTANetworkAction()
          Return the new winner take all network action.
 List getOpenCloseActions()
          Return open and save actions.
 Action getOpenNetworkAction()
          Return the open network action.
 Action getPanEditModeAction()
          Return the pan edit mode action.
 Action getPasteAction()
          Return the paste action.
 Action getRandomizeObjectsAction()
          Return the randomize objects action.
 Action getRunNetworkAction()
          Return the run network action.
 Action getSaveAsNetworkAction()
          Return the save as network action.
 Action getSaveNetworkAction()
          Return the save network action.
 Action getSelectAllAction()
          Return the select all action.
 Action getSelectAllNeuronsAction()
          Return the select all neurons action.
 Action getSelectAllWeightsAction()
          Return the select all weights action.
 JCheckBoxMenuItem getSetAutoZoomMenuItem()
          Return the set auto zoom check box menu item.
 Action getSetNeuronPropertiesAction()
          Return the neuron properties action.
 Action getSetSynapsePropertiesAction()
          Return the synapse properties action.
 JCheckBoxMenuItem getShowClampToolBarMenuItem()
          Return the show clamp tool bar menu item.
 Action getShowDebugAction()
           
 JCheckBoxMenuItem getShowEditToolBarMenuItem()
          Return the show edit tool bar menu item.
 Action getShowHelpAction()
          Return the show help action.
 JCheckBoxMenuItem getShowIOInfoMenuItem()
          Return the show IO information check box menu item.
 JCheckBoxMenuItem getShowMainToolBarMenuItem()
          Return the show main tool bar menu item.
 Action getShowNetworkPreferencesAction()
          Return the show network preferences action.
 Action getSpaceHorizontalAction()
          Return the space horizontal action.
 Action getSpaceVerticalAction()
          Return the space vertical action.
 Action getStopNetworkAction()
          Return the stop network action.
 Action getWorldToNetworkInteractionModeAction()
          Return the world to network interaction mode action.
 Action getZoomInEditModeAction()
          Return the zoom in edit mode action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkActionManager

NetworkActionManager(NetworkPanel networkPanel)
Create a new network action manager for the specified network panel.

Parameters:
networkPanel - networkPanel, must not be null
Method Detail

getPanEditModeAction

public Action getPanEditModeAction()
Return the pan edit mode action.

Returns:
the pan edit mode action

getZoomInEditModeAction

public Action getZoomInEditModeAction()
Return the zoom in edit mode action.

Returns:
the zoom in edit mode action

getNetworkToWorldInteractionModeAction

public Action getNetworkToWorldInteractionModeAction()
Return the network to world interaction mode action.

Returns:
the network to world interaction mode action

getWorldToNetworkInteractionModeAction

public Action getWorldToNetworkInteractionModeAction()
Return the world to network interaction mode action.

Returns:
the world to network interaction mode action

getNeitherWayInteractionModeAction

public Action getNeitherWayInteractionModeAction()
Return the neither way interaction mode action.

Returns:
the neither way interaction mode action

getBothWaysInteractionModeAction

public Action getBothWaysInteractionModeAction()
Return the both ways interaction mode action.

Returns:
the both ways interaction mode action

getInteractionModeActions

public List getInteractionModeActions()
Return a list of interaction mode actions.

Returns:
a list of interaction mode actions

getNetworkModeActions

public List getNetworkModeActions()
Return a list of network mode actions.

Returns:
a list of network mode actions

getNetworkControlActions

public List getNetworkControlActions()
Return a list of network control actions.

Returns:
a list of network control actions

getOpenCloseActions

public List getOpenCloseActions()
Return open and save actions.

Returns:
a list of open / save actions

getClipboardActions

public List getClipboardActions()
Return clipboard actions.

Returns:
a list of clipboard actions

getNetworkEditingActions

public List getNetworkEditingActions()
Return a list of network editing actions.

Returns:
a list of network editing actions

getNewNeuronAction

public Action getNewNeuronAction()
Return the new neuron action.

Returns:
the new neuron action

getClearNeuronsAction

public Action getClearNeuronsAction()
Return the clear neurons action.

Returns:
the clear neurons action

getRandomizeObjectsAction

public Action getRandomizeObjectsAction()
Return the randomize objects action.

Returns:
the randomize objects action

getSelectAllAction

public Action getSelectAllAction()
Return the select all action.

Returns:
the select all action

getClearSelectionAction

public Action getClearSelectionAction()
Return the clear selection action.

Returns:
the clear selection action

getIterateNetworkAction

public Action getIterateNetworkAction()
Return the iterate network action.

Returns:
the iterate network action

getShowDebugAction

public Action getShowDebugAction()
Returns:
Returns the showDebugAction.

getRunNetworkAction

public Action getRunNetworkAction()
Return the run network action.

Returns:
the run network action

getStopNetworkAction

public Action getStopNetworkAction()
Return the stop network action.

Returns:
the stop network action

getShowHelpAction

public Action getShowHelpAction()
Return the show help action.

Returns:
the show help action

getShowNetworkPreferencesAction

public Action getShowNetworkPreferencesAction()
Return the show network preferences action.

Returns:
the network preferences action

getOpenNetworkAction

public Action getOpenNetworkAction()
Return the open network action.

Returns:
the open network action

getSaveAsNetworkAction

public Action getSaveAsNetworkAction()
Return the save as network action.

Returns:
the save as network action

getSaveNetworkAction

public Action getSaveNetworkAction()
Return the save network action.

Returns:
the save network action

getCloseNetworkAction

public Action getCloseNetworkAction()
Return the close network action.

Returns:
the close network action

getClearAction

public Action getClearAction()
Return the clear action.

Returns:
the clear action

getCopyAction

public Action getCopyAction()
Return the copy action.

Returns:
the copy action

getCutAction

public Action getCutAction()
Return the cut action.

Returns:
the cut action

getPasteAction

public Action getPasteAction()
Return the paste action.

Returns:
the paste action

getAlignHorizontalAction

public Action getAlignHorizontalAction()
Return the align horizontal action.

Returns:
the align horizontal action

getAlignVerticalAction

public Action getAlignVerticalAction()
Return the align vertical action.

Returns:
the align vertical action

getSpaceHorizontalAction

public Action getSpaceHorizontalAction()
Return the space horizontal action.

Returns:
the space horizontal action

getSpaceVerticalAction

public Action getSpaceVerticalAction()
Return the space vertical action.

Returns:
the space vertical action

getClampWeightsMenuItem

public JCheckBoxMenuItem getClampWeightsMenuItem()
Return the clamp weight check box menu item.

Returns:
the clamp weight check box menu item

getShowIOInfoMenuItem

public JCheckBoxMenuItem getShowIOInfoMenuItem()
Return the show IO information check box menu item.

Returns:
the show IO information check box menu item

getSetAutoZoomMenuItem

public JCheckBoxMenuItem getSetAutoZoomMenuItem()
Return the set auto zoom check box menu item.

Returns:
the set auto zoom check box menu item

getSetNeuronPropertiesAction

public Action getSetNeuronPropertiesAction()
Return the neuron properties action.

Returns:
the neuron properties action

getSetSynapsePropertiesAction

public Action getSetSynapsePropertiesAction()
Return the synapse properties action.

Returns:
the synapse properties action

getSelectAllNeuronsAction

public Action getSelectAllNeuronsAction()
Return the select all neurons action.

Returns:
the select all neurons action

getSelectAllWeightsAction

public Action getSelectAllWeightsAction()
Return the select all weights action.

Returns:
the select all weights action.

getAddGaugeAction

public Action getAddGaugeAction()
Return the add gauge action.

Returns:
the add gauge action

getNewBackpropNetworkAction

public Action getNewBackpropNetworkAction()
Return the new backprop network action.

Returns:
the new backprop network action

getNewCompetitiveNetworkAction

public Action getNewCompetitiveNetworkAction()
Return the new competitive network action.

Returns:
the new competitive network action

getNewElmanNetworkAction

public Action getNewElmanNetworkAction()
Return the new elman network action.

Returns:
the new elman network action

getNewHopfieldNetworkAction

public Action getNewHopfieldNetworkAction()
Return the new discrete hopfield network action.

Returns:
the new discrete hopfield network action

getNewWTANetworkAction

public Action getNewWTANetworkAction()
Return the new winner take all network action.

Returns:
the new winner take all network action

getNewLMSNetworkAction

public Action getNewLMSNetworkAction()
Return the new LMSNetwork network action.

Returns:
the new LMSNetwork network action

getClampNeuronsMenuItem

public JCheckBoxMenuItem getClampNeuronsMenuItem()
Return the clamp neurons check box menu item.

Returns:
the clamp neurons check box menu item

getNewStandardNetworkAction

public Action getNewStandardNetworkAction()
Return the standard network action.

Returns:
the standard network action

getShowEditToolBarMenuItem

public JCheckBoxMenuItem getShowEditToolBarMenuItem()
Return the show edit tool bar menu item.

Returns:
the show edit tool bar menu item

getShowMainToolBarMenuItem

public JCheckBoxMenuItem getShowMainToolBarMenuItem()
Return the show main tool bar menu item.

Returns:
the show main tool bar menu item

getShowClampToolBarMenuItem

public JCheckBoxMenuItem getShowClampToolBarMenuItem()
Return the show clamp tool bar menu item.

Returns:
the show clamp tool bar menu item