org.simbrain.network
Class NetworkSelectionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.simbrain.network.NetworkSelectionEvent
All Implemented Interfaces:
Serializable

public final class NetworkSelectionEvent
extends EventObject

An event object representing a change in network selection.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NetworkSelectionEvent(NetworkPanel source, Set oldSelection, Set selection)
          Create a new network selection event with the specified source.
 
Method Summary
 NetworkPanel getNetworkPanel()
          Return the source of this event as a NetworkPanel.
 Set getOldSelection()
          Return the old selection.
 Set getSelection()
          Return the selection.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NetworkSelectionEvent

public NetworkSelectionEvent(NetworkPanel source,
                             Set oldSelection,
                             Set selection)
Create a new network selection event with the specified source.

Parameters:
source - source of the event
oldSelection - old selection
selection - selection
Method Detail

getNetworkPanel

public NetworkPanel getNetworkPanel()
Return the source of this event as a NetworkPanel.

Returns:
the source of this event as a NetworkPanel

getOldSelection

public Set getOldSelection()
Return the old selection.

Returns:
the old selection

getSelection

public Set getSelection()
Return the selection.

Returns:
the selection