org.simbrain.network.actions
Class ConnectNeuronsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.simbrain.network.actions.ConnectNeuronsAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public final class ConnectNeuronsAction
extends AbstractAction

Connect neurons action. Connects a set of source neurons to a set of target neurons.

See Also:
Serialized Form

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
ConnectNeuronsAction(NetworkPanel networkPanel, Collection sourceNeurons, Collection targetNeurons)
          Create a new connect neurons action.
 
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

ConnectNeuronsAction

public ConnectNeuronsAction(NetworkPanel networkPanel,
                            Collection sourceNeurons,
                            Collection targetNeurons)
Create a new connect neurons action. Connects a set of source neurons to a set of target neurons.

Parameters:
networkPanel - network panel, must not be null
sourceNeurons - NeuronNodes to connect from
targetNeurons - NeuronNodes to connect to
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
See Also:
AbstractAction