Class mx.styles.StyleManager

mx.styles.StyleManager

Description

The class that manages: -which CSS style properties are inheriting -which style properties are colors and therefore get special handling -a list of strings that are aliases for color values

Field Index

colorNames, colorStyles, inheritingStyles, TextFormatStyleProps, TextStyleMap

Method Index

getColorName(), isColorName(), isColorStyle(), isInheritingStyle(), registerColorName(), registerColorStyle(), registerInheritingStyle()

Field Detail

inheritingStyles

static inheritingStyles:Object

colorStyles

static colorStyles:Object

colorNames

static colorNames:Object

TextFormatStyleProps

static TextFormatStyleProps:Object

TextStyleMap

static TextStyleMap:Object

Method Detail

registerInheritingStyle

static function registerInheritingStyle(styleName:
String):Void
Parameters
styleName the style name

isInheritingStyle

static function isInheritingStyle(styleName:
String):Boolean
Parameters
styleName the style name
Return
Boolean

registerColorStyle

static function registerColorStyle(styleName:
String):Void
Parameters
styleName the style name

isColorStyle

static function isColorStyle(styleName:
String):Boolean
Parameters
styleName the style name
Return
Boolean

registerColorName

static function registerColorName(colorName:
String, colorValue:Number):Void
Parameters
colorName the style name (e.g. "blue")
colorValue the color value (e.g. 0x0000FF)

isColorName

static function isColorName(colorName:
String):Boolean
Parameters
colorName the color name
Return
Boolean

getColorName

static function getColorName(colorName:
String):Number
Parameters
colorName the color name
Return
Number (the color value)