org.simbrain.network
Class NetworkSelectionEvent
java.lang.Object
java.util.EventObject
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
NetworkSelectionEvent
public NetworkSelectionEvent(NetworkPanel source,
Set oldSelection,
Set selection)
- Create a new network selection event with the specified source.
- Parameters:
source - source of the eventoldSelection - old selectionselection - selection
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