|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.CanonicMultiStageLayouter | +--y.layout.orthogonal.OrthogonalGroupLayouter
This class provides a layout algorithm which produces orthogonal drawings of hierarchically grouped graphs.
Here is a sample output of the layouter.
Field Summary |
Fields inherited from interface y.layout.Layouter |
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
OrthogonalGroupLayouter()
Creates a new instance of OrthogonalGroupLayouter |
Method Summary | |
protected boolean |
canLayoutCore(LayoutGraph graph)
Subclasses have to provide information whether or not they can layout the given graph. |
void |
doLayout(LayoutGraph graph)
Calculates a layout for the given graph. |
protected void |
doLayoutCore(LayoutGraph graph)
Subclasses have to provide core layout code in this method. |
int |
getGrid()
Returns the grid distance. |
double |
getLayoutQuality()
Returns the currently set layout quality. |
void |
setGrid(int grid)
Sets the grid distance. |
void |
setLayoutQuality(double q)
Sets the desired layout quality. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OrthogonalGroupLayouter()
Method Detail |
public void setLayoutQuality(double q)
By default best layout quality (value 1
) is set.
q
- a value between 0 and 1.public double getLayoutQuality()
public void setGrid(int grid)
public int getGrid()
protected boolean canLayoutCore(LayoutGraph graph)
CanonicMultiStageLayouter
canLayoutCore
in class CanonicMultiStageLayouter
protected void doLayoutCore(LayoutGraph graph)
CanonicMultiStageLayouter
doLayoutCore
in class CanonicMultiStageLayouter
public void doLayout(LayoutGraph graph)
CanonicMultiStageLayouter
doLayout
in interface Layouter
doLayout
in class CanonicMultiStageLayouter
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |