| Package | org.un.flex.graphLayout.layout |
| Class | public class ParentCenteredDrawingModel |
| Inheritance | ParentCenteredDrawingModel BaseLayoutDrawing |
| Property | Defined by | ||
|---|---|---|---|
![]() | centeredLayout : Boolean
Specifies if the center offset should be applied
or not.
| BaseLayoutDrawing | |
![]() | centerOffset : Point
Access to the offset of the center of the layout.
| BaseLayoutDrawing | |
![]() | originOffset : Point
Access to the offset of the origin of the layout.
| BaseLayoutDrawing | |
| phi : Number
Access to the starting polar angle of the layout in radians.
| ParentCenteredDrawingModel | ||
| rootR : Number
Access to the starting polar radius of the layout.
| ParentCenteredDrawingModel | ||
| Method | Defined by | ||
|---|---|---|---|
|
The constructor only initializes the datastructures.
| ParentCenteredDrawingModel | ||
![]() |
getAbsCartCoordinates(n:INode):Point
Access the absolute cartesian coordinates of the given node.
| BaseLayoutDrawing | |
|
getAngleOffset(n:INode):Number
Access to the local zero angle offset of each node.
| ParentCenteredDrawingModel | ||
|
getLocalPolarPhi(n:INode):Number
Access to the local polar angle (without zero angle offset
or local origin applied).
| ParentCenteredDrawingModel | ||
|
getLocalPolarR(n:INode):Number
Access to the local polar radius (without zero angle offset
or local origin applied).
| ParentCenteredDrawingModel | ||
|
getNodeOrigin(n:INode):Point
Access to the local origin of each node
| ParentCenteredDrawingModel | ||
![]() |
getPolarPhi(n:INode):Number
access the polar angle part of the
target coordinates of the given node.
| BaseLayoutDrawing | |
![]() |
access the polar radius part of the
target coordinates of the given node.
| BaseLayoutDrawing | |
![]() |
getRelCartCoordinates(n:INode):Point
Access the cartesian coordinates of the given node.
| BaseLayoutDrawing | |
![]() |
invalidateNodeData():void
invalidate all node data sets
| BaseLayoutDrawing | |
![]() |
nodeDataValid(n:INode):Boolean
indicates if the data set for a given node is
currently valid.
| BaseLayoutDrawing | |
![]() |
setCartCoordinates(n:INode, p:Point):void
Set the target coordinates for node n according to the
calculated layout in cartesian (i.e.
| BaseLayoutDrawing | |
|
setNodeCoordinates(n:INode, origin:Point, angleOff:Number, polarR:Number, polarPhi:Number):void
This method sets polar coordinates along with the
node's origin and zero angle offset.
| ParentCenteredDrawingModel | ||
![]() |
setPolarCoordinates(n:INode, polarR:Number, polarPhi:Number):void
Set the target coordinates for node n according to the
calculated layout in Polar form.
| BaseLayoutDrawing | |
| phi | property |
phi:Number [read-write]Access to the starting polar angle of the layout in radians.
This property can be used as the source for data binding.
Implementation public function get phi():Number
public function set phi(value:Number):void
| rootR | property |
rootR:Number [read-write]Access to the starting polar radius of the layout.
This property can be used as the source for data binding.
Implementation public function get rootR():Number
public function set rootR(value:Number):void
| ParentCenteredDrawingModel | () | constructor |
public function ParentCenteredDrawingModel()The constructor only initializes the datastructures.
| getAngleOffset | () | method |
public function getAngleOffset(n:INode):NumberAccess to the local zero angle offset of each node.
Parametersn:INode — The node to which the zero angle offset is requested.
|
Number — The zero angle offset in radians.
|
| getLocalPolarPhi | () | method |
public function getLocalPolarPhi(n:INode):NumberAccess to the local polar angle (without zero angle offset or local origin applied).
Parametersn:INode — The node for which the local polar angle is requested.
|
Number — The local polar angle in radians.
|
| getLocalPolarR | () | method |
public function getLocalPolarR(n:INode):NumberAccess to the local polar radius (without zero angle offset or local origin applied).
Parametersn:INode — The node for which the local polar radius is requested.
|
Number — The local polar radius.
|
| getNodeOrigin | () | method |
public function getNodeOrigin(n:INode):PointAccess to the local origin of each node
Parametersn:INode — The node of which the origin is requested.
|
Point — The origin as a Point.
|
| setNodeCoordinates | () | method |
public function setNodeCoordinates(n:INode, origin:Point, angleOff:Number, polarR:Number, polarPhi:Number):voidThis method sets polar coordinates along with the node's origin and zero angle offset.
Parametersn:INode — The node for which to set the values.
|
|
origin:Point — The node's origin (typically parents relative coordinates)
|
|
angleOff:Number — The node's zero angle offset (in degrees).
|
|
polarR:Number — The relative polar radius of the node.
|
|
polarPhi:Number — The relative polar angle of the node (in degrees).
|