Packagecom.gestureworks.cml.factories
Classpublic class TextFactory
InheritanceTextFactory Inheritance flash.text.TextField
Implements IElement, ICSS
Subclasses Text

The TextFactory is the base class for all Text. It is an abstract class that is not meant to be called directly.

See also

com.gestureworks.cml.factories.Text
com.gestureworks.cml.factories.TLF
com.gestureworks.cml.factories.ElementFactory


Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined 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
Protected Methods
 MethodDefined By
  
TextFactory
Property Detail
autoSizeproperty
autoSize:String[override]

Controls automatic sizing and alignment of text fields.


Implementation
    public function get autoSize():String
    public function set autoSize(value:String):void
class_property 
class_:String

Object's css class;


Implementation
    public function get class_():String
    public function set class_(value:String):void
classNameproperty 
className:String

sets the class name of displayobject


Implementation
    public function get className():String
    public function set className(value:String):void
cmlIndexproperty 
cmlIndex:int

Sets the cml index


Implementation
    public function get cmlIndex():int
    public function set cmlIndex(value:int):void
colorproperty 
color:uint

Sets the color of the text in a text field

The default value is = 0x000000;.


Implementation
    public function get color():uint
    public function set color(value:uint):void
fontproperty 
font:String

Sets the font of the text

The default value is "OpenSansRegular";.


Implementation
    public function get font():String
    public function set font(value:String):void
fontSizeproperty 
fontSize:Number

Sets the font size of the text

The default value is 15;.


Implementation
    public function get fontSize():Number
    public function set fontSize(value:Number):void
gridFitTypeproperty 
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.


Implementation
    public function get gridFitType():String
    public function set gridFitType(value:String):void
heightproperty 
height:Number[override]

Sets height of text text


Implementation
    public function get height():Number
    public function set height(value:Number):void
horizontalCenterproperty 
horizontalCenter:Number

Sets the horizontal center


Implementation
    public function get horizontalCenter():Number
    public function set horizontalCenter(value:Number):void
htmlTextproperty 
htmlText:String[override]

contains html representation of text field contents


Implementation
    public function get htmlText():String
    public function set htmlText(value:String):void
idproperty 
id:String

Sets the id


Implementation
    public function get id():String
    public function set id(value:String):void
indexproperty 
index:int

specify the text index


Implementation
    public function get index():int
    public function set index(value:int):void
kerningproperty 
kerning:Boolean

Sets the gap between certain character pairs


Implementation
    public function get kerning():Boolean
    public function set kerning(value:Boolean):void
leadingproperty 
leading:Number

Sets the line spacing of text


Implementation
    public function get leading():Number
    public function set leading(value:Number):void
letterSpacingproperty 
letterSpacing:Number

Sets the number of additional pixels to appear between each character.

The default value is 0;.


Implementation
    public function get letterSpacing():Number
    public function set letterSpacing(value:Number):void
propertyStatesproperty 
public var propertyStates:Array
Deprecated: Please Use state

scrollableproperty 
scrollable:Boolean

Sets whether or not the text is scrollable.


Implementation
    public function get scrollable():Boolean
    public function set scrollable(value:Boolean):void
stateproperty 
public var state:Array

property states array

textproperty 
text:String[override]

A string that is the current text in the text field.


Implementation
    public function get text():String
    public function set text(value:String):void
textAlignproperty 
textAlign:String

Sets the allignment of text in text field


Implementation
    public function get textAlign():String
    public function set textAlign(value:String):void
textBitmapproperty 
textBitmap:Boolean

Sets whether the text is left to scale as vector or gets locked as a bitmap.


Implementation
    public function get textBitmap():Boolean
    public function set textBitmap(value:Boolean):void
textColorproperty 
textColor:uint[override]

Sets the color of the text in a text field

The default value is = 0x000000;.


Implementation
    public function get textColor():uint
    public function set textColor(value:uint):void
textFormatproperty 
public var textFormat:TextFormat

creates textformat variable

textFormatColorproperty 
textFormatColor:uint
Deprecated: Please Use color

Sets the text format color

The default value is = 0x000000;.


Implementation
    public function get textFormatColor():uint
    public function set textFormatColor(value:uint):void
textSizeproperty 
textSize:Number

Sets the text size of the text

The default value is 15;.


Implementation
    public function get textSize():Number
    public function set textSize(value:Number):void
typeproperty 
type:String[override]

type of text field

The default value is input;.


Implementation
    public function get type():String
    public function set type(value:String):void
underlineproperty 
underline:Boolean

indicates whether text is underlined or not


Implementation
    public function get underline():Boolean
    public function set underline(value:Boolean):void
verticalAlignproperty 
verticalAlign:Boolean

Sets the vertical allignment of text field

The default value is false;.


Implementation
    public function get verticalAlign():Boolean
    public function set verticalAlign(value:Boolean):void
verticalCenterproperty 
verticalCenter:Number

Sets the vertical center


Implementation
    public function get verticalCenter():Number
    public function set verticalCenter(value:Number):void
yproperty 
y:Number[override]

Sets y position of text


Implementation
    public function get y():Number
    public function set y(value:Number):void
Constructor Detail
TextFactory()Constructor
public function TextFactory()

Constructor

Method Detail
clone()method
public function clone():*

Returns clone of self

Returns
*
dispose()method 
public function dispose():void

Dispose methods

parseCML()method 
public function parseCML(cml:XMLList):XMLList

parses the cml file

Parameters

cml:XMLList

Returns
XMLList
postparseCML()method 
public function postparseCML(cml:XMLList):void

post parse method

Parameters

cml:XMLList

updateProperties()method 
public function updateProperties(state:Number = 0):void

pdate properties

Parameters

state:Number (default = 0)

updateTextFormat()method 
protected function updateTextFormat():void