public class JGraphRadialTreeLayout extends java.lang.Object implements JGraphLayout
JGraphLayout.Stoppable
Modifier and Type | Field and Description |
---|---|
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.
|
VERSION
Constructor and Description |
---|
JGraphRadialTreeLayout() |
Modifier and Type | Method and Description |
---|---|
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. |
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
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 obtainedpublic 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
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.