| Package | com.addicted2flash.layout.strategy |
| Class | public class FlowLayout |
| Implements | ILayout |
WrapLayout arranges IUIComponents in a row/column until no
more IUIComponents fit in that row/column. The IUIComponents
will be arranged to their desired size.
In addition it is possible to choose different alignment and flow settings for the layout.
These are the possible aligment values:
Alignment.LEFT (default)Alignment.TOPAlignment.BOTTOMAlignment.RIGHTAlignment.TOP_LEFTAlignment.TOP_RIGHTAlignment.BOTTOM_LEFTAlignment.BOTTOM_RIGHTThese are the possbile flow values:
Flow.LEFT_TO_RIGHT (default)Flow.RIGHT_TO_LEFTFlow.TOP_TO_BOTTOMFlow.BOTTOM_TO_TOP| Property | Defined by | ||
|---|---|---|---|
| alignment : int
Returns the alignment of the layout.
| FlowLayout | ||
| flow : int
Returns the flow of the layout.
| FlowLayout | ||
| Method | Defined by | ||
|---|---|---|---|
|
FlowLayout(flow:int, alignment:int)
Creates a new
WrapLayout. | FlowLayout | ||
|
arrange(container:IUIContainer):void
Arranges the given container.
| FlowLayout | ||
|
measure(container:IUIContainer):void
Measures the given container.
| FlowLayout | ||
|
toString():String
Returns the string representation of the
FlowLayout. | FlowLayout | ||
| alignment | property |
alignment:int [read-write]Returns the alignment of the layout.
Implementation public function get alignment():int
public function set alignment(value:int):void
| flow | property |
flow:int [read-write]Returns the flow of the layout.
Implementation public function get flow():int
public function set flow(value:int):void
| FlowLayout | () | constructor |
public function FlowLayout(flow:int, alignment:int)
Creates a new WrapLayout.
flow:int — flow of the layout
|
|
alignment:int — alignment of the layout
|
See also
| arrange | () | method |
public function arrange(container:IUIContainer):voidArranges the given container.
Parameterscontainer:IUIContainer — container to be arranged
|
| measure | () | method |
public function measure(container:IUIContainer):voidMeasures the given container.
Parameterscontainer:IUIContainer — container to be measured
|
| toString | () | method |
public function toString():String
Returns the string representation of the FlowLayout.
String — the string representation of the FlowLayout
|