TitledBorder, a border with a line rectangle and a title text.
new TitledBorder()
public function TitledBorder(interior:Border, title:String, position:Number, align:Number, edge:Number, round:Number)
TitledBorder(interior:Border, title:String, position:Number, align:Number, edge:Number, round:Number)
TitledBorder(interior:Border, title:String, position:Number, align:Number, edge:Number)
TitledBorder(interior:Border, title:String, position:Number, align:Number,)
TitledBorder(interior:Border, title:String, position:Number)
TitledBorder(interior:Border, title:String)
title | the title text string. |
position | the position of the title(TOP or BOTTOM), default is TOP |
align | the align of the title(CENTER or LEFT or RIGHT), default is CENTER |
edge | the edge space of title position, defaut is 0. |
round | round rect radius, default is 0 means normal rectangle, not rect. |
static public DEFAULT_FONT:ASFont [Read Only]
static public DEFAULT_COLOR:ASColor [Read Only]
static public DEFAULT_LINE_COLOR:ASColor [Read Only]
static public DEFAULT_LINE_LIGHT_COLOR:ASColor [Read Only]
static public DEFAULT_LINE_THICKNESS:Number
static public TOP:Number
static public BOTTOM:Number
static public CENTER:Number
static public LEFT:Number
static public RIGHT:Number
static public GAP:Number
textFieldExtent:ASTextExtent
public function paintBorderImp(c:Component, g:Graphics, bounds:Rectangle):Void
Description copied from DecorateBorder
Override this method in sub-class to draw border on the specified mc.
public function getBorderInsetsImp(c:Component, bounds:Rectangle):Insets
Description copied from DecorateBorder
You should override this method to count this border's insets.
public function uninstallBorderImp(com:Component):Void
Description copied from DecorateBorder
Override this method in sub-class to clear and remove the border things you created for this component.