Packagestarling.utils
Classpublic final class Align
InheritanceAlign Inheritance Object

A class that provides constant values for horizontal and vertical alignment of objects.



Public Methods
 MethodDefined By
  
isValid(align:String):Boolean
[static] Indicates whether the given alignment string is valid.
Align
  
isValidHorizontal(align:String):Boolean
[static] Indicates if the given string is a valid horizontal alignment.
Align
  
isValidVertical(align:String):Boolean
[static] Indicates if the given string is a valid vertical alignment.
Align
Public Constants
 ConstantDefined By
  BOTTOM : String = bottom
[static] Vertical bottom alignment.
Align
  CENTER : String = center
[static] Centered alignment.
Align
  LEFT : String = left
[static] Horizontal left alignment.
Align
  RIGHT : String = right
[static] Horizontal right alignment.
Align
  TOP : String = top
[static] Vertical top alignment.
Align
Method Detail
isValid()method
public static function isValid(align:String):Boolean

Indicates whether the given alignment string is valid.

Parameters

align:String

Returns
Boolean
isValidHorizontal()method 
public static function isValidHorizontal(align:String):Boolean

Indicates if the given string is a valid horizontal alignment.

Parameters

align:String

Returns
Boolean
isValidVertical()method 
public static function isValidVertical(align:String):Boolean

Indicates if the given string is a valid vertical alignment.

Parameters

align:String

Returns
Boolean
Constant Detail
BOTTOMConstant
public static const BOTTOM:String = bottom

Vertical bottom alignment.

CENTERConstant 
public static const CENTER:String = center

Centered alignment.

LEFTConstant 
public static const LEFT:String = left

Horizontal left alignment.

RIGHTConstant 
public static const RIGHT:String = right

Horizontal right alignment.

TOPConstant 
public static const TOP:String = top

Vertical top alignment.