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

GraphSelectionEvent class

java.lang.Object
   +----java.util.EventObject
           +----borland.jbcl.util.DispatchableEvent
                   +----borland.jbcl.model.SelectionEvent
                           +----borland.jbcl.model.GraphSelectionEvent

About the GraphSelectionEvent class

Variables  Constructors  Properties  Methods  
Implements Serializable
A GraphSelectionEvent object is created whenever a graph-selection event occurs. Graph-selection events occur when nodes are added or removed from the set of selected nodes in a graph. The id property specifies what creates the event. The possibilities can be any change in the selection set, a change at a specified node in the selection set, or a change of a range within a selection set.

GraphSelectionEvent variables

Variables implemented in borland.jbcl.model.SelectionEvent

Variables implemented in java.util.EventObject

GraphSelectionEvent constructors

GraphSelectionEvent properties

*Read-only properties **Write-only properties

Properties implemented in this class

Properties implemented in borland.jbcl.model.SelectionEvent

Properties implemented in borland.jbcl.util.DispatchableEvent

Properties implemented in java.lang.Object

Properties implemented in java.util.EventObject

GraphSelectionEvent methods

Methods implemented in this class

Methods implemented in borland.jbcl.util.DispatchableEvent

Methods implemented in java.lang.Object


GraphSelectionEvent constructors

GraphSelectionEvent(borland.jbcl.model.GraphSelection, int)

  public GraphSelectionEvent(borland.jbcl.model.GraphSelection selection, int change)
Constructs a graph-selection event object using the passed selection object and the type of change that occurred to that selection.

Parameters:

selection
The graph-selection object, the selection pool, in which a change occurred.
change
The type of change that occurred. The type of change can be one of the selection event variables.

GraphSelectionEvent(borland.jbcl.model.GraphSelection, int, borland.jbcl.model.GraphLocation)

  public GraphSelectionEvent(borland.jbcl.model.GraphSelection selection, int change, borland.jbcl.model.GraphLocation location)
Constructs a graph-selection event object using the passed selection object , the type of change that occurred to that selection, and the location where the change occurred. Such an event object is used when a data object at the specified node changes.

Parameters:

selection
The graph-selection object, the selection pool, in which a change occurred.
change
The type of change that occurred. The type of change can be one of the selection event variables.
location
The GraphLocation object that identifies the node where the change occurred.

GraphSelectionEvent properties

location

 public GraphLocation getLocation()
Returns the node where the graph-selection event occurred.

selection

 public GraphSelection getSelection()
Returns the set of currently selected nodes within the graph.

GraphSelectionEvent methods

dispatch(java.util.EventListener)

  public void dispatch(java.util.EventListener listener)
Calls methods in the listening object passing this graph-selection event object. Which method is called depends on the type of graph-selection event occurred.

Parameters:

listener
The object listening for matrix-selection events.

paramString()

  protected String paramString()
Appends the matrix-selection event object's parameter string to the parameter string of the superclass. The string that is appended is:

",selection=" + selection + ",location=" + location"

See also: borland.jbcl.model.SelectionEvent.paramString()