|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Drawer
Interface for the third phase of the Sugiyama algorithm. It assigns the coordinates to the nodes according to the defined range.
Field Summary | |
---|---|
static Object |
NODE_BORDER_BOTTOM
The key used to look up a data provider that, if present, must provide a double value for each node in the graph. |
static Object |
NODE_BORDER_LEFT
The key used to look up a data provider that, if present, must provide a double value for each node in the graph. |
static Object |
NODE_BORDER_RIGHT
The key used to look up a data provider that, if present, must provide a double value for each node in the graph. |
static Object |
NODE_BORDER_TOP
The key used to look up a data provider that, if present, must provide a double value for each node in the graph. |
static Object |
NODE_DISTANCE
The key used to look up a data provider that, if present, must provide a double value for each node in the graph. |
Method Summary | |
---|---|
void |
assignCoordinates(LayoutGraph g,
NodeList[] layerLists,
DataProvider layerID)
This method assigns the coordinates to the nodes. |
void |
setDummyMap(NodeMap dummy)
Gives the drawer the opportunity to distinguish between dummy nodes and real ones. dummy stores the original edge for each dummy node or null for real nodes. |
void |
setMinimalEdgeDistance(double d)
Sets the minimal distance between two edges in the same layer. |
void |
setMinimalLayerDistance(double d)
Sets the minimal distance between two layers. |
void |
setMinimalMultiEdgeDistance(double d)
Sets the minimal distance between two edges sharing source/target (aka multi-edges) in the same layer. |
void |
setMinimalNodeDistance(double d)
Sets the minimal distance between two nodes in the same layer. |
Field Detail |
---|
static final Object NODE_BORDER_LEFT
static final Object NODE_BORDER_RIGHT
static final Object NODE_BORDER_TOP
static final Object NODE_BORDER_BOTTOM
static final Object NODE_DISTANCE
setMinimalNodeDistance(double)
,
setMinimalEdgeDistance(double)
and setMinimalMultiEdgeDistance(double)
will be ignored.
Drawer implementations may ignore the data provided.
Method Detail |
---|
void assignCoordinates(LayoutGraph g, NodeList[] layerLists, DataProvider layerID)
void setDummyMap(NodeMap dummy)
null
for real nodes.
void setMinimalNodeDistance(double d)
void setMinimalEdgeDistance(double d)
void setMinimalMultiEdgeDistance(double d)
void setMinimalLayerDistance(double d)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |