y.layout.hierarchic
Class SimplexDrawer

java.lang.Object
  |
  +--y.layout.hierarchic.AbstractDrawer
        |
        +--y.layout.hierarchic.SimplexDrawer
All Implemented Interfaces:
Drawer

public class SimplexDrawer
extends AbstractDrawer

Drawer based on rank-assignment. The drawer works only with integer values and rounds double values to integers.


Field Summary
 
Fields inherited from class y.layout.hierarchic.AbstractDrawer
distanceToNextNode, dummyMap, edgeLengthKey, graph, minimalEdgeDistance, minimalLayerDistance, minimalMultiEdgeDistance, minimalNodeDistance
 
Fields inherited from interface y.layout.hierarchic.Drawer
NODE_BORDER_BOTTOM, NODE_BORDER_LEFT, NODE_BORDER_RIGHT, NODE_BORDER_TOP, NODE_DISTANCE
 
Constructor Summary
SimplexDrawer()
           
 
Method Summary
protected  void assignCoordinates(NodeList[] layerLists, DataProvider layerID)
          Assigns the coordinates to the
protected  int getCost(Graph graph, NodeMap result, EdgeMap weight, EdgeMap minLength)
           
 int getStraighteningFactor()
           
protected static boolean isDummy(LayoutGraph graph, Node node)
           
 void setStraighteningFactor(int bendStraighteningFactor)
           
 
Methods inherited from class y.layout.hierarchic.AbstractDrawer
assignCoordinates, assignYCoords, assignYCoords, dispose, getBottomBorder, getBottomHalf, getBottomY, getDistanceToNextNode, getFullHeight, getFullWidth, getLeftBorder, getLeftHalf, getLeftX, getMinimalEdgeDistance, getMinimalLayerDistance, getMinimalMultiEdgeDistance, getMinimalNodeDistance, getRightBorder, getRightHalf, getRightX, getTopBorder, getTopHalf, getTopY, initializeDistancesToNextNode, setDummyMap, setEdgeLengthKey, setMinimalEdgeDistance, setMinimalLayerDistance, setMinimalMultiEdgeDistance, setMinimalNodeDistance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplexDrawer

public SimplexDrawer()
Method Detail

getStraighteningFactor

public int getStraighteningFactor()

setStraighteningFactor

public void setStraighteningFactor(int bendStraighteningFactor)

assignCoordinates

protected void assignCoordinates(NodeList[] layerLists,
                                 DataProvider layerID)
Assigns the coordinates to the

Specified by:
assignCoordinates in class AbstractDrawer
Parameters:
layerLists -
layerID -

getCost

protected int getCost(Graph graph,
                      NodeMap result,
                      EdgeMap weight,
                      EdgeMap minLength)

isDummy

protected static boolean isDummy(LayoutGraph graph,
                                 Node node)

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

2003