Class org.aswing.border.SimpleTitledBorder

Description

A poor Title Border.

Field Index

BOTTOM, CENTER, EDGE_SPACING, LEFT, RIGHT, TOP

Method Index

new SimpleTitledBorder()
getAlign(), getBorderInsetsImp(), getColor(), getFont(), getOffset(), getPosition(), getTitle(), paintBorderImp(), setAlign(), setColor(), setFont(), setOffset(), setPosition(), setTitle(), uninstallBorderImp()

Inherited from DecorateBorder

Constructor Detail

SimpleTitledBorder

public function SimpleTitledBorder(interior:Border, title:String, position:Number, align:Number, offset:Number, font:ASFont, color:ASColor)

SimpleTitledBorder(interior:Border, title:String, position:Number, align:Number, offset:Number, font:ASFont, color:ASColor)
SimpleTitledBorder(interior:Border, title:String, position:Number, align:Number, offset:Number, font:ASFont)
SimpleTitledBorder(interior:Border, title:String, position:Number, align:Number, offset:Number)
SimpleTitledBorder(interior:Border, title:String, position:Number, align:Number,)
SimpleTitledBorder(interior:Border, title:String, position:Number)
SimpleTitledBorder(interior:Border, title:String)

Parameters

titlethe title text string.
positionthe position of the title(TOP or BOTTOM), default is TOP
alignthe align of the title(CENTER or LEFT or RIGHT), default is CENTER
offsetthe addition of title text's x position, default is 0
fontthe title text's ASFont
colorthe color of the title text

See Also

Field Detail

TOP

static public TOP:Number

BOTTOM

static public BOTTOM:Number

CENTER

static public CENTER:Number

LEFT

static public LEFT:Number

RIGHT

static public RIGHT:Number

EDGE_SPACING

static public EDGE_SPACING:Number

Method Detail

getPosition

public function getPosition():Number

setPosition

public function setPosition(position:Number):Void

getColor

public function getColor():ASColor

setColor

public function setColor(color:ASColor):Void

getFont

public function getFont():ASFont

setFont

public function setFont(font:ASFont):Void

getAlign

public function getAlign():Number

setAlign

public function setAlign(align:Number):Void

getTitle

public function getTitle():String

setTitle

public function setTitle(title:String):Void

getOffset

public function getOffset():Number

setOffset

public function setOffset(offset:Number):Void

paintBorderImp

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.

Overrides

paintBorderImp() in org.aswing.border.DecorateBorder

getBorderInsetsImp

public function getBorderInsetsImp(c:Component, bounds:Rectangle):Insets

Description copied from DecorateBorder

You should override this method to count this border's insets.

Overrides

getBorderInsetsImp() in org.aswing.border.DecorateBorder

uninstallBorderImp

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.

Overrides

uninstallBorderImp() in org.aswing.border.DecorateBorder