com.tensegrity.graph.view
Interface NestedVisualEdgeCreationController


public interface NestedVisualEdgeCreationController

This class is a predicate callback that can be used to control what nested-edges the api may introduce or not.

A single instance of this interface can be added to each toplevel VisualGraphView and then control the creation of cross-edges.

Version:
$Id: NestedVisualEdgeCreationController.java,v 1.3 2004/11/11 11:51:46 MichaelKegel Exp $
Author:
S. Rutz, M. Kegel

Method Summary
 boolean preVisualEdgeCreate(VisualGraphView visualgraphview, VisualNode source, VisualNode target)
          Callback method that returns a boolean value that indicates whether the desired connection of two nested VisualNodes that are somewhere in the hierarchy is allowed or not.
 

Method Detail

preVisualEdgeCreate

public boolean preVisualEdgeCreate(VisualGraphView visualgraphview,
                                   VisualNode source,
                                   VisualNode target)
Callback method that returns a boolean value that indicates whether the desired connection of two nested VisualNodes that are somewhere in the hierarchy is allowed or not.

Parameters:
visualgraphview - the toplevelview in which both VisualNodes are currently added.
source - the source VisualNode of the edge that is about to be created.
target - the target VisualNode of the edge that is about to be created.
Returns:
true if the connection is allowed, otherwise false.


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