public static class RadialLayout.NodeInfo extends Object
The information can be retrieved by registering with the graph a IDataProvider
(which should also implement the
IDataAcceptor
interface) using key RadialLayout.NODE_INFO_DPKEY
. The layout algorithm will return a RadialLayout.NodeInfo
object with appropriately filled fields for each Node
when the layout is calculated.
Constructor and Description |
---|
NodeInfo()
Creates a new
RadialLayout.NodeInfo instance. |
Modifier and Type | Method and Description |
---|---|
YPoint |
getCenterOffset()
Gets the offset from the center of the circle, the node is placed on, to the center of the node.
|
int |
getCircleIndex()
Gets the index of the circle the node is placed on.
|
double |
getRadius()
Gets the radius of the circle the node is placed on.
|
double |
getSectorSize()
Gets the size in degrees of the sector the node is placed in.
|
double |
getSectorStart()
Gets the start angle in degrees of the sector the node is placed in.
|
public NodeInfo()
RadialLayout.NodeInfo
instance.public YPoint getCenterOffset()
public int getCircleIndex()
The circles used by the RadialLayout
are indexed from the innermost to the outermost circle. Index 0
represents the center, i.e. the circle with radius 0
.
public double getRadius()
public double getSectorSize()
getSectorStart()
public double getSectorStart()
The angle refers to a counter-clockwise rotation starting at the 3 o'clock position.
getSectorSize()