y.layout.planar
Class DrawingEmbedder

java.lang.Object
  |
  +--y.layout.planar.DrawingEmbedder
All Implemented Interfaces:
Embedder

public class DrawingEmbedder
extends Object
implements Embedder

Computes a planar embedding from a planar drawing of a graph.


Constructor Summary
DrawingEmbedder()
           
 
Method Summary
 void dispose()
          Dispose unused information.
 void embed()
          Calculate planar embedding.
 boolean getKeepBends()
          Returns if bends should be replaced by dummy nodes.
protected static void preprocessNode(LayoutGraph gd, Node node, y.geom.kernel.Kernel kernel)
           
static void preprocessNodes(LayoutGraph gd)
           
protected  void printStatistics()
           
 void setKeepBends(boolean _keepBends)
          Sets if bends should be replaced by dummy nodes.
 void setNoLayoutEdgeMap(EdgeMap _noLayout)
          Sets the map, for which edges the layout information cannot be used.
 void setNoLayoutNodeMap(NodeMap _noLayout)
          Sets the map, for which nodes the layout information cannot be used.
 void setPlanarInformation(PlanarInformation _planar)
          Sets the input planar information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawingEmbedder

public DrawingEmbedder()
Method Detail

setPlanarInformation

public void setPlanarInformation(PlanarInformation _planar)
Sets the input planar information.

Specified by:
setPlanarInformation in interface Embedder

setNoLayoutEdgeMap

public void setNoLayoutEdgeMap(EdgeMap _noLayout)
Sets the map, for which edges the layout information cannot be used. These edges will be routed automatically.

Parameters:
_noLayout - a map defined on the input planar graph.

setNoLayoutNodeMap

public void setNoLayoutNodeMap(NodeMap _noLayout)
Sets the map, for which nodes the layout information cannot be used. Edges adjacent to these nodes will be routed automatically.

Parameters:
_noLayout - a map defined on the input planar graph.

setKeepBends

public void setKeepBends(boolean _keepBends)
Sets if bends should be replaced by dummy nodes.


getKeepBends

public boolean getKeepBends()
Returns if bends should be replaced by dummy nodes.


embed

public void embed()
Calculate planar embedding.

Specified by:
embed in interface Embedder

dispose

public void dispose()
Dispose unused information.

Specified by:
dispose in interface Embedder

preprocessNodes

public static void preprocessNodes(LayoutGraph gd)

preprocessNode

protected static void preprocessNode(LayoutGraph gd,
                                     Node node,
                                     y.geom.kernel.Kernel kernel)

printStatistics

protected void printStatistics()

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003