TextStyler

Kind of class:public class
Package:com.trycatch.utils
Inherits from:Object
Classpath:com.trycatch.utils.TextStyler
File last modified:Tuesday, 09 June 2009, 09:13:08
Handles all your text styling needs

Summary


Constructor
Constants
Class properties
Class methods
  • addStyle (_name:String, _properties:Object) : void
    • Adds a Style to the class
  • getStyleAsTextFormat (_name:String) : TextFormat
    • Returns the requested text style as a TextFormat Object

Constructor

TextStyler

public function TextStyler (
) : void

TextStyler constructor

Constants

CLASSNAME

public static const CLASSNAME:String = "TextStyler"
(read)

The class name

Class properties

classPath

public static classPath:String
(read)

The full classPath

doTrace

public static doTrace:Boolean = true
(read,write)

If false this class will suspend trace statements

styleSheet

public static styleSheet:StyleSheet
(read)

Class methods

addStyle

public static function addStyle (
_name:String, _properties:Object) : void

Adds a Style to the class
Parameters:
_name :
The name of the style to add
_properties:
A generic Object of style properties

getStyleAsTextFormat

public static function getStyleAsTextFormat (
_name:String) : TextFormat

Returns the requested text style as a TextFormat Object
Parameters:
_name:
The name of the style to return
Returns:
  • The TextFormat Object