Packagegraphics
Classpublic class Orientation
InheritanceOrientation Inheritance Object

Constants defining layout orientation options.



Public Methods
 MethodDefined By
  
toString(value:uint):String
[static] Returns the string representation of the specified Align value passed in argument.
Orientation
  
validate(value:uint):Boolean
[static] Returns true if the passed-in uint argument is a valid Orientation value else returns false.
Orientation
Public Constants
 ConstantDefined By
  BOTTOM_TO_TOP : uint = 4
[static] Constant indicating a bottom-to-top layout orientation (4).
Orientation
  LEFT_TO_RIGHT : uint = 1
[static] Constant indicating a left-to-right layout orientation (1).
Orientation
  LEFT_TO_RIGHT_BOTTOM_TO_TOP : uint = 5
[static] Constant indicating a left-to-right layout orientation (5).
Orientation
  LEFT_TO_RIGHT_TOP_TO_BOTTOM : uint = 9
[static] Constant indicating a left-to-right and top-to-bottom layout orientation (9).
Orientation
  NONE : uint = 0
[static] Constant indicating a none layout orientation, use the default orientation (0).
Orientation
  RIGHT_TO_LEFT : uint = 2
[static] Constant indicating a right-to-left layout orientation (2).
Orientation
  RIGHT_TO_LEFT_BOTTOM_TO_TOP : uint = 6
[static] Constant indicating a right-to-left layout orientation (6).
Orientation
  RIGHT_TO_LEFT_TOP_TO_BOTTOM : uint = 10
[static] Constant indicating a right-to-left and top-to-bottom layout orientation (10).
Orientation
  TOP_TO_BOTTOM : uint = 8
[static] Constant indicating a bottom-to-top layout orientation (8).
Orientation
Method Detail
toString()method
public static function toString(value:uint):String

Returns the string representation of the specified Align value passed in argument.

Example :

         import graphics.Align ;
         trace( Align.toString(Align.LEFT)) ; // "l"
         trace( Align.toString(Align.TOP_LEFT)) ; // "tl"
         trace( Align.toString(Align.RIGHT_BOTTOM)) ; // "rb"
         

Parameters

value:uint

Returns
String — the string representation of the specified Align value passed in argument.
validate()method 
public static function validate(value:uint):Boolean

Returns true if the passed-in uint argument is a valid Orientation value else returns false.

Parameters

value:uint

Returns
Booleantrue if the passed-in uint argument is a valid Orientation value else returns false.
Constant Detail
BOTTOM_TO_TOPConstant
public static const BOTTOM_TO_TOP:uint = 4

Constant indicating a bottom-to-top layout orientation (4).

LEFT_TO_RIGHTConstant 
public static const LEFT_TO_RIGHT:uint = 1

Constant indicating a left-to-right layout orientation (1).

LEFT_TO_RIGHT_BOTTOM_TO_TOPConstant 
public static const LEFT_TO_RIGHT_BOTTOM_TO_TOP:uint = 5

Constant indicating a left-to-right layout orientation (5).

LEFT_TO_RIGHT_TOP_TO_BOTTOMConstant 
public static const LEFT_TO_RIGHT_TOP_TO_BOTTOM:uint = 9

Constant indicating a left-to-right and top-to-bottom layout orientation (9).

NONEConstant 
public static const NONE:uint = 0

Constant indicating a none layout orientation, use the default orientation (0).

RIGHT_TO_LEFTConstant 
public static const RIGHT_TO_LEFT:uint = 2

Constant indicating a right-to-left layout orientation (2).

RIGHT_TO_LEFT_BOTTOM_TO_TOPConstant 
public static const RIGHT_TO_LEFT_BOTTOM_TO_TOP:uint = 6

Constant indicating a right-to-left layout orientation (6).

RIGHT_TO_LEFT_TOP_TO_BOTTOMConstant 
public static const RIGHT_TO_LEFT_TOP_TO_BOTTOM:uint = 10

Constant indicating a right-to-left and top-to-bottom layout orientation (10).

TOP_TO_BOTTOMConstant 
public static const TOP_TO_BOTTOM:uint = 8

Constant indicating a bottom-to-top layout orientation (8).