jbcl.model Package
java.lang.Object +----com.borland.jbcl.model.BasicSelection +----com.borland.jbcl.model.BasicGraphSelection
Variables Constructors Properties Methods Event Listeners
Implements GraphSelection, WritableGraphSelection, Serializable
BasicGraphSelection
provides a simple implementation of the WritableGraphSelection
interface, and provides support for the selection of multiple nodes. The all
property returns all selected nodes.
public BasicGraphSelection()Constructs a
BasicGraphSelection
object.
public BasicGraphSelection(GraphLocation[] newSet)Constructs a
BasicGraphSelection
object using an array of GraphLocation
objects passed to the constructor to set the set of selected nodes.
Parameters:
newSet
public GraphLocation[] getAll()Returns all the selected nodes in an array of
GraphLocation
objects.
protected void processSelectionEvent(GraphSelectionEvent e)If a graph-selection event has occurred and their are listeners for the event,
processSelectionEvent()
dispatches the event object to all listeners of graph-selection events.
Parameters:
e
public void addSelectionListener(GraphSelectionListener listener) public void removeSelectionListener(GraphSelectionListener listener)