| Package | com.whirled.contrib.card.graphics |
| Class | public class Text |
| Inheritance | Text flash.text.TextField |
| Property | Defined by | ||
|---|---|---|---|
| bottomY : Number Access the coordinate of the bottom of the text field.
| Text | ||
| centerY : Number Access the coordinate of the vertical center of the text field.
| Text | ||
| effectiveTextHeight : Number [read-only] Access the effective text height for use with vertical positioning.
| Text | ||
| Property | Defined by | ||
|---|---|---|---|
| _size : int | Text | ||
| Method | Defined by | ||
|---|---|---|---|
|
Text(size:int, foreColor:uint = 0xFFFFFF, backColor:uint = 0x000000)
Create a new standard text field of the given size.
| Text | ||
|
leftJustify():void
Set the text to left justify.
| Text | ||
|
rightJustify():void
Set the text to right justify.
| Text | ||
|
truncName(name:String):String
[static] Utility function to truncate a name.
| Text | ||
| Method | Defined by | ||
|---|---|---|---|
|
createFormat(size:int, italic:Boolean, color:uint):TextFormat
[static]
| Text | ||
|
createGlow(alpha:Number, size:int, strength:int, color:uint):GlowFilter
[static]
| Text | ||
| Constant | Defined by | ||
|---|---|---|---|
| BIG : int = 1 [static] Initialization constant for a big standard text field.
| Text | ||
| HUGE : int = 2 [static] Initialization constant for a huge standard text field.
| Text | ||
| HUGE_HARD_ITALIC : int = 4 [static] Initialization constant for a huge text field in italics with a hard outline.
| Text | ||
| SMALL : int = 0 [static] Initialization constant for a small standard text field.
| Text | ||
| SMALL_ITALIC : int = 3 [static] Initialization constant for a small text field in italics.
| Text | ||
| Constant | Defined by | ||
|---|---|---|---|
| EFFECTIVE_SIZES : Array [static]
| Text | ||
| FORMAT_PARAMS : Array [static]
| Text | ||
| MAX_NAME_LENGTH : int = 12 [static]
| Text | ||
| OUTLINE_PARAMS : Array [static]
| Text | ||
| bottomY | property |
bottomY:Number [read-write]Access the coordinate of the bottom of the text field.
Implementation public function get bottomY():Number
public function set bottomY(value:Number):void
| centerY | property |
centerY:Number [read-write]Access the coordinate of the vertical center of the text field.
Implementation public function get centerY():Number
public function set centerY(value:Number):void
| effectiveTextHeight | property |
effectiveTextHeight:Number [read-only]Access the effective text height for use with vertical positioning.
Implementation public function get effectiveTextHeight():Number
| _size | property |
protected var _size:int
| Text | () | constructor |
public function Text(size:int, foreColor:uint = 0xFFFFFF, backColor:uint = 0x000000)Create a new standard text field of the given size.
Parameterssize:int |
|
foreColor:uint (default = 0xFFFFFF) |
|
backColor:uint (default = 0x000000) |
| createFormat | () | method |
protected static function createFormat(size:int, italic:Boolean, color:uint):TextFormatParameters
size:int |
|
italic:Boolean |
|
color:uint |
TextFormat |
| createGlow | () | method |
protected static function createGlow(alpha:Number, size:int, strength:int, color:uint):GlowFilterParameters
alpha:Number |
|
size:int |
|
strength:int |
|
color:uint |
GlowFilter |
| leftJustify | () | method |
public function leftJustify():voidSet the text to left justify.
| rightJustify | () | method |
public function rightJustify():voidSet the text to right justify.
| truncName | () | method |
public static function truncName(name:String):StringUtility function to truncate a name.
Parametersname:String |
String |
| BIG | constant |
public static const BIG:int = 1Initialization constant for a big standard text field.
| EFFECTIVE_SIZES | constant |
protected static const EFFECTIVE_SIZES:Array
| FORMAT_PARAMS | constant |
protected static const FORMAT_PARAMS:Array
| HUGE | constant |
public static const HUGE:int = 2Initialization constant for a huge standard text field.
| HUGE_HARD_ITALIC | constant |
public static const HUGE_HARD_ITALIC:int = 4Initialization constant for a huge text field in italics with a hard outline.
| MAX_NAME_LENGTH | constant |
protected static const MAX_NAME_LENGTH:int = 12
| OUTLINE_PARAMS | constant |
protected static const OUTLINE_PARAMS:Array
| SMALL | constant |
public static const SMALL:int = 0Initialization constant for a small standard text field.
| SMALL_ITALIC | constant |
public static const SMALL_ITALIC:int = 3Initialization constant for a small text field in italics.