Packageorg.un.flex.graphLayout.layout
Classpublic class ParentCenteredDrawingModel
InheritanceParentCenteredDrawingModel Inheritance BaseLayoutDrawing

This class holds all the parameters needed for a drawing representation of a graph drawing with a Parent-Centered Radial Layout i.e. it represents a calculated drawing of the layout.



Public Properties
 PropertyDefined by
 InheritedcenteredLayout : Boolean
Specifies if the center offset should be applied or not.
BaseLayoutDrawing
 InheritedcenterOffset : Point
Access to the offset of the center of the layout.
BaseLayoutDrawing
 InheritedoriginOffset : 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
Public Methods
 MethodDefined by
  
The constructor only initializes the datastructures.
ParentCenteredDrawingModel
 Inherited
Access the absolute cartesian coordinates of the given node.
BaseLayoutDrawing
  
Access to the local zero angle offset of each node.
ParentCenteredDrawingModel
  
Access to the local polar angle (without zero angle offset or local origin applied).
ParentCenteredDrawingModel
  
Access to the local polar radius (without zero angle offset or local origin applied).
ParentCenteredDrawingModel
  
Access to the local origin of each node
ParentCenteredDrawingModel
 Inherited
getPolarPhi(n:INode):Number
access the polar angle part of the target coordinates of the given node.
BaseLayoutDrawing
 Inherited
getPolarR(n:INode):Number
access the polar radius part of the target coordinates of the given node.
BaseLayoutDrawing
 Inherited
Access the cartesian coordinates of the given node.
BaseLayoutDrawing
 Inherited
invalidate all node data sets
BaseLayoutDrawing
 Inherited
nodeDataValid(n:INode):Boolean
indicates if the data set for a given node is currently valid.
BaseLayoutDrawing
 Inherited
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
 Inherited
setPolarCoordinates(n:INode, polarR:Number, polarPhi:Number):void
Set the target coordinates for node n according to the calculated layout in Polar form.
BaseLayoutDrawing
Property detail
phiproperty
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
rootRproperty 
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
Constructor detail
ParentCenteredDrawingModel()constructor
public function ParentCenteredDrawingModel()

The constructor only initializes the datastructures.

Method detail
getAngleOffset()method
public function getAngleOffset(n:INode):Number

Access to the local zero angle offset of each node.

Parameters
n:INode — The node to which the zero angle offset is requested.

Returns
Number — The zero angle offset in radians.
getLocalPolarPhi()method 
public function getLocalPolarPhi(n:INode):Number

Access to the local polar angle (without zero angle offset or local origin applied).

Parameters
n:INode — The node for which the local polar angle is requested.

Returns
Number — The local polar angle in radians.
getLocalPolarR()method 
public function getLocalPolarR(n:INode):Number

Access to the local polar radius (without zero angle offset or local origin applied).

Parameters
n:INode — The node for which the local polar radius is requested.

Returns
Number — The local polar radius.
getNodeOrigin()method 
public function getNodeOrigin(n:INode):Point

Access to the local origin of each node

Parameters
n:INode — The node of which the origin is requested.

Returns
Point — The origin as a Point.
setNodeCoordinates()method 
public function 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.

Parameters
n: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).