|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.layout.tree.JGraphRadialTreeLayout
public class JGraphRadialTreeLayout
Lays out the nodes in a graph as a radial tree (root at the centre, children in concentric ovals).
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.jgraph.layout.JGraphLayout |
---|
JGraphLayout.Stoppable |
Field Summary | |
---|---|
protected double |
angleOffset
The initial offset to compute the angle position. |
protected boolean |
autoRadius
Specifies if the radios should be computed automatically. |
protected double |
maxradiusx
Specifies the minimum and maximum autoradius |
protected double |
maxradiusy
Specifies the minimum and maximum autoradius |
protected double |
minradiusx
Specifies the minimum and maximum autoradius |
protected double |
minradiusy
Specifies the minimum and maximum autoradius |
protected boolean |
moveRoots
Specifies whether root cells should be moved. |
protected java.util.Map |
nodes
Store of mapping from tree nodes to graph cells |
protected double |
radiusx
x-axis radius of each circle |
protected double |
radiusy
y-axis radius of each circle |
protected double |
rootx
x-axis root of the layout |
protected double |
rooty
y-axis root of the layout |
protected java.lang.Object |
virtualRootCell
An object that may be used as a key for a virtual root. |
Fields inherited from interface com.jgraph.layout.JGraphLayout |
---|
VERSION |
Constructor Summary | |
---|---|
JGraphRadialTreeLayout()
|
Method Summary | |
---|---|
double |
getAngleOffset()
|
double |
getMaxradiusx()
|
double |
getMaxradiusy()
|
double |
getMinradiusx()
|
double |
getMinradiusy()
|
double |
getRadiusx()
|
double |
getRadiusy()
|
com.jgraph.layout.tree.JGraphRadialTreeLayout.TreeNode |
getTreeNode(java.lang.Object cell)
|
boolean |
isAutoRadius()
|
boolean |
isMoveRoots()
|
void |
run(JGraphFacade graph)
Applies a radial tree layout to nodes in the jgraph with respect to the supplied configuration. |
void |
setAngleOffset(double angleOffset)
|
void |
setAutoRadius(boolean autoRadius)
|
void |
setMaxradiusx(double maxradiusx)
|
void |
setMaxradiusy(double maxradiusy)
|
void |
setMinradiusx(double minradiusx)
|
void |
setMinradiusy(double minradiusy)
|
void |
setMoveRoots(boolean moveRoots)
|
void |
setRadiusx(double radiusx)
|
void |
setRadiusy(double radiusy)
|
java.lang.String |
toString()
Returns Radialtree , the name of this algorithm. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object virtualRootCell
protected boolean moveRoots
protected double angleOffset
protected boolean autoRadius
protected double minradiusx
protected double minradiusy
protected double maxradiusx
protected double maxradiusy
protected double radiusx
protected double radiusy
protected double rootx
protected double rooty
protected transient java.util.Map nodes
Constructor Detail |
---|
public JGraphRadialTreeLayout()
Method Detail |
---|
public void run(JGraphFacade graph)
run
in interface JGraphLayout
graph
- the facade describing the graph and its configurationpublic com.jgraph.layout.tree.JGraphRadialTreeLayout.TreeNode getTreeNode(java.lang.Object cell)
cell
- the cell whose tree node is to be obtained
public double getRadiusx()
public void setRadiusx(double radiusx)
radiusx
- value to set radiusx topublic double getRadiusy()
public void setRadiusy(double radiusy)
radiusy
- value to set radiusx topublic double getAngleOffset()
public void setAngleOffset(double angleOffset)
angleOffset
- The angleOffset to set.public boolean isAutoRadius()
public void setAutoRadius(boolean autoRadius)
autoRadius
- The autoRadius to set.public boolean isMoveRoots()
public void setMoveRoots(boolean moveRoots)
moveRoots
- The moveRoots to set.public double getMaxradiusx()
public void setMaxradiusx(double maxradiusx)
maxradiusx
- The maxradiusx to set.public double getMaxradiusy()
public void setMaxradiusy(double maxradiusy)
maxradiusy
- The maxradiusy to set.public double getMinradiusx()
public void setMinradiusx(double minradiusx)
minradiusx
- The minradiusx to set.public double getMinradiusy()
public void setMinradiusy(double minradiusy)
minradiusy
- The minradiusy to set.public java.lang.String toString()
Radialtree
, the name of this algorithm.
toString
in class java.lang.Object
|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |