Search this API

y.layout.planar
Class DrawingEmbedder

java.lang.Object
  extended by y.layout.planar.DrawingEmbedder
All Implemented Interfaces:
y.layout.orthogonal.general.MaximumDurationAware, Embedder

public class DrawingEmbedder
extends java.lang.Object
implements Embedder, y.layout.orthogonal.general.MaximumDurationAware

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

 
Your browser does not support SVG content.

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.
 long getMaximumDuration()
           
 void setKeepBends(boolean _keepBends)
          Sets if bends should be replaced by dummy nodes.
 void setMaximumDuration(long maximumDuration)
           
 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

getMaximumDuration

public long getMaximumDuration()

setMaximumDuration

public void setMaximumDuration(long maximumDuration)
Specified by:
setMaximumDuration in interface y.layout.orthogonal.general.MaximumDurationAware

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

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