|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graph.event.VetoableVisualGraphEventMediator
The VetoableVisualGraphEventMediator facilitates to gain access
to all vetoable VisualGraphEvents.
The VetoableVisualGraphEventMediator is allways an instance
variable of a VisualGraph and hasn't to be implemented nor
registered to a VisualGraphObject instance.
This is a mandatory commandment!
An implementation of a VisualGraph allways comes with its
own VetoableVisualGraphEventMediator implementation and is a
major part of the architecture.
To be informed about all occuring vetoable events an object has to implement
the VetoableGraphEventMediatorListener interface and then
registered at a specific VisualGraph as
VetoableVisualGraphEventMediatorListener.
| Constructor Summary | |
VetoableVisualGraphEventMediator()
Constructor for VetoableGraphEventMediator. |
|
| Method Summary | |
void |
addMediatorListener(VetoableVisualGraphEventMediatorListener listener)
Adds the VetoableVisualGraphEventMediatorListener given by
listener to the
VetoableVisualGraphEventMediator instance such that the
listener will be notified about every event that occurs. |
java.util.List |
getListeners()
Returns a List of the
VetoableVisualGraphEventMediatorListeners currently
registered. |
void |
removeMediatorListener(VetoableVisualGraphEventMediatorListener listener)
Removes the VetoableVisualGraphEventMediatorListener given
by listener from the
VetoableVisualGraphEventMediator instance such that the
listener will no longer be notified about occuring events. |
void |
vetoableIsolatedVisualEdgePreAdd(VisualGraphEvent visualgraphevent)
This mehtod is called when an isolated VisualEdge is about
to be added to a VisualGraph. |
void |
vetoableIsolatedVisualEdgePreRemove(VisualGraphEvent visualgraphevent)
This method is called when an isolated VisualEdge is about
to be removed from a VisualGraph. |
void |
vetoableVisualEdgePreAdd(VisualGraphEvent visualgraphevent)
This mehtod is called when an VisualEdge is about to be
added to a VisualGraph. |
void |
vetoableVisualEdgePreRemove(VisualGraphEvent visualgraphevent)
This method is called when an VisualEdge is about to be
removed from a VisualGraph. |
void |
vetoableVisualNodePreAdd(VisualGraphEvent visualgraphevent)
This method is called when a VisualNode is about to be added
to a VisualGraph. |
void |
vetoableVisualNodePreRemove(VisualGraphEvent visualgraphevent)
This method is called when a VisualNode is about to be
removed from a VisualGraph. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VetoableVisualGraphEventMediator()
| Method Detail |
public void addMediatorListener(VetoableVisualGraphEventMediatorListener listener)
VetoableVisualGraphEventMediatorListener given by
listener to the
VetoableVisualGraphEventMediator instance such that the
listener will be notified about every event that occurs.
listener - the VetoableVisualGraphEventMediatorListener
to addpublic void removeMediatorListener(VetoableVisualGraphEventMediatorListener listener)
VetoableVisualGraphEventMediatorListener given
by listener from the
VetoableVisualGraphEventMediator instance such that the
listener will no longer be notified about occuring events.
listener - the VetoableVisualGraphEventMediatorListener
to removepublic java.util.List getListeners()
List of the
VetoableVisualGraphEventMediatorListeners currently
registered.
public void vetoableVisualNodePreAdd(VisualGraphEvent visualgraphevent)
throws VisualGraphEventVetoException
VetoableVisualGraphListenerVisualNode is about to be added
to a VisualGraph.VisualGraphEventVetoException
the event will be veto'd and the corresponding action will not be
completed.
vetoableVisualNodePreAdd in interface VetoableVisualGraphListenervisualgraphevent - the VisualGraphEvent structure
carrying event information.
VisualGraphEventVetoException - that indicates the
VisualGraphEvent is not desired.
public void vetoableVisualNodePreRemove(VisualGraphEvent visualgraphevent)
throws VisualGraphEventVetoException
VetoableVisualGraphListenerVisualNode is about to be
removed from a VisualGraph.VisualGraphEventVetoException
the event will be veto'd and the corresponding action will not be
completed.
vetoableVisualNodePreRemove in interface VetoableVisualGraphListenervisualgraphevent - the VisualGraphEvent structure
carrying event information.
VisualGraphEventVetoException - that indicates the
VisualGraphEvent is not desired.
public void vetoableVisualEdgePreAdd(VisualGraphEvent visualgraphevent)
throws VisualGraphEventVetoException
VetoableVisualGraphListenerVisualEdge is about to be
added to a VisualGraph.VisualGraphEventVetoException
the event will be veto'd and the corresponding action will not be
completed.
vetoableVisualEdgePreAdd in interface VetoableVisualGraphListenervisualgraphevent - the VisualGraphEvent structure
carrying event information.
VisualGraphEventVetoException - that indicates the
VisualGraphEvent is not desired.
public void vetoableVisualEdgePreRemove(VisualGraphEvent visualgraphevent)
throws VisualGraphEventVetoException
VetoableVisualGraphListenerVisualEdge is about to be
removed from a VisualGraph.VisualGraphEventVetoException
the event will be veto'd and the corresponding action will not be
completed.
vetoableVisualEdgePreRemove in interface VetoableVisualGraphListenervisualgraphevent - the VisualGraphEvent structure
carrying event information.
VisualGraphEventVetoException - that indicates the
VisualGraphEvent is not desired.
public void vetoableIsolatedVisualEdgePreAdd(VisualGraphEvent visualgraphevent)
throws VisualGraphEventVetoException
VetoableVisualGraphListenerVisualEdge is about
to be added to a VisualGraph.VisualGraphEventVetoException
the event will be veto'd and the corresponding action will not be
completed.
vetoableIsolatedVisualEdgePreAdd in interface VetoableVisualGraphListenervisualgraphevent - the VisualGraphEvent structure
carrying event information.
VisualGraphEventVetoException - that indicates the
VisualGraphEvent is not desired.
public void vetoableIsolatedVisualEdgePreRemove(VisualGraphEvent visualgraphevent)
throws VisualGraphEventVetoException
VetoableVisualGraphListenerVisualEdge is about
to be removed from a VisualGraph.VisualGraphEventVetoException
the event will be veto'd and the corresponding action will not be
completed.
vetoableIsolatedVisualEdgePreRemove in interface VetoableVisualGraphListenervisualgraphevent - the VisualGraphEvent structure
carrying event information.
VisualGraphEventVetoException - that indicates the
VisualGraphEvent is not desired.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||