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.
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 |
SimplexDrawer
public SimplexDrawer()
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)