| Package | com.gestureworks.cml.factories |
| Class | public class TextFactory |
| Inheritance | TextFactory flash.text.TextField |
| Implements | IElement, ICSS |
| Subclasses | Text |
See also
| Property | Defined By | ||
|---|---|---|---|
| autoSize : String [override]
Controls automatic sizing and alignment of text fields. | TextFactory | ||
| class_ : String
Object's css class;
| TextFactory | ||
| className : String
sets the class name of displayobject
| TextFactory | ||
| cmlIndex : int
Sets the cml index
| TextFactory | ||
| color : uint
Sets the color of the text in a text field
| TextFactory | ||
| font : String
Sets the font of the text
| TextFactory | ||
| fontSize : Number
Sets the font size of the text
| TextFactory | ||
| gridFitType : String [override]
The type of grid fitting used for this text field. | TextFactory | ||
| height : Number [override]
Sets height of text text
| TextFactory | ||
| horizontalCenter : Number
Sets the horizontal center
| TextFactory | ||
| htmlText : String [override]
contains html representation of text field contents
| TextFactory | ||
| id : String
Sets the id
| TextFactory | ||
| index : int
specify the text index
| TextFactory | ||
| kerning : Boolean
Sets the gap between certain character pairs
| TextFactory | ||
| leading : Number
Sets the line spacing of text
| TextFactory | ||
| letterSpacing : Number
Sets the number of additional pixels to appear between each character. | TextFactory | ||
| propertyStates : Array Deprecated: Please Use state | TextFactory | ||
| scrollable : Boolean
Sets whether or not the text is scrollable. | TextFactory | ||
| state : Array
property states array
| TextFactory | ||
| text : String [override]
A string that is the current text in the text field. | TextFactory | ||
| textAlign : String
Sets the allignment of text in text field
| TextFactory | ||
| textBitmap : Boolean
Sets whether the text is left to scale as vector or gets locked as a bitmap. | TextFactory | ||
| textColor : uint [override]
Sets the color of the text in a text field
| TextFactory | ||
| textFormat : TextFormat
creates textformat variable
| TextFactory | ||
| textFormatColor : uint Deprecated: Please Use color
Sets the text format color
| TextFactory | ||
| textSize : Number
Sets the text size of the text
| TextFactory | ||
| type : String [override]
type of text field
| TextFactory | ||
| underline : Boolean
indicates whether text is underlined or not
| TextFactory | ||
| verticalAlign : Boolean
Sets the vertical allignment of text field
| TextFactory | ||
| verticalCenter : Number
Sets the vertical center
| TextFactory | ||
| y : Number [override]
Sets y position of text
| TextFactory | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor
| TextFactory | ||
clone():*
Returns clone of self
| TextFactory | ||
dispose():void
Dispose methods
| TextFactory | ||
parseCML(cml:XMLList):XMLList
parses the cml file
| TextFactory | ||
postparseCML(cml:XMLList):void
post parse method
| TextFactory | ||
updateProperties(state:Number = 0):void
pdate properties
| TextFactory | ||
| Method | Defined By | ||
|---|---|---|---|
updateTextFormat():void | TextFactory | ||
| autoSize | property |
autoSize:String[override] Controls automatic sizing and alignment of text fields.
public function get autoSize():String public function set autoSize(value:String):void| class_ | property |
class_:StringObject's css class;
public function get class_():String public function set class_(value:String):void| className | property |
className:Stringsets the class name of displayobject
public function get className():String public function set className(value:String):void| cmlIndex | property |
cmlIndex:intSets the cml index
public function get cmlIndex():int public function set cmlIndex(value:int):void| color | property |
color:uintSets the color of the text in a text field
The default value is = 0x000000;.
public function get color():uint public function set color(value:uint):void| font | property |
font:StringSets the font of the text
The default value is "OpenSansRegular";.
public function get font():String public function set font(value:String):void| fontSize | property |
fontSize:NumberSets the font size of the text
The default value is 15;.
public function get fontSize():Number public function set fontSize(value:Number):void| gridFitType | property |
gridFitType:String[override] The type of grid fitting used for this text field. This property applies only if the flash.text.AntiAliasType property of the text field is set to flash.text.AntiAliasType.ADVANCED. The type of grid fitting used determines whether Flash Player forces strong horizontal and vertical lines to fit to a pixel or subpixel grid, or not at all. You can use the following string values: subpixel, pixel, none.
public function get gridFitType():String public function set gridFitType(value:String):void| height | property |
height:Number[override] Sets height of text text
public function get height():Number public function set height(value:Number):void| horizontalCenter | property |
horizontalCenter:NumberSets the horizontal center
public function get horizontalCenter():Number public function set horizontalCenter(value:Number):void| htmlText | property |
htmlText:String[override] contains html representation of text field contents
public function get htmlText():String public function set htmlText(value:String):void| id | property |
id:StringSets the id
public function get id():String public function set id(value:String):void| index | property |
index:intspecify the text index
public function get index():int public function set index(value:int):void| kerning | property |
kerning:BooleanSets the gap between certain character pairs
public function get kerning():Boolean public function set kerning(value:Boolean):void| leading | property |
leading:NumberSets the line spacing of text
public function get leading():Number public function set leading(value:Number):void| letterSpacing | property |
letterSpacing:NumberSets the number of additional pixels to appear between each character.
The default value is 0;.
public function get letterSpacing():Number public function set letterSpacing(value:Number):void| propertyStates | property |
public var propertyStates:Array| scrollable | property |
scrollable:BooleanSets whether or not the text is scrollable.
public function get scrollable():Boolean public function set scrollable(value:Boolean):void| state | property |
public var state:Arrayproperty states array
| text | property |
text:String[override] A string that is the current text in the text field.
public function get text():String public function set text(value:String):void| textAlign | property |
textAlign:StringSets the allignment of text in text field
public function get textAlign():String public function set textAlign(value:String):void| textBitmap | property |
textBitmap:BooleanSets whether the text is left to scale as vector or gets locked as a bitmap.
public function get textBitmap():Boolean public function set textBitmap(value:Boolean):void| textColor | property |
textColor:uint[override] Sets the color of the text in a text field
The default value is = 0x000000;.
public function get textColor():uint public function set textColor(value:uint):void| textFormat | property |
public var textFormat:TextFormatcreates textformat variable
| textFormatColor | property |
textFormatColor:uintSets the text format color
The default value is = 0x000000;.
public function get textFormatColor():uint public function set textFormatColor(value:uint):void| textSize | property |
textSize:NumberSets the text size of the text
The default value is 15;.
public function get textSize():Number public function set textSize(value:Number):void| type | property |
type:String[override] type of text field
The default value is input;.
public function get type():String public function set type(value:String):void| underline | property |
underline:Booleanindicates whether text is underlined or not
public function get underline():Boolean public function set underline(value:Boolean):void| verticalAlign | property |
verticalAlign:BooleanSets the vertical allignment of text field
The default value is false;.
public function get verticalAlign():Boolean public function set verticalAlign(value:Boolean):void| verticalCenter | property |
verticalCenter:NumberSets the vertical center
public function get verticalCenter():Number public function set verticalCenter(value:Number):void| y | property |
y:Number[override] Sets y position of text
public function get y():Number public function set y(value:Number):void| TextFactory | () | Constructor |
public function TextFactory()Constructor
| clone | () | method |
public function clone():*Returns clone of self
Returns* |
| dispose | () | method |
public function dispose():voidDispose methods
| parseCML | () | method |
public function parseCML(cml:XMLList):XMLListparses the cml file
Parameters
cml:XMLList |
XMLList —
|
| postparseCML | () | method |
public function postparseCML(cml:XMLList):voidpost parse method
Parameters
cml:XMLList |
| updateProperties | () | method |
public function updateProperties(state:Number = 0):voidpdate properties
Parameters
state:Number (default = 0) |
| updateTextFormat | () | method |
protected function updateTextFormat():void