|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.dishevelled.observable.graph.event.GraphChangeEvent<N,E>
N - node value typeE - edge value typepublic class GraphChangeEvent<N,E>
An event object representing a change made to an observable graph.
| Field Summary |
|---|
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
GraphChangeEvent(ObservableGraph<N,E> source)
Create a new graph change event with the specified observable graph as the event source. |
|
GraphChangeEvent(ObservableGraph<N,E> source,
Edge<N,E> edge)
Create a new graph change event with the specified observable graph as the event source and the specified newly created or removed edge. |
|
GraphChangeEvent(ObservableGraph<N,E> source,
Node<N,E> node)
Create a new graph change event with the specified observable graph as the event source and the specified newly created or removed node. |
|
| Method Summary | |
|---|---|
Edge<N,E> |
getEdge()
Return the newly created or removed edge for this graph change event, if any. |
Node<N,E> |
getNode()
Return the newly created or removed node for this graph change event, if any. |
ObservableGraph<N,E> |
getObservableGraph()
Return the source of this graph change event as an ObservableGraph. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GraphChangeEvent(ObservableGraph<N,E> source)
source - source of the event, must not be null
public GraphChangeEvent(ObservableGraph<N,E> source,
Node<N,E> node)
source - source of the event, must not be nullnode - newly created or removed node, if any
public GraphChangeEvent(ObservableGraph<N,E> source,
Edge<N,E> edge)
source - source of the event, must not be nulledge - newly created or removed edge, if any| Method Detail |
|---|
public final ObservableGraph<N,E> getObservableGraph()
ObservableGraph.
ObservableGraphpublic final Node<N,E> getNode()
public final Edge<N,E> getEdge()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||