|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Drawer
This interface implements the drawing phase of the hierarchic layout algorithm
(i.e., the assignment of nodes' coordinates).
The assignment of coordinates to the nodes is performed according to the defined range.
Field Summary | |
---|---|
static java.lang.Object |
NODE_BORDER_BOTTOM
A DataProvider key for defining an overlap-free border to the bottom side of the associated node.
|
static java.lang.Object |
NODE_BORDER_LEFT
A DataProvider key for defining an overlap-free border to the left side of the associated node.
|
static java.lang.Object |
NODE_BORDER_RIGHT
A DataProvider key for defining an overlap-free border to the right side of the associated node.
|
static java.lang.Object |
NODE_BORDER_TOP
A DataProvider key for defining an overlap-free border to the top side of the associated node.
|
static java.lang.Object |
NODE_DISTANCE
A DataProvider key for specifying the minimum distance between the right border of the node and the left border
of its right-hand side neighbor in the layer.
|
Method Summary | |
---|---|
void |
assignCoordinates(LayoutGraph graph,
NodeList[] layerLists,
DataProvider layerID)
Assigns the coordinates to the nodes of the given graph. |
void |
setDummyMap(NodeMap dummyMap)
Specifies a NodeMap instance for identifying the dummy nodes from the real ones. |
void |
setMinimalEdgeDistance(double d)
Specifies the minimum distance between two edges that span the same layer. |
void |
setMinimalLayerDistance(double d)
Specifies the minimum distance between two layers. |
void |
setMinimalMultiEdgeDistance(double d)
Specifies the minimum distance between two edges sharing source/target (e.g. multi-edges) of the same layer. |
void |
setMinimalNodeDistance(double d)
Specifies the minimum distance between two nodes of the same layer. |
Field Detail |
---|
static final java.lang.Object NODE_BORDER_LEFT
DataProvider
key for defining an overlap-free border to the left side of the associated node.
static final java.lang.Object NODE_BORDER_RIGHT
DataProvider
key for defining an overlap-free border to the right side of the associated node.
static final java.lang.Object NODE_BORDER_TOP
DataProvider
key for defining an overlap-free border to the top side of the associated node.
static final java.lang.Object NODE_BORDER_BOTTOM
DataProvider
key for defining an overlap-free border to the bottom side of the associated node.
static final java.lang.Object NODE_DISTANCE
DataProvider
key for specifying the minimum distance between the right border of the node and the left border
of its right-hand side neighbor in the layer.
Method Detail |
---|
void assignCoordinates(LayoutGraph graph, NodeList[] layerLists, DataProvider layerID)
graph
- the graphlayerLists
- the 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 belongsvoid setDummyMap(NodeMap dummyMap)
NodeMap
instance for identifying the dummy nodes from the real ones.
dummyMap
- the NodeMap
that returns the original edge for each dummy node or
null
for real nodesvoid setMinimalNodeDistance(double d)
void setMinimalEdgeDistance(double d)
void setMinimalMultiEdgeDistance(double d)
void setMinimalLayerDistance(double d)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |