class org.aswing.border.TitledBorder extends DecorateBorder

TitledBorder, a border with a line rectangle and a title text. @author paling

Class Fields

static var BOTTOM:Int

static var CENTER:Int

static var GAP:Int

static var LEFT:Int

static var RIGHT:Int

static var TOP:Int

Instance Fields

Show inherited public instance fieldsHide inherited public instance fields

Inherited from DecorateBorder

var interior:Border
function getBorderInsets(c:Component, bounds:IntRectangle):Insets
function getBorderInsetsImp(c:Component, bounds:IntRectangle):Insets
function getDisplay(c:Component):DisplayObject
function getDisplayImp():DisplayObject
function getInterior():Border
function setInterior(interior:Border):Void
function updateBorder(c:Component, g:Graphics2D, bounds:IntRectangle):Void
function updateBorderImp(com:Component, g:Graphics2D, bounds:IntRectangle):Void

function new(?interior:Border = null, ?title:String = '', ?position:Int = 1, ?align:Int = 0, ?edge:Float = 0, ?round:Float = 0): Void

Create a titled border. @see org.aswing.border.SimpleTitledBorder @see #setColor() @see #setLineColor() @see #setFont() @see #setLineThickness() @see #setBeveled()

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.

function getAlign(): Int

function getColor(): ASColor

function getEdge(): Float

function getFont(): ASFont

function getLineColor(): ASColor

function getLineThickness(): Int

function getPosition(): Int

function getRound(): Float

function getTitle(): String

function isBeveled(): Bool

function setAlign(align:Int): Void

Sets the align of title text. @see #CENTER @see #LEFT @see #RIGHT

function setBeveled(b:Bool): Void

function setColor(color:ASColor): Void

function setEdge(edge:Float): Void

function setFont(font:ASFont): Void

function setLineColor(lineColor:ASColor): Void

function setLineLightColor(lineLightColor:ASColor): Void

function setLineThickness(lineThickness:Float): Void

function setPosition(position:Int): Void

Sets the position of title text. @see #TOP @see #BOTTOM

function setRound(round:Float): Void

function setTitle(title:String): Void