|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.event.VetoableGraphEventMediator
The VetoableGraphEventMediator facilitates to gain access to all
vetoable GraphEvents.
The VetoableGraphEventMediator is allways an instance variable
of a Graph and hasn't to be implemented nor registered
to a GraphObject instance.
This is a mandatory commandment!
An implementation of a Graph allways comes with its
own VetoableGraphEventMediator implementation and is a major
part of the architecture.
To be informed about all occuring vetoable events an object has to implement
the GraphEventMediatorListener interface and then registered at
a specific Graph as
VetoableGraphEventMediatorListener.
| Constructor Summary | |
VetoableGraphEventMediator()
Constructor for VetoableGraphEventMediator. |
|
| Method Summary | |
void |
addMediatorListener(VetoableGraphEventMediatorListener listener)
Adds the VetoableGraphEventMediatorListener given by
listener to the VetoableGraphEventMediator
instance such that the listener will be notified about every event that
occurs. |
java.util.List |
getListeners()
Returns a List of the
VetoableGraphEventMediatorListeners currently registered. |
void |
removeMediatorListener(VetoableGraphEventMediatorListener listener)
Removes the VetoableGraphEventMediatorListener given by
listener from the VetoableGraphEventMediator
instance such that the listener will no longer be notified about
occuring events. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VetoableGraphEventMediator()
| Method Detail |
public void addMediatorListener(VetoableGraphEventMediatorListener listener)
VetoableGraphEventMediatorListener given by
listener to the VetoableGraphEventMediator
instance such that the listener will be notified about every event that
occurs.
listener - the VetoableGraphEventMediatorListener to
addpublic void removeMediatorListener(VetoableGraphEventMediatorListener listener)
VetoableGraphEventMediatorListener given by
listener from the VetoableGraphEventMediator
instance such that the listener will no longer be notified about
occuring events.
listener - the VetoableGraphEventMediatorListener to
removepublic java.util.List getListeners()
List of the
VetoableGraphEventMediatorListeners currently registered.
public void vetoableNodePreAdd(GraphEvent graphevent)
throws GraphEventVetoException
VetoableGraphListenerNode is about to be added to a
Graph.GraphEventVetoException the
event will be veto'd and the corresponding action will not be completed.
vetoableNodePreAdd in interface VetoableGraphListenergraphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
public void vetoableNodePreRemove(GraphEvent graphevent)
throws GraphEventVetoException
VetoableGraphListenerNode is about to be removed
from a Graph.GraphEventVetoException the
event will be veto'd and the corresponding action will not be completed.
vetoableNodePreRemove in interface VetoableGraphListenergraphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
public void vetoableEdgePreAdd(GraphEvent graphevent)
throws GraphEventVetoException
VetoableGraphListenerEdge is about to be added to a
Graph.GraphEventVetoException the
event will be veto'd and the corresponding action will not be completed.
vetoableEdgePreAdd in interface VetoableGraphListenergraphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
public void vetoableEdgePreRemove(GraphEvent graphevent)
throws GraphEventVetoException
VetoableGraphListenerEdge is about to be removed
from a Graph.GraphEventVetoException the
event will be veto'd and the corresponding action will not be completed.
vetoableEdgePreRemove in interface VetoableGraphListenergraphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
public void vetoableEdgePreSplit(GraphEvent graphevent)
throws GraphEventVetoException
VetoableGraphListenerEdge 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.
vetoableEdgePreSplit in interface VetoableGraphListenergraphevent - the GraphEvent structure carrying event
information.
GraphEventVetoException - that indicates the
GraphEvent is not desired.
public void vetoableNodePreDeleteEdgeCascade(GraphEvent graphevent)
throws GraphEventVetoException
VetoableGraphListenerNode 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.
vetoableNodePreDeleteEdgeCascade in interface VetoableGraphListenergraphevent - 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 | ||||||||||