Packagegraphics.layouts
Classpublic class CircleLayout
InheritanceCircleLayout Inheritance CoreLayout Inheritance Object

This layout display all the childs elements in a specific DisplayObjectContainer with a circle trigonometric algorithm.



Public Properties
 PropertyDefined By
 Inheritedalign : uint
The alignement of the layout.
CoreLayout
 Inheritedbounds : Rectangle
A rectangle that defines the area of the layout.
CoreLayout
  childAngle : Number
Indicates the angle value in degrees of the childs in the container.
CircleLayout
  childCount : Number
Indicates the number of childs visible in this container (minimal value is 1).
CircleLayout
  childOrientation : Boolean
Indicates if the childs of the container use a perpendicular tangente direction.
CircleLayout
 Inheritedcontainer : DisplayObjectContainer
Indicates the container reference to change with the layout.
CoreLayout
 InheritedmeasuredHeight : Number
The default height of the component, in pixels.
CoreLayout
 InheritedmeasuredWidth : Number
The default width of the component, in pixels.
CoreLayout
  radius : Number
Indicates the radius of the circle container.
CircleLayout
 Inheritedrenderer : Signaler
This signal emit before the rendering is started.
CoreLayout
  startAngle : Number
Indicates the value of the start angle to display all childs in the container (in degrees).
CircleLayout
 Inheritedudpater : Signaler
This signal emit when the rendering is finished.
CoreLayout
Protected Properties
 PropertyDefined By
 Inherited_bounds : Rectangle
The absolute rectangle bound area calculate with the measure method.
CoreLayout
Public Methods
 MethodDefined By
  
CircleLayout(container:DisplayObjectContainer = null, init:Object = null, auto:Boolean = false)
Creates a new CircleLayout instance.
CircleLayout
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreLayout
 Inherited
lock():void
Locks the object.
CoreLayout
  
measure():void
[override] Calculates the default sizes and minimum and maximum values.
CircleLayout
  
render():void
[override] Render the layout, refresh and change the position of all childs in a specific container.
CircleLayout
 Inherited
resetLock():void
Reset the lock security of the display.
CoreLayout
 Inherited
run(... arguments):void
Run the layout (render and update).
CoreLayout
 Inherited
unlock():void
Unlocks the display.
CoreLayout
  
update():void
[override] This method is invoked when the rendering is finished to finalize the it after the measure invokation.
CircleLayout
Property Detail
childAngleproperty
childAngle:Number

Indicates the angle value in degrees of the childs in the container.


Implementation
    public function get childAngle():Number
    public function set childAngle(value:Number):void
childCountproperty 
childCount:Number

Indicates the number of childs visible in this container (minimal value is 1).


Implementation
    public function get childCount():Number
    public function set childCount(value:Number):void
childOrientationproperty 
childOrientation:Boolean

Indicates if the childs of the container use a perpendicular tangente direction. Use the childAngle value to change the angle of the perpendicular childs.


Implementation
    public function get childOrientation():Boolean
    public function set childOrientation(value:Boolean):void
radiusproperty 
radius:Number

Indicates the radius of the circle container.


Implementation
    public function get radius():Number
    public function set radius(value:Number):void
startAngleproperty 
startAngle:Number

Indicates the value of the start angle to display all childs in the container (in degrees).


Implementation
    public function get startAngle():Number
    public function set startAngle(value:Number):void
Constructor Detail
CircleLayout()Constructor
public function CircleLayout(container:DisplayObjectContainer = null, init:Object = null, auto:Boolean = false)

Creates a new CircleLayout instance.

Parameters
container:DisplayObjectContainer (default = null) — The container to layout.
 
init:Object (default = null) — An object that contains properties with which to populate the newly layout object. If init is not an object, it is ignored.
 
auto:Boolean (default = false) — This boolean indicates if the layout is auto running or not (default false).
Method Detail
measure()method
override public function measure():void

Calculates the default sizes and minimum and maximum values. If the Box layout's direction property is set to Direction.HORIZONTAL, its measuredWidth property is equal to the sum of default widths of all of the children in the container, plus the thickness of the borders (padding), plus the left and right padding, plus the horizontal gap between each child. The value of the measuredHeight property is the maximum of all the children's default heights, plus room for the borders and padding. If the Box layout's direction property is set to Direction.VERTICAL, these two values are reversed.

render()method 
override public function render():void

Render the layout, refresh and change the position of all childs in a specific container.

update()method 
override public function update():void

This method is invoked when the rendering is finished to finalize the it after the measure invokation.