com.tensegrity.gui.graphdocument
Class GraphPanelDnDGeometryAdjustmentUtil

java.lang.Object
  extended bycom.tensegrity.gui.graphdocument.GraphPanelDnDGeometryAdjustmentUtil

public class GraphPanelDnDGeometryAdjustmentUtil
extends java.lang.Object

The GraphPanelDnDGeometryAdjustmentUtil class provides some functionalities needed by different GraphPanel implementation during drag and drop of VisualGraphObject instances.

Version:
$Id$
Author:
MKegel

Method Summary
static void adjustGeometry(VisualGraphView vgv, VisualEdge ve)
          Adjusts the geometry of the given VisualEdge object to the coordinate system of the given VisualGraphView object.
static void adjustGeometry(VisualGraphView vgv, VisualNode vn)
          Adjusts the geometry of the given VisualNode object to the coordinate system of the given VisualGraphView object.
static void applyLayout(VisualGraphView vgv, VisualSubgraph vsg)
          Applies the layout, the LayoutController associated to the given VisualGraphView object is configured to, to the given VisualSubgraph object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

adjustGeometry

public static final void adjustGeometry(VisualGraphView vgv,
                                        VisualNode vn)
Adjusts the geometry of the given VisualNode object to the coordinate system of the given VisualGraphView object.
In case the given VisualNode object is a VisualSubgraph instance its children and grandchildren are recursively adjusted as well.

Parameters:
vgv - the VisualGraphView object to adjust the geometry of the given VisualNode object to
vn - the VisualNode object to adjust the geometry for
See Also:
VisualGraphView, VisualNode, VisualSubgraph

adjustGeometry

public static final void adjustGeometry(VisualGraphView vgv,
                                        VisualEdge ve)
Adjusts the geometry of the given VisualEdge object to the coordinate system of the given VisualGraphView object.

Parameters:
vgv - the VisualGraphView object to adjust the geometry of the given VisualEdge object to
ve - the VisualEdge object to adjust the geometry for
See Also:
VisualGraphView, VisualEdge

applyLayout

public static final void applyLayout(VisualGraphView vgv,
                                     VisualSubgraph vsg)
Applies the layout, the LayoutController associated to the given VisualGraphView object is configured to, to the given VisualSubgraph object.
This means in case the associated LayoutController is configured to perform dynamic layout it is applied to the given VisualSubgraph.
Notice:A dynamic node layout is currently not applied.

Parameters:
vgv - the VisualGraphView object to use the associated LayoutController from
vsg - the VisualSubgraph to apply the layout to
See Also:
VisualGraphView, LayoutController, VisualSubgraph


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