borland Packages Class Hierarchy jbcl.model Package Index
java.lang.Object +----java.util.EventObject +----borland.jbcl.util.DispatchableEvent +----borland.jbcl.model.SelectionEvent +----borland.jbcl.model.GraphSelectionEvent
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.
The location property returns the location where the event occurred in the graph and the selection property returns the set of current selected nodes.
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:
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:
public GraphLocation getLocation()Returns the node where the graph-selection event occurred.
public GraphSelection getSelection()Returns the set of currently selected nodes within the graph.
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:
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()