Packagecom.addicted2flash.layout.strategy
Classpublic class FlowLayout
ImplementsILayout

A 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.TOP
  • Alignment.BOTTOM
  • Alignment.RIGHT
  • Alignment.TOP_LEFT
  • Alignment.TOP_RIGHT
  • Alignment.BOTTOM_LEFT
  • Alignment.BOTTOM_RIGHT
  • These are the possbile flow values:

  • Flow.LEFT_TO_RIGHT (default)
  • Flow.RIGHT_TO_LEFT
  • Flow.TOP_TO_BOTTOM
  • Flow.BOTTOM_TO_TOP


  • Public Properties
     PropertyDefined by
      alignment : int
    Returns the alignment of the layout.
    FlowLayout
      flow : int
    Returns the flow of the layout.
    FlowLayout
    Public Methods
     MethodDefined 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
    Property detail
    alignmentproperty
    alignment:int  [read-write]

    Returns the alignment of the layout.

    Implementation
        public function get alignment():int
        public function set alignment(value:int):void
    flowproperty 
    flow:int  [read-write]

    Returns the flow of the layout.

    Implementation
        public function get flow():int
        public function set flow(value:int):void
    Constructor detail
    FlowLayout()constructor
    public function FlowLayout(flow:int, alignment:int)

    Creates a new WrapLayout.

    Parameters
    flow:int — flow of the layout
     
    alignment:int — alignment of the layout

    See also

    Method detail
    arrange()method
    public function arrange(container:IUIContainer):void

    Arranges the given container.

    Parameters
    container:IUIContainer — container to be arranged
    measure()method 
    public function measure(container:IUIContainer):void

    Measures the given container.

    Parameters
    container:IUIContainer — container to be measured
    toString()method 
    public function toString():String

    Returns the string representation of the FlowLayout.

    Returns
    String — the string representation of the FlowLayout