borland Packages Class Hierarchy jbcl.model Package Index
java.lang.Object +----borland.jbcl.model.GraphSelectionMulticaster
Properties Methods
Implements GraphSelectionListener, EventListener
A class that dispatches graph-selection events to multiple listeners. GraphModelMulticaster maintains an array of listeners. The add(), remove(), and find() methods maintain this list.
The hasListeners() method determines whether any objects are listening for graph-selection events. The dispatch() method sends a graph-selection event to all listeners.
public final synchronized void add(borland.jbcl.model.GraphSelectionListener listener)Adds an object to the array of listeners.
Parameters:
public final void dispatch(borland.jbcl.model.GraphSelectionEvent e)Sends a graph-model event to all listeners. It is a high-speed dispatcher that does not need to be synchronized. If the event ID is ITEM_CHANGE, it calls the selectionItemChanged method of the graph-selection listeners. If the event ID is SELECTION_CHANGE, it calls the selectionChanged method of the graph-selection listeners.
Parameters:
public int find(borland.jbcl.model.GraphSelectionListener listener)Searches for the specified listener among the array of listening objects.
Parameters:
public final boolean hasListeners()Determines if there are any listeners for graph-selection events. If the method returns true, one or more listeners are present.
public final synchronized void remove(borland.jbcl.model.GraphSelectionListener listener)Removes the specified listening object from the array of listeners for graph-selection events.
Parameters: