|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.hierarchic.AbstractDrawer y.layout.hierarchic.SimplexDrawer
public class SimplexDrawer
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 nodes based on simplex-rank assignment. |
protected int |
getCost(Graph graph,
NodeMap result,
EdgeMap weight,
EdgeMap minLength)
Returns the overall edge cost of the result. |
long |
getMaximalDuration()
Returns the time limit (in milliseconds) set for the algorithm. |
int |
getStraighteningFactor()
Gets the straightening factor. |
protected static boolean |
isDummy(LayoutGraph graph,
Node node)
Returns whether the given node is a dummy node. |
void |
setMaximalDuration(long maximalDuration)
Sets a preferred time limit (in milliseconds) for the algorithm. |
void |
setStraighteningFactor(int bendStraighteningFactor)
Sets the straightening factor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimplexDrawer()
Method Detail |
---|
public int getStraighteningFactor()
public void setStraighteningFactor(int bendStraighteningFactor)
public long getMaximalDuration()
setMaximalDuration(long)
public void setMaximalDuration(long maximalDuration)
maximalDuration
- the time limit.getMaximalDuration()
protected void assignCoordinates(NodeList[] layerLists, DataProvider layerID)
assignCoordinates
in class AbstractDrawer
layerLists
- The nodes in each layer.layerID
- Provides the layer ID for nodes.protected int getCost(Graph graph, NodeMap result, EdgeMap weight, EdgeMap minLength)
result
- The result to calculate the cost for.weight
- Provides the edge weights.minLength
- Provides the min length for edges.
protected static boolean isDummy(LayoutGraph graph, Node node)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |