diva.graph.layout
Class LayoutUtilities

java.lang.Object
  extended by diva.graph.layout.LayoutUtilities

public final class LayoutUtilities
extends java.lang.Object

Miscellaneous utility routines used in layout.

Version:
$Id: LayoutUtilities.java 39592 2005-10-24 19:09:12Z cxh $
Author:
Michael Shilman
Accepted Rating:
Red

Constructor Summary
LayoutUtilities()
           
 
Method Summary
private static boolean checkCommon(java.lang.Object composite, GraphModel model)
          A common layout consistency check shared by checkConsistency() and checkContainment().
static boolean checkConsistency(java.lang.Object composite, GraphModel model)
          Check consistency of the graph in terms of topology and layout.
static boolean checkContainment(java.lang.Object composite, GraphModel model)
          Check consistency and containment in terms of topology and layout.
static void place(LayoutTarget target, java.lang.Object node, double x, double y)
          Place the given node at the given position and reroute its edges.
static void placeNoReroute(LayoutTarget target, java.lang.Object node, double x, double y)
          Place the given node at the given position but do not reroute its edges.
static void routeVisibleEdges(java.lang.Object composite, LayoutTarget target)
          Iterate over all the visible edges in the given graph and reroute them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutUtilities

public LayoutUtilities()
Method Detail

place

public static final void place(LayoutTarget target,
                               java.lang.Object node,
                               double x,
                               double y)
Place the given node at the given position and reroute its edges.


placeNoReroute

public static final void placeNoReroute(LayoutTarget target,
                                        java.lang.Object node,
                                        double x,
                                        double y)
Place the given node at the given position but do not reroute its edges.


checkConsistency

public static final boolean checkConsistency(java.lang.Object composite,
                                             GraphModel model)
Check consistency of the graph in terms of topology and layout.


checkContainment

public static final boolean checkContainment(java.lang.Object composite,
                                             GraphModel model)
Check consistency and containment in terms of topology and layout.


checkCommon

private static final boolean checkCommon(java.lang.Object composite,
                                         GraphModel model)
A common layout consistency check shared by checkConsistency() and checkContainment().


routeVisibleEdges

public static final void routeVisibleEdges(java.lang.Object composite,
                                           LayoutTarget target)
Iterate over all the visible edges in the given graph and reroute them.