borland Packages Class Hierarchy jbcl.model Package Index
java.lang.Object +----borland.jbcl.model.BasicSelection +----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(borland.jbcl.model.GraphLocation[] newSet)Constructs a BasicGraphSelection object using an array of GraphLocation objects passed to the constructor to set the set of selected nodes.
Parameters:
public GraphLocation[] getAll()Returns all the selected nodes in an array of GraphLocation objects.
protected void processSelectionEvent(borland.jbcl.model.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:
public void addSelectionListener(borland.jbcl.model.GraphSelectionListener listener) public void removeSelectionListener(borland.jbcl.model.GraphSelectionListener listener)