borland.jbcl Packages borland.jbcl Class Hierarchy borland.jbcl.model
borland.jbcl.model.GraphSelection +----borland.jbcl.model.WritableGraphSelection
Properties Methods Event Listeners
Implemented by BasicGraphSelection, NullGraphSelection, SingleGraphSelection
The WritableGraphSelection interface provides read-write access to the set of selected nodes within a graph model. Usually it is used to manage the selection set.
Most of the time you will use classes that implement WritableGraphSelection, such as BasicGraphSelection. You can implement the interface directly, however.
If you need read access only to a set of selected nodes, you can use the GraphSelection interface instead.
public void add(borland.jbcl.model.GraphLocation location)Adds a node in the graph to the set of selected nodes.
Parameters:
public void add(borland.jbcl.model.GraphLocation[] location)Adds multiple nodes to the set of selected nodes in the graph.
Parameters:
public void enableSelectionEvents(boolean enable)Determines whether the broadcasting of graph-selection events is enabled or disabled based on the value of the enable parameter.
Parameters:
public void remove(borland.jbcl.model.GraphLocation location)Removes the specified node from the set of selected nodes. The node is specified as a GraphLocation object.
Parameters:
public void remove(borland.jbcl.model.GraphLocation[] location)Removes a specified array of nodes from the set of selected nodes.
Parameters:
public void removeAll()Removes all nodes from the set of selected nodes.
public void set(borland.jbcl.model.GraphLocation[] locations)Sets the selection pool to a given set of nodes.
Parameters:
public void addSelectionListener(borland.jbcl.model.GraphSelectionListener listener) public void removeSelectionListener(borland.jbcl.model.GraphSelectionListener listener)