|
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.PolylineDrawer
public class PolylineDrawer
This class is an implementation of the drawing phase of the HierarchicLayouter
(i.e., the assignment of nodes' coordinates) which represents edges by polyline segments.
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 | |
---|---|
PolylineDrawer()
Creates an instance of PolylineDrawer with default settings. |
Method Summary | |
---|---|
protected void |
assignCoordinates(NodeList[] layerLists,
DataProvider layerID)
Assigns the final coordinates to the objects of the graph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolylineDrawer()
PolylineDrawer
with default settings.
Method Detail |
---|
protected void assignCoordinates(NodeList[] layerLists, DataProvider layerID)
AbstractDrawer
This method is called by HierarchicLayouter.doLayoutCore(LayoutGraph)
after the nodes are distributed in
layers. It has to be implemented to assign the final coordinates to the objects of the graph based on the user's
specifications.
assignCoordinates
in class AbstractDrawer
layerLists
- an array of NodeList
s each of which contains nodes that belong to the same layerlayerID
- the DataProvider
that returns the zero-based index of the layer to which each node belongs
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |