N
- node value typeE
- edge value typepublic final class ObservableGraphImpl<N,E> extends AbstractObservableGraph<N,E>
preXxx
methods and graph change events in
postXxx
methods.Constructor and Description |
---|
ObservableGraphImpl(Graph<N,E> graph)
Create a new observable decorator for the specified graph.
|
Modifier and Type | Method and Description |
---|---|
protected void |
postClear()
Notify subclasses the
clear method has just been
called on the wrapped graph. |
protected void |
postCreateEdge(Node<N,E> source,
Node<N,E> target,
E value,
Edge<N,E> edge)
Notify subclasses the
createEdge method has just been
called on the wrapped graph with the specified parameters. |
protected void |
postCreateNode(N value,
Node<N,E> node)
Notify subclasses the
createNode method has just been
called on the wrapped graph with the specified parameter. |
protected void |
postRemove(Edge<N,E> edge)
Notify subclasses the
remove(Edge<N, E>) method has just been
called on the wrapped graph with the specified parameter. |
protected void |
postRemove(Node<N,E> node)
Notify subclasses the
remove(Node<N, E>) method has just been
called on the wrapped graph with the specified parameter. |
protected boolean |
preClear()
Notify subclasses the
clear method is about to
be called on the wrapped graph. |
protected boolean |
preCreateEdge(Node<N,E> source,
Node<N,E> target,
E value)
Notify subclasses the
createEdge method is about to
be called on the wrapped graph with the specified parameters. |
protected boolean |
preCreateNode(N value)
Notify subclasses the
createNode method is about to
be called on the wrapped graph with the specified parameter. |
protected boolean |
preRemove(Edge<N,E> edge)
Notify subclasses the
remove(Edge<N, E>) method is about to
be called on the wrapped graph with the specified parameter. |
protected boolean |
preRemove(Node<N,E> node)
Notify subclasses the
remove(Node<N, E>) method is about to
be called on the wrapped graph with the specified parameter. |
addGraphChangeListener, addVetoableGraphChangeListener, clear, createEdge, createNode, fireCleared, fireEdgeCreated, fireEdgeRemoved, fireNodeCreated, fireNodeRemoved, fireWillClear, fireWillCreateEdge, fireWillCreateNode, fireWillRemoveEdge, fireWillRemoveNode, getGraphChangeListenerCount, getGraphChangeListeners, getObservableGraphChangeSupport, getVetoableGraphChangeListenerCount, getVetoableGraphChangeListeners, remove, remove, removeGraphChangeListener, removeVetoableGraphChangeListener
edgeCount, edgeMap, edges, edgeValues, forEachEdge, forEachEdge, forEachEdgeValue, forEachEdgeValue, forEachNode, forEachNode, forEachNodeValue, forEachNodeValue, getGraph, isEmpty, nodeCount, nodeMap, nodes, nodeValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
edgeCount, edgeMap, edges, edgeValues, forEachEdge, forEachEdge, forEachEdgeValue, forEachEdgeValue, forEachNode, forEachNode, forEachNodeValue, forEachNodeValue, isEmpty, nodeCount, nodeMap, nodes, nodeValues
protected boolean preClear()
clear
method is about to
be called on the wrapped graph.
Return true
to proceed with the change.preClear
in class AbstractObservableGraph<N,E>
protected void postClear()
clear
method has just been
called on the wrapped graph.postClear
in class AbstractObservableGraph<N,E>
protected boolean preCreateNode(N value)
createNode
method is about to
be called on the wrapped graph with the specified parameter.
Return true
to proceed with the change.preCreateNode
in class AbstractObservableGraph<N,E>
value
- createNode
method parameterprotected void postCreateNode(N value, Node<N,E> node)
createNode
method has just been
called on the wrapped graph with the specified parameter.postCreateNode
in class AbstractObservableGraph<N,E>
value
- createNode
method parameternode
- newly created nodeprotected boolean preRemove(Node<N,E> node)
remove(Node<N, E>)
method is about to
be called on the wrapped graph with the specified parameter.
Return true
to proceed with the change.preRemove
in class AbstractObservableGraph<N,E>
node
- remove(Node<N, E>)
method parameterprotected void postRemove(Node<N,E> node)
remove(Node<N, E>)
method has just been
called on the wrapped graph with the specified parameter.postRemove
in class AbstractObservableGraph<N,E>
node
- remove(Node<N, E>)
method parameterprotected boolean preCreateEdge(Node<N,E> source, Node<N,E> target, E value)
createEdge
method is about to
be called on the wrapped graph with the specified parameters.
Return true
to proceed with the change.preCreateEdge
in class AbstractObservableGraph<N,E>
source
- createEdge
method parametertarget
- createEdge
method parametervalue
- createEdge
method parameterprotected void postCreateEdge(Node<N,E> source, Node<N,E> target, E value, Edge<N,E> edge)
createEdge
method has just been
called on the wrapped graph with the specified parameters.postCreateEdge
in class AbstractObservableGraph<N,E>
source
- createEdge
method parametertarget
- createEdge
method parametervalue
- createEdge
method parameteredge
- newly created edgeprotected boolean preRemove(Edge<N,E> edge)
remove(Edge<N, E>)
method is about to
be called on the wrapped graph with the specified parameter.
Return true
to proceed with the change.preRemove
in class AbstractObservableGraph<N,E>
edge
- remove(Edge<N, E>)
method parameterprotected void postRemove(Edge<N,E> edge)
remove(Edge<N, E>)
method has just been
called on the wrapped graph with the specified parameter.postRemove
in class AbstractObservableGraph<N,E>
edge
- remove(Edge<N, E>)
method parameterCopyright (c) 2008-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).