N
- node value typeE
- edge value typepublic class GraphChangeEvent<N,E> extends EventObject
source
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 . |
getSource, toString
public GraphChangeEvent(ObservableGraph<N,E> source)
source
- source of the event, must not be nullpublic GraphChangeEvent(ObservableGraph<N,E> source, Node<N,E> node)
source
- source of the event, must not be nullnode
- newly created or removed node, if anypublic GraphChangeEvent(ObservableGraph<N,E> source, Edge<N,E> edge)
source
- source of the event, must not be nulledge
- newly created or removed edge, if anypublic final ObservableGraph<N,E> getObservableGraph()
ObservableGraph
.ObservableGraph
public final Node<N,E> getNode()
Copyright (c) 2008-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).