com.tensegrity.graph.view
Class InteractionControlAdapter

java.lang.Object
  extended bycom.tensegrity.graph.view.InteractionControlAdapter
All Implemented Interfaces:
InteractionControl, java.io.Serializable

public class InteractionControlAdapter
extends java.lang.Object
implements InteractionControl, java.io.Serializable

Interaction control. This class defines some standard values for interaction control. It is a default overridden class for the specification interface InteractionControl.

Version:
$Id: InteractionControlAdapter.java,v 1.8 2006/03/23 11:15:10 MichaelKegel Exp $
Author:
Stepan Rutz
See Also:
InteractionControl, Serialized Form

Constructor Summary
InteractionControlAdapter()
          Constructs a InteractionControlAdapter instance.
 
Method Summary
 boolean preAttachSource(VisualGraph visualgraph, VisualEdge visualedge, VisualPort newport)
          This method is invoked as a callback before the source-end of VisualEdge is attached.
 boolean preAttachTarget(VisualGraph visualgraph, VisualEdge visualedge, VisualPort newport)
          This method is invoked as a callback before the target-end of VisualEdge is attached.
 boolean preDetachSource(VisualGraph visualgraph, VisualEdge visualedge)
          This method is invoked as a callback before the source-end of VisualEdge is detached.
 boolean preDetachTarget(VisualGraph visualgraph, VisualEdge visualedge)
          This method is invoked as a callback before the target-end of VisualEdge is detached.
 boolean preDragVisualEdge(VisualGraph visualgraph, VisualEdge visualedge)
          This method is invoked as a callback before a VisualEdge is dragged.
 boolean preHighlightPort(VisualGraph visualgraph, VisualPort visualport)
          This method is invoked as a callback before a VisualPort is highlighted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionControlAdapter

public InteractionControlAdapter()
Constructs a InteractionControlAdapter instance.

Method Detail

preDragVisualEdge

public boolean preDragVisualEdge(VisualGraph visualgraph,
                                 VisualEdge visualedge)
Description copied from interface: InteractionControl
This method is invoked as a callback before a VisualEdge is dragged.

Specified by:
preDragVisualEdge in interface InteractionControl
Parameters:
visualgraph - the VisualGraph in which the interaction occured.
visualedge - the VisualEdge that was dragged.
Returns:
boolean to indicate whether the operation shall proceed.
See Also:
VisualGraph, VisualEdge

preDetachSource

public boolean preDetachSource(VisualGraph visualgraph,
                               VisualEdge visualedge)
Description copied from interface: InteractionControl
This method is invoked as a callback before the source-end of VisualEdge is detached.

Specified by:
preDetachSource in interface InteractionControl
Parameters:
visualgraph - the VisualGraph in which the interaction occured.
visualedge - the VisualEdge that is being detached.
Returns:
boolean to indicate whether the operation shall proceed.
See Also:
VisualGraph, VisualEdge

preDetachTarget

public boolean preDetachTarget(VisualGraph visualgraph,
                               VisualEdge visualedge)
Description copied from interface: InteractionControl
This method is invoked as a callback before the target-end of VisualEdge is detached.

Specified by:
preDetachTarget in interface InteractionControl
Parameters:
visualgraph - the VisualGraph in which the interaction occured.
visualedge - the VisualEdge that is being detached.
Returns:
boolean to indicate whether the operation shall proceed.
See Also:
VisualGraph, VisualEdge

preAttachSource

public boolean preAttachSource(VisualGraph visualgraph,
                               VisualEdge visualedge,
                               VisualPort newport)
Description copied from interface: InteractionControl
This method is invoked as a callback before the source-end of VisualEdge is attached.

Specified by:
preAttachSource in interface InteractionControl
Parameters:
visualgraph - the VisualGraph in which the interaction occured.
visualedge - the VisualEdge that is being attached.
Returns:
boolean to indicate whether the operation shall proceed.
See Also:
VisualGraph, VisualEdge, VisualPort

preAttachTarget

public boolean preAttachTarget(VisualGraph visualgraph,
                               VisualEdge visualedge,
                               VisualPort newport)
Description copied from interface: InteractionControl
This method is invoked as a callback before the target-end of VisualEdge is attached.

Specified by:
preAttachTarget in interface InteractionControl
Parameters:
visualgraph - the VisualGraph in which the interaction occured.
visualedge - the VisualEdge that is being attached.
Returns:
boolean to indicate whether the operation shall proceed.
See Also:
VisualGraph, VisualEdge, VisualPort

preHighlightPort

public boolean preHighlightPort(VisualGraph visualgraph,
                                VisualPort visualport)
Description copied from interface: InteractionControl
This method is invoked as a callback before a VisualPort is highlighted.

Specified by:
preHighlightPort in interface InteractionControl
Parameters:
visualgraph - the VisualGraph in which the interaction occured.
Returns:
boolean to indicate whether the operation shall proceed.
See Also:
VisualGraph, VisualEdge, VisualPort


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