jbcl.model Package
java.lang.Object +----java.util.EventObject +----com.borland.jb.util.DispatchableEvent +----com.borland.jbcl.model.SelectionEvent +----com.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(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
change
public GraphSelectionEvent(GraphSelection selection, int change, 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
change
location
GraphLocation
object that identifies the node where the change occurred.
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:
listener
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: com.borland.jbcl.model.SelectionEvent.paramString()