com.tensegrity.graph.event
Class VisualGraphEventMediatorAdapter

java.lang.Object
  extended bycom.tensegrity.graph.event.VisualGraphEventMediatorAdapter
All Implemented Interfaces:
EventListenerTag, VisualEdgeListener, VisualGraphEventMediatorListener, VisualGraphListener, VisualNodeListener

public class VisualGraphEventMediatorAdapter
extends java.lang.Object
implements VisualGraphEventMediatorListener

The VisualGraphEventMediatorAdapter class implements the VisualGraphEventMediatorListener interface and overrides all methods declared there with methods which have no functionality inside. So that, when creating a VisualGraphEventMediatorListener not all of the methods have to be overridden, only those methods which are from interest.

Version:
$Id: VisualGraphEventMediatorAdapter.java,v 1.8 2005/10/31 09:25:53 MichaelKegel Exp $
Author:
MichaelKegel

Constructor Summary
VisualGraphEventMediatorAdapter()
          Constructor for VisualGraphEventMediatorAdapter.
 
Method Summary
 void isolatedVisualEdgeAdded(VisualEdgeEvent event)
          This method is invoked when an isolated VisualEdge is added.
 void isolatedVisualEdgeAdded(VisualGraphEvent visualgraphevent)
          An isolated VisualEdge was added to the VisualGraph.
 void isolatedVisualEdgeRemoved(VisualEdgeEvent event)
          This method is invoked when an isolated VisualEdge is removed.
 void isolatedVisualEdgeRemoved(VisualGraphEvent visualgraphevent)
          An isolated VisualEdge was removed from the VisualGraph.
 void layout(VisualGraphEvent visualgraphevent)
          The structure of the VisualGraph has changed by an action on the graph, so that the current layout of the graph has to be applied.
 void visualEdgeAdded(VisualEdgeEvent event)
          This method is invoked when a VisualEdge is added.
 void visualEdgeAdded(VisualGraphEvent visualgraphevent)
          A VisualEdge was added to the VisualGraph.
 void visualEdgeAttachRejected(VisualGraphEvent visualgraphevent)
          An attachment of a VisualEdge was rejected by the graph.
 void visualEdgeRemoved(VisualEdgeEvent event)
          This method is invoked when a VisualEdge is removed.
 void visualEdgeRemoved(VisualGraphEvent visualgraphevent)
          A VisualEdge was removed from the VisualGraph.
 void visualEdgeSplit(VisualGraphEvent visualgraphevent)
          An edge-split was performed.
 void visualNodeAdded(VisualGraphEvent visualgraphevent)
          A VisualNode was added to the VisualGraph.
 void visualNodeAdded(VisualNodeEvent event)
          This method is invoked when a VisualNode is added.
 void visualNodeDeleteEdgeCascade(VisualGraphEvent visualgraphevent)
          An edge-cascade was performed.
 void visualNodeRemoved(VisualGraphEvent visualgraphevent)
          A VisualNode was added to the VisualGraph.
 void visualNodeRemoved(VisualNodeEvent event)
          This method is invoked when a VisualNode is removed.
 void visualPortAdded(VisualNodeEvent event)
          This method is invoked on the listener if a VisualPort is added to a VisualNode.
 void visualPortRemoved(VisualNodeEvent event)
          This method is invoked on the listener if a VisualPort is removed from a VisualNode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisualGraphEventMediatorAdapter

public VisualGraphEventMediatorAdapter()
Constructor for VisualGraphEventMediatorAdapter.

Method Detail

visualNodeAdded

public void visualNodeAdded(VisualGraphEvent visualgraphevent)
Description copied from interface: VisualGraphListener
A VisualNode was added to the VisualGraph.

Specified by:
visualNodeAdded in interface VisualGraphListener
Parameters:
visualgraphevent - the VisualGraphEvent structure that contains the event information.

visualNodeRemoved

public void visualNodeRemoved(VisualGraphEvent visualgraphevent)
Description copied from interface: VisualGraphListener
A VisualNode was added to the VisualGraph.

Specified by:
visualNodeRemoved in interface VisualGraphListener
Parameters:
visualgraphevent - the VisualGraphEvent structure that contains the event information.

visualEdgeAdded

public void visualEdgeAdded(VisualGraphEvent visualgraphevent)
Description copied from interface: VisualGraphListener
A VisualEdge was added to the VisualGraph.

Specified by:
visualEdgeAdded in interface VisualGraphListener
Parameters:
visualgraphevent - the VisualGraphEvent structure that contains the event information.

visualEdgeRemoved

public void visualEdgeRemoved(VisualGraphEvent visualgraphevent)
Description copied from interface: VisualGraphListener
A VisualEdge was removed from the VisualGraph.

Specified by:
visualEdgeRemoved in interface VisualGraphListener
Parameters:
visualgraphevent - the VisualGraphEvent structure that contains the event information.

isolatedVisualEdgeAdded

public void isolatedVisualEdgeAdded(VisualGraphEvent visualgraphevent)
Description copied from interface: VisualGraphListener
An isolated VisualEdge was added to the VisualGraph.

Specified by:
isolatedVisualEdgeAdded in interface VisualGraphListener
Parameters:
visualgraphevent - the VisualGraphEvent structure that contains the event information.

isolatedVisualEdgeRemoved

public void isolatedVisualEdgeRemoved(VisualGraphEvent visualgraphevent)
Description copied from interface: VisualGraphListener
An isolated VisualEdge was removed from the VisualGraph.

Specified by:
isolatedVisualEdgeRemoved in interface VisualGraphListener
Parameters:
visualgraphevent - the VisualGraphEvent structure that contains the event information.

visualEdgeAttachRejected

public void visualEdgeAttachRejected(VisualGraphEvent visualgraphevent)
Description copied from interface: VisualGraphListener
An attachment of a VisualEdge was rejected by the graph. This event is thrown to indicate that an edge could not be added if the library chooses to do so in certain contexts. If it however not thrown in all cases when a VisualEdge cannot be added. If for example an already added VisualEdge is added, this event is not thrown.

Specified by:
visualEdgeAttachRejected in interface VisualGraphListener
Parameters:
visualgraphevent - the VisualGraphEvent structure that contains the event information.

visualEdgeSplit

public void visualEdgeSplit(VisualGraphEvent visualgraphevent)
Description copied from interface: VisualGraphListener
An edge-split was performed.

Specified by:
visualEdgeSplit in interface VisualGraphListener
Parameters:
visualgraphevent - the VisualGraphEvent structure that contains the event information.

visualNodeDeleteEdgeCascade

public void visualNodeDeleteEdgeCascade(VisualGraphEvent visualgraphevent)
Description copied from interface: VisualGraphListener
An edge-cascade was performed.

Specified by:
visualNodeDeleteEdgeCascade in interface VisualGraphListener
Parameters:
visualgraphevent - the VisualGraphEvent structure that contains the event information.

layout

public void layout(VisualGraphEvent visualgraphevent)
Description copied from interface: VisualGraphListener
The structure of the VisualGraph has changed by an action on the graph, so that the current layout of the graph has to be applied. Note: programmatically changes like node insertion might not invoke this callback

Specified by:
layout in interface VisualGraphListener
Parameters:
visualgraphevent - the VisualGraphEvent structure that contains the event information.

visualNodeAdded

public void visualNodeAdded(VisualNodeEvent event)
Description copied from interface: VisualNodeListener
This method is invoked when a VisualNode is added.

Specified by:
visualNodeAdded in interface VisualNodeListener
Parameters:
event - the event structure carrying additional information.

visualNodeRemoved

public void visualNodeRemoved(VisualNodeEvent event)
Description copied from interface: VisualNodeListener
This method is invoked when a VisualNode is removed.

Specified by:
visualNodeRemoved in interface VisualNodeListener
Parameters:
event - the event structure carrying additional information.

visualPortAdded

public void visualPortAdded(VisualNodeEvent event)
Description copied from interface: VisualNodeListener
This method is invoked on the listener if a VisualPort is added to a VisualNode.

Specified by:
visualPortAdded in interface VisualNodeListener

visualPortRemoved

public void visualPortRemoved(VisualNodeEvent event)
Description copied from interface: VisualNodeListener
This method is invoked on the listener if a VisualPort is removed from a VisualNode.

Specified by:
visualPortRemoved in interface VisualNodeListener
Parameters:
event - the structure that holds details about the event.

visualEdgeAdded

public void visualEdgeAdded(VisualEdgeEvent event)
Description copied from interface: VisualEdgeListener
This method is invoked when a VisualEdge is added.

Specified by:
visualEdgeAdded in interface VisualEdgeListener
Parameters:
event - the event structure carrying additional information.

visualEdgeRemoved

public void visualEdgeRemoved(VisualEdgeEvent event)
Description copied from interface: VisualEdgeListener
This method is invoked when a VisualEdge is removed.

Specified by:
visualEdgeRemoved in interface VisualEdgeListener
Parameters:
event - the event structure carrying additional information.

isolatedVisualEdgeAdded

public void isolatedVisualEdgeAdded(VisualEdgeEvent event)
Description copied from interface: VisualEdgeListener
This method is invoked when an isolated VisualEdge is added.

Specified by:
isolatedVisualEdgeAdded in interface VisualEdgeListener
Parameters:
event - the event structure carrying additional information.

isolatedVisualEdgeRemoved

public void isolatedVisualEdgeRemoved(VisualEdgeEvent event)
Description copied from interface: VisualEdgeListener
This method is invoked when an isolated VisualEdge is removed.

Specified by:
isolatedVisualEdgeRemoved in interface VisualEdgeListener
Parameters:
event - the event structure carrying additional information.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.