Indirection to dispatch events from the permanent focus owner graph to the
registered listeners. For redispatching mouse events the built-in
multicasters are used.
See Also:AWTEventMulticaster
getListeners(Class listenerType) Returns an array of all the listeners of the given type that were added
to this manager.
public void
graphChanged(GraphModelEvent e) Redispatches the graph model event and fires a property change for
MODEL_CHANGE_NOTIFICATION.
public void
graphLayoutCacheChanged(GraphLayoutCacheEvent e) Redispatches the graph layout cache event and fires a property change for
UNDOABLE_CHANGE_NOTIFICATION.
protected void
installListeners(JGraph graph) Installs all listeners in the specified graph.
removeGraphLayoutCacheListener(GraphLayoutCacheListener l) Removes a listener previously added with addGraphModelListener() .
public void
removeGraphModelListener(GraphModelListener l) Removes a listener previously added with addGraphModelListener() .
public void
removeGraphSelectionListener(GraphSelectionListener x) Removes x from the list of listeners that are notified
each time the set of selected cells changes.
Adds a PropertyChangeListener to the listener list. The listener is
registered for all properties.
Parameters: listener - the PropertyChangeListener to be added
Notify all listeners that have registered interest for notification on
this event type. The event instance is lazily created using the
parameters passed into the fire method.
See Also:EventListenerList
Notifies all listeners that have registered interest for notification on
this event type. The event instance is lazily created using the
parameters passed into the fire method.
See Also:EventListenerList
Returns an array of all the listeners of the given type that were added
to this manager.
all of the objects receiving listenerTypenotifications from this model
Redispatches the graph model event and fires a property change for
MODEL_CHANGE_NOTIFICATION.
See Also: org.jgraph.event.GraphModelListener.graphChanged(org.jgraph.event.GraphModelEvent)
graphLayoutCacheChanged
public void graphLayoutCacheChanged(GraphLayoutCacheEvent e)(Code)
Removes a PropertyChangeListener from the listener list. This removes a
PropertyChangeListener that was registered for all properties.
Parameters: listener - the PropertyChangeListener to be removed
setFocusedGraph
public void setFocusedGraph(JGraph newGraph)(Code)
Sets the focused graph to the specified value. If the current focused
graph points to a different instance then newGraph then
this implementation updates the last focused graph with the current
focused graph and removes all listeners from either the current graph or
the last focused graph if the current graph is null. This method fires a
property change event for
JGraphpadFocusManager.FOCUSED_GRAPH_PROPERTY .
Parameters: newGraph - The new focused graph.
Uninstalls all listeners previously registered using
JGraphpadFocusManager.installListeners(JGraph) from the specified graph.
Parameters: graph - The graph to uninstall the listeners from.
valueChanged
public void valueChanged(GraphSelectionEvent e)(Code)
Redirects the value change event and fires a property change for
SELECTION_CHANGE_NOTIFICATION.
See Also: org.jgraph.event.GraphSelectionListener.valueChanged(org.jgraph.event.GraphSelectionEvent)