N
- node value typeE
- edge value typepublic class VetoableGraphChangeEvent<N,E> extends EventObject
source
Constructor and Description |
---|
VetoableGraphChangeEvent(ObservableGraph<N,E> source)
Create a new vetoable graph change event with the
specified observable graph as the event source.
|
VetoableGraphChangeEvent(ObservableGraph<N,E> source,
Edge<N,E> edge)
Create a new vetoable graph change event with the
specified observable graph as the event source and the
specified about to be removed edge.
|
VetoableGraphChangeEvent(ObservableGraph<N,E> source,
N nodeValue)
Create a new vetoable graph change event with the
specified observable graph as the event source and the specified
node value for an about to be created node.
|
VetoableGraphChangeEvent(ObservableGraph<N,E> source,
Node<N,E> node)
Create a new vetoable graph change event with the
specified observable graph as the event source and the specified
about to be removed node.
|
VetoableGraphChangeEvent(ObservableGraph<N,E> source,
Node<N,E> sourceNode,
Node<N,E> targetNode,
E edgeValue)
Create a new vetoable graph change event with the
specified observable graph as the event source and specified
source node, target node, and edge value for an about to be
created edge.
|
Modifier and Type | Method and Description |
---|---|
Edge<N,E> |
getEdge()
Return the about to be removed edge, if any.
|
E |
getEdgeValue()
Return the edge value for the about to be created edge, if any.
|
Node<N,E> |
getNode()
Return the about to be removed node, if any.
|
N |
getNodeValue()
Return the node value for the about to be created node, if any.
|
ObservableGraph<N,E> |
getObservableGraph()
Return the source of this vetoable graph change event as an
ObservableGraph . |
Node<N,E> |
getSourceNode()
Return the source node for the about to be created edge, if any.
|
Node<N,E> |
getTargetNode()
Return the target node for the about to be created edge, if any.
|
getSource, toString
public VetoableGraphChangeEvent(ObservableGraph<N,E> source)
source
- source of the event, must not be nullpublic VetoableGraphChangeEvent(ObservableGraph<N,E> source, Node<N,E> node)
source
- source of the event, must not be nullnode
- about to be removed nodepublic VetoableGraphChangeEvent(ObservableGraph<N,E> source, Edge<N,E> edge)
source
- source of the event, must not be nulledge
- about to be removed edgepublic VetoableGraphChangeEvent(ObservableGraph<N,E> source, N nodeValue)
source
- source of the event, must not be nullnodeValue
- node value for an about to be created nodepublic VetoableGraphChangeEvent(ObservableGraph<N,E> source, Node<N,E> sourceNode, Node<N,E> targetNode, E edgeValue)
source
- source of the event, must not be nullsourceNode
- source node for an about to be created edgetargetNode
- target node for an about to be created edgeedgeValue
- edge value for an about to be created edgepublic final ObservableGraph<N,E> getObservableGraph()
ObservableGraph
.ObservableGraph
public final Node<N,E> getNode()
public final Edge<N,E> getEdge()
public final N getNodeValue()
public final Node<N,E> getSourceNode()
public final Node<N,E> getTargetNode()
public final E getEdgeValue()
Copyright (c) 2008-2013 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).