|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.guess.layout.SugiyamaLayout
Arranges the nodes with the Sugiyama Layout Algorithm.
Link to the algorithm
| Field Summary | |
static String |
SUGIYAMA_CELL_WRAPPER
Const to add the Cell Wrapper to the Nodes |
static String |
SUGIYAMA_VISITED
Const to add Attributes at the Nodes |
| Constructor Summary | |
SugiyamaLayout(Graph originalGraph,
boolean bends)
Implementation. |
|
| Method Summary | |
double |
averageTension(Vector curLayer)
|
String |
getHint()
Get a human readable hint for using this layout. |
Point |
getSpacing()
|
boolean |
isVertical()
|
void |
setSpacing(Point spacing)
|
void |
setVertical(boolean vertical)
|
void |
shiftLayer(Vector curLayer,
double inc)
|
void |
shiftLayers(Vector levels)
|
String |
toString()
Returns the name of this algorithm in human readable form. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String SUGIYAMA_VISITED
public static final String SUGIYAMA_CELL_WRAPPER
| Constructor Detail |
public SugiyamaLayout(Graph originalGraph,
boolean bends)
levels.
The Member levels contains Vector Objects and the Vector per level
contains Cell Wrapper Objects. After that the Algorithm
tries to solve the edge crosses from level to level and
goes top down and bottom up. After minimization of the
edge crosses the algorithm moves each node to its
bary center. Last but not Least the method draws the Graph.
LayoutAlgorithm| Method Detail |
public String toString()
public String getHint()
public void shiftLayers(Vector levels)
public void shiftLayer(Vector curLayer,
double inc)
public double averageTension(Vector curLayer)
public Point getSpacing()
public void setSpacing(Point spacing)
spacing - The spacing to set.public boolean isVertical()
public void setVertical(boolean vertical)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||