|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dishevelled.graph.impl.AbstractGraphDecorator<N,E>
org.dishevelled.observable.graph.AbstractObservableGraph<N,E>
org.dishevelled.observable.graph.impl.ObservableGraphImpl<N,E>
N - node value typeE - edge value typepublic final class ObservableGraphImpl<N,E>
Observable graph decorator that fires vetoable graph change events
in preXxx methods and graph change events in
postXxx methods.
| Constructor Summary | |
|---|---|
ObservableGraphImpl(Graph<N,E> graph)
Create a new observable decorator for the specified graph. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.dishevelled.graph.impl.AbstractGraphDecorator |
|---|
edgeCount, edgeMap, edges, edgeValues, forEachEdge, forEachEdge, forEachEdgeValue, forEachEdgeValue, forEachNode, forEachNode, forEachNodeValue, forEachNodeValue, getGraph, isEmpty, nodeCount, nodeMap, nodes, nodeValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.dishevelled.graph.Graph |
|---|
edgeCount, edgeMap, edges, edgeValues, forEachEdge, forEachEdge, forEachEdgeValue, forEachEdgeValue, forEachNode, forEachNode, forEachNodeValue, forEachNodeValue, isEmpty, nodeCount, nodeMap, nodes, nodeValues |
| Constructor Detail |
|---|
public ObservableGraphImpl(Graph<N,E> graph)
graph - graph to decorate, must not be null| Method Detail |
|---|
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 parameter
protected 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 parameter
protected 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 parameter
protected 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 parameter
protected 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 parameter
protected 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 parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||