|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The VetoableGraphListener interface defines an object that is
able to receive events that are related to a Graph instance and
is able to veto the received events.
To veto an event means that the processing of the event is completely
stopped.
To veto an event the listener has to throw a
GraphEventVetoException.
VetoableGraphListeners should not process an event like
a normal GraphListener may does. Their sole task is to
veto an event if necessary.
| Method Summary | |
void |
vetoableEdgePreAdd(GraphEvent graphevent)
This mehtod is called when an Edge is about to be added to a
Graph. |
void |
vetoableEdgePreRemove(GraphEvent graphevent)
This method is called when an Edge is about to be removed
from a Graph. |
void |
vetoableEdgePreSplit(GraphEvent graphevent)
This method is called when an Edge is about to be split
by a node.
|
void |
vetoableNodePreAdd(GraphEvent graphevent)
This method is called when a Node is about to be added to a
Graph. |
void |
vetoableNodePreDeleteEdgeCascade(GraphEvent graphevent)
This method is called when an Node is about to delete, which
will is connected by two edges that will be automatically merged into
a single edge.
|
void |
vetoableNodePreRemove(GraphEvent graphevent)
This method is called when a Node is about to be removed
from a Graph. |
| Method Detail |
public void vetoableNodePreAdd(GraphEvent graphevent)
throws GraphEventVetoException
Node is about to be added to a
Graph.GraphEventVetoException the
event will be veto'd and the corresponding action will not be completed.
graphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
public void vetoableNodePreRemove(GraphEvent graphevent)
throws GraphEventVetoException
Node is about to be removed
from a Graph.GraphEventVetoException the
event will be veto'd and the corresponding action will not be completed.
graphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
public void vetoableEdgePreAdd(GraphEvent graphevent)
throws GraphEventVetoException
Edge is about to be added to a
Graph.GraphEventVetoException the
event will be veto'd and the corresponding action will not be completed.
graphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
public void vetoableEdgePreRemove(GraphEvent graphevent)
throws GraphEventVetoException
Edge is about to be removed
from a Graph.GraphEventVetoException the
event will be veto'd and the corresponding action will not be completed.
graphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
public void vetoableEdgePreSplit(GraphEvent graphevent)
throws GraphEventVetoException
Edge is about to be split
by a node.
If the implementor throws a GraphEventVetoException the
event will be veto'd and the corresponding action will not be completed.
graphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
public void vetoableNodePreDeleteEdgeCascade(GraphEvent graphevent)
throws GraphEventVetoException
Node is about to delete, which
will is connected by two edges that will be automatically merged into
a single edge.
If the implementor throws a GraphEventVetoException the
event will be veto'd and the corresponding action will not be completed.
graphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||