Packagexrope
Classpublic class GridLayout
InheritanceGridLayout Inheritance AbstractMultiLineLayout Inheritance AbstractLayoutGroup Inheritance Object

Grid layout.



Public Properties
 PropertyDefined By
 Inheritedalign : String
Align of this layout group.
AbstractLayoutGroup
 InheritedautoLayoutWhenAdd : Boolean
If auto layout when add a new element.
AbstractLayoutGroup
 InheritedautoLayoutWhenChange : Boolean
If auto layout when changed.
AbstractLayoutGroup
 Inheritedcontainer : DisplayObjectContainer
[read-only] Container of the layout group.
AbstractLayoutGroup
 Inheritedelements : Array
[read-only] All layout elements in this group.
AbstractLayoutGroup
 Inheritedheight : Number
height value of the layout element.
AbstractLayoutGroup
 InheritedhorizontalGap : Number
Horizontal gap of this layout group.
AbstractLayoutGroup
 InheritedlineAlign : String
align of each line.
AbstractMultiLineLayout
 Inheritedlines : Array
[read-only] Line list in the layout.
AbstractMultiLineLayout
  tileAlign : String
Align of ecah tile.
GridLayout
  tileHeight : Number
Height of ecch tile.
GridLayout
  tileWidth : Number
Width of each tile.
GridLayout
 InheriteduseBounds : Boolean
If use getBounds() of DisplayObject for layout.
AbstractLayoutGroup
 InheritedverticalGap : Number
Vertical gap of this layout group.
AbstractLayoutGroup
 Inheritedwidth : Number
width of the layout element.
AbstractLayoutGroup
 Inheritedx : Number
x value of the layout element.
AbstractLayoutGroup
 Inheritedy : Number
y value of the layout element.
AbstractLayoutGroup
Public Methods
 MethodDefined By
  
GridLayout(container:DisplayObjectContainer, width:Number, height:Number, tileWidth:Number, tileHeight:Number, x:Number = 0, y:Number = 0, tileAlign:String = TL, align:String = TL, horizontalGap:Number = 5, verticalGap:Number = 5, useBounds:Boolean = false, autoLayoutWhenAdd:Boolean = false, autoLayoutWhenChange:Boolean = true)
Construct a GridLayout.
GridLayout
 Inherited
add(... elements):void
Add elements to the group.
AbstractLayoutGroup
 Inherited
has(element:*):Boolean
Check if an element is in the group.
AbstractLayoutGroup
 Inherited
layout():void
Layout all the elements in the group.
AbstractLayoutGroup
 Inherited
Layout all children in the container.
AbstractLayoutGroup
 Inherited
remove(... elements):void
Remove elements from the group.
AbstractLayoutGroup
 Inherited
removeAll():void
Remove all elements.
AbstractLayoutGroup
 Inherited
reset():void
Remove all elements and reset all property to default value.
AbstractLayoutGroup
Property Detail
tileAlignproperty
tileAlign:String

Align of ecah tile.


Implementation
    public function get tileAlign():String
    public function set tileAlign(value:String):void
tileHeightproperty 
tileHeight:Number

Height of ecch tile.


Implementation
    public function get tileHeight():Number
    public function set tileHeight(value:Number):void
tileWidthproperty 
tileWidth:Number

Width of each tile.


Implementation
    public function get tileWidth():Number
    public function set tileWidth(value:Number):void
Constructor Detail
GridLayout()Constructor
public function GridLayout(container:DisplayObjectContainer, width:Number, height:Number, tileWidth:Number, tileHeight:Number, x:Number = 0, y:Number = 0, tileAlign:String = TL, align:String = TL, horizontalGap:Number = 5, verticalGap:Number = 5, useBounds:Boolean = false, autoLayoutWhenAdd:Boolean = false, autoLayoutWhenChange:Boolean = true)

Construct a GridLayout.

Parameters
container:DisplayObjectContainer — Container of the layout group.
 
width:Numberwidth value of the layout element.
 
height:Numberheight value of the layout element.
 
tileWidth:Numberwidth value of each tile.
 
tileHeight:Numberheight value of each tile.
 
x:Number (default = 0)x value of the layout element.
 
y:Number (default = 0)y value of the layout element.
 
tileAlign:String (default = TL) — Align of each tile.
 
align:String (default = TL) — Align of the layout group.
 
horizontalGap:Number (default = 5) — Horizontal gap value.
 
verticalGap:Number (default = 5) — Vertical gap value.
 
useBounds:Boolean (default = false) — If use getBounds() for atom.
 
autoLayoutWhenAdd:Boolean (default = false) — If auto layout when a new element is added.
 
autoLayoutWhenChange:Boolean (default = true) — If auto layout when something has been changed.