borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.model 

BasicGraphSelection component

java.lang.Object
   +----borland.jbcl.model.BasicSelection
           +----borland.jbcl.model.BasicGraphSelection

About the BasicGraphSelection component

Variables  Constructors  Properties  Methods  Event Listeners

Implements GraphSelection, WritableGraphSelection

BasicGraphSelection provides a simple implementation of the WritableGraphSelection interface, and provides support for the selection of multiple nodes.


BasicGraphSelection variables

Variables implemented in borland.jbcl.model.BasicSelection

BasicGraphSelection constructors

BasicGraphSelection properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.model.BasicSelection

Properties implemented in java.lang.Object

BasicGraphSelection methods

Methods implemented in this class

Methods implemented in borland.jbcl.model.BasicSelection

Methods implemented in java.lang.Object

BasicGraphSelection event listeners


BasicGraphSelection constructors

BasicGraphSelection()

  public BasicGraphSelection()
Constructs a BasicGraphSelection object.

BasicGraphSelection(borland.jbcl.model.GraphLocation[])

  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:

newSet
The set of nodes that becomes the set of selected nodes in the graph.

BasicGraphSelection properties

all

 public GraphLocation[] getAll()
Returns all the selected nodes in an array of GraphLocation objects.

BasicGraphSelection methods

processSelectionEvent(borland.jbcl.model.GraphSelectionEvent)

  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:

e
The graph-selection event object sent to the listeners.

BasicGraphSelection event listeners

This component is a source for the following event sets. For information on the JBCL event sets, see Events in JBCL.

selection

 public void addSelectionListener(borland.jbcl.model.GraphSelectionListener listener)
 public void removeSelectionListener(borland.jbcl.model.GraphSelectionListener listener)