Packageorg.juicekit.flare.vis.label
Classpublic class LabelFormat
InheritanceLabelFormat Inheritance flash.text.TextFormat

The LabelFormat class describes the style attributes to be applied to text labels of a LabelLayout instance.



Public Properties
 PropertyDefined by
  horizontalAnchor : uint
Determines how the text is horizontally aligned with respect to a TextSprite's (x,y) location.
LabelFormat
  verticalAnchor : uint
Determines how the text is vertically aligned with respect to a TextSprite's (x,y) location.
LabelFormat
Public Methods
 MethodDefined by
  
LabelFormat(font:String = "Verdana", size:uint = 10, color:uint = 0, bold:Boolean = false, italic:Boolean = false)
Constructor.
LabelFormat
Public Constants
 ConstantDefined by
  BOTTOM : int
[static] Constant for vertically aligning the bottom of the text field to a TextSprite's y-coordinate.
LabelFormat
  CENTER : int
[static] Constant for horizontally aligning the center of the text field to a TextSprite's x-coordinate.
LabelFormat
  LEFT : int
[static] Constant for horizontally aligning the left of the text field to a TextSprite's x-coordinate.
LabelFormat
  MIDDLE : int
[static] Constant for vertically aligning the middle of the text field to a TextSprite's y-coordinate.
LabelFormat
  RIGHT : int
[static] Constant for horizontally aligning the right of the text field to a TextSprite's x-coordinate.
LabelFormat
  TOP : int
[static] Constant for vertically aligning the top of the text field to a TextSprite's y-coordinate.
LabelFormat
Property detail
horizontalAnchorproperty
public var horizontalAnchor:uint

Determines how the text is horizontally aligned with respect to a TextSprite's (x,y) location.

verticalAnchorproperty 
public var verticalAnchor:uint

Determines how the text is vertically aligned with respect to a TextSprite's (x,y) location.

Constructor detail
LabelFormat()constructor
public function LabelFormat(font:String = "Verdana", size:uint = 10, color:uint = 0, bold:Boolean = false, italic:Boolean = false)

Constructor.

Parameters
font:String (default = "Verdana")
 
size:uint (default = 10)
 
color:uint (default = 0)
 
bold:Boolean (default = false)
 
italic:Boolean (default = false)
Constant detail
BOTTOMconstant
public static const BOTTOM:int

Constant for vertically aligning the bottom of the text field to a TextSprite's y-coordinate.

CENTERconstant 
public static const CENTER:int

Constant for horizontally aligning the center of the text field to a TextSprite's x-coordinate.

LEFTconstant 
public static const LEFT:int

Constant for horizontally aligning the left of the text field to a TextSprite's x-coordinate.

MIDDLEconstant 
public static const MIDDLE:int

Constant for vertically aligning the middle of the text field to a TextSprite's y-coordinate.

RIGHTconstant 
public static const RIGHT:int

Constant for horizontally aligning the right of the text field to a TextSprite's x-coordinate.

TOPconstant 
public static const TOP:int

Constant for vertically aligning the top of the text field to a TextSprite's y-coordinate.