|
JGraphAddons |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jgraph.layout.JGraphLayoutAlgorithm | +--org.jgraph.layout.TreeLayoutAlgorithm
TODO:COMMENT ME!
Field Summary | |
protected int |
alignment
|
protected boolean |
centerRoot
|
protected boolean |
combineLevelNodes
|
protected int |
levelDistance
|
protected int |
nodeDistance
|
protected int |
orientation
|
Fields inherited from class org.jgraph.layout.JGraphLayoutAlgorithm |
LAYOUT_ATTRIBUTES |
Constructor Summary | |
TreeLayoutAlgorithm()
|
Method Summary | |
JGraphLayoutSettings |
createSettings()
Subclassers may return a new JComponent that allows to configure the layout. |
int |
getAlignment()
|
String |
getHint()
Get a human readable hint for using this layout. |
int |
getLevelDistance()
|
int |
getNodeDistance()
|
int |
getOrientation()
|
boolean |
isCenterRoot()
|
boolean |
isCombineLevelNodes()
|
void |
run(JGraph graph,
Object[] cells,
int step)
Executes the layout algorithm. |
void |
setAlignment(int alignment)
SwingConstants.TOP SwingConstants.CENTER SwingConstants.BOTTOM |
void |
setCenterRoot(boolean b)
|
void |
setCombineLevelNodes(boolean combineLevelNodes)
|
void |
setLevelDistance(int distance)
|
void |
setNodeDistance(int distance)
|
void |
setOrientation(int orientation)
SwingConstants.NORTH SwingConstants.EAST SwingConstants.SOUTH SwingConstants.WEST |
String |
toString()
Returns the name of this algorithm in human readable form. |
Methods inherited from class org.jgraph.layout.JGraphLayoutAlgorithm |
applyLayout, createDialog, createDialog, getMaximumProgress, getProgress, isAllowedToRun, populateDialog, run, setAllowedToRun, setMaximumProgress, setProgress |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int alignment
protected int orientation
protected int levelDistance
protected int nodeDistance
protected boolean centerRoot
protected boolean combineLevelNodes
Constructor Detail |
public TreeLayoutAlgorithm()
Method Detail |
public String toString()
toString
in class Object
public String getHint()
getHint
in class JGraphLayoutAlgorithm
public JGraphLayoutSettings createSettings()
JGraphLayoutAlgorithm
null
.
createSettings
in class JGraphLayoutAlgorithm
public void setAlignment(int alignment)
alignment
- public void setOrientation(int orientation)
public void setLevelDistance(int distance)
public void setNodeDistance(int distance)
public void setCenterRoot(boolean b)
public void run(JGraph graph, Object[] cells, int step)
JGraphLayoutAlgorithm
run
in class JGraphLayoutAlgorithm
public boolean isCombineLevelNodes()
public void setCombineLevelNodes(boolean combineLevelNodes)
combineLevelNodes
- The combineLevelNodes to set.public int getAlignment()
public boolean isCenterRoot()
public int getLevelDistance()
public int getNodeDistance()
public int getOrientation()
|
JGraphAddons |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |