| Package | pegas.draw |
| Class | public class Align |
| Method | Defined by | ||
|---|---|---|---|
|
toNumber(str:String):uint
[static]
Converts a string value in this Align value.
| Align | ||
|
toString(n:Number):String
[static]
Returns the string representation of the specified Align value passed in argument.
| Align | ||
|
validate(value:uint):Boolean
[static]
Returns
true if the specified Align value in argument is a valid Align value else returns false. | Align | ||
| Constant | Defined by | ||
|---|---|---|---|
| BOTTOM : uint = 16 [static]
Defines the BOTTOM value (16).
| Align | ||
| BOTTOM_LEFT : uint [static]
Defines the BOTTOM_LEFT value (18).
| Align | ||
| BOTTOM_RIGHT : uint [static]
Defines the BOTTOM_RIGHT value (20).
| Align | ||
| CENTER : uint = 0 [static]
Defines the CENTER value (0).
| Align | ||
| LEFT : uint = 2 [static]
Defines the LEFT value (2).
| Align | ||
| LEFT_BOTTOM : uint [static]
Defines the LEFT_BOTTOM value (50).
| Align | ||
| LEFT_TOP : uint [static]
Defines the LEFT_TOP value (42).
| Align | ||
| REVERSE : uint = 32 [static]
Defines the REVERSE value (32).
| Align | ||
| RIGHT : uint = 4 [static]
Defines the RIGHT value (4).
| Align | ||
| RIGHT_BOTTOM : uint [static]
Defines the RIGHT_BOTTOM value (52).
| Align | ||
| RIGHT_TOP : uint [static]
Defines the RIGHT_TOP value (44).
| Align | ||
| TOP : uint = 8 [static]
Defines the TOP value (8).
| Align | ||
| TOP_LEFT : uint [static]
Defines the TOP_LEFT value (10).
| Align | ||
| TOP_RIGHT : uint [static]
Defines the TOP_RIGHT value (12).
| Align | ||
| toNumber | () | method |
public static function toNumber(str:String):uintConverts a string value in this Align value.
Example :
import pegas.draw.Align ;
var sAlign:String = "l" ;
trace( Align.toNumber("l") == Align.LEFT ) ; // true
Parameters
str:String |
uint |
| toString | () | method |
public static function toString(n:Number):StringReturns the string representation of the specified Align value passed in argument.
Example :
import pegas.draw.Align ;
trace( Align.toString(Align.LEFT)) ; // "l"
trace( Align.toString(Align.TOP_LEFT)) ; // "tl"
trace( Align.toString(Align.RIGHT_BOTTOM)) ; // "rb"
Parameters
n:Number |
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 specified Align value in argument is a valid Align value else returns false.
value:uint |
Boolean — true if the specified Align value in argument is a valid Align value else returns false.
|
| BOTTOM | constant |
public static const BOTTOM:uint = 16Defines the BOTTOM value (16).
| BOTTOM_LEFT | constant |
public static const BOTTOM_LEFT:uintDefines the BOTTOM_LEFT value (18).
| BOTTOM_RIGHT | constant |
public static const BOTTOM_RIGHT:uintDefines the BOTTOM_RIGHT value (20).
| CENTER | constant |
public static const CENTER:uint = 0Defines the CENTER value (0).
| LEFT | constant |
public static const LEFT:uint = 2Defines the LEFT value (2).
| LEFT_BOTTOM | constant |
public static const LEFT_BOTTOM:uintDefines the LEFT_BOTTOM value (50).
| LEFT_TOP | constant |
public static const LEFT_TOP:uintDefines the LEFT_TOP value (42).
| REVERSE | constant |
public static const REVERSE:uint = 32Defines the REVERSE value (32).
| RIGHT | constant |
public static const RIGHT:uint = 4Defines the RIGHT value (4).
| RIGHT_BOTTOM | constant |
public static const RIGHT_BOTTOM:uintDefines the RIGHT_BOTTOM value (52).
| RIGHT_TOP | constant |
public static const RIGHT_TOP:uintDefines the RIGHT_TOP value (44).
| TOP | constant |
public static const TOP:uint = 8Defines the TOP value (8).
| TOP_LEFT | constant |
public static const TOP_LEFT:uintDefines the TOP_LEFT value (10).
| TOP_RIGHT | constant |
public static const TOP_RIGHT:uintDefines the TOP_RIGHT value (12).