com.jgraph.layout.tree
public class JGraphRadialTreeLayout extends Object implements JGraphLayout
| 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 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 Object | virtualRootCell
An object that may be used as a key for a virtual root. |
| Method Summary | |
|---|---|
| double | getAngleOffset() |
| double | getMaxradiusx() |
| double | getMaxradiusy() |
| double | getMinradiusx() |
| double | getMinradiusy() |
| double | getRadiusx() |
| double | getRadiusy() |
| JGraphRadialTreeLayout.TreeNode | getTreeNode(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) |
| String | toString()
Returns Radialtree, the name of this algorithm. |
Returns: Returns the angleOffset.
Returns: Returns the maxradiusx.
Returns: Returns the maxradiusy.
Returns: Returns the minradiusx.
Returns: Returns the minradiusy.
Returns: the value of radiusx
Returns: the value of radiusy
Parameters: cell the cell whose tree node is to be obtained
Returns: the tree node corresponding to the specified cell
Returns: Returns the autoRadius.
Returns: Returns the moveRoots.
Parameters: graph the facade describing the graph and its configuration
Parameters: angleOffset The angleOffset to set.
Parameters: autoRadius The autoRadius to set.
Parameters: maxradiusx The maxradiusx to set.
Parameters: maxradiusy The maxradiusy to set.
Parameters: minradiusx The minradiusx to set.
Parameters: minradiusy The minradiusy to set.
Parameters: moveRoots The moveRoots to set.
Parameters: radiusx value to set radiusx to
Parameters: radiusy value to set radiusx to
Radialtree, the name of this algorithm.