class org.aswing.border.SimpleTitledBorder extends DecorateBorder

Class Fields

static var BOTTOM:Int

static var CENTER:Int

static var EDGE_SPACING: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, ?offset:Int = 0, ?font:ASFont = null, ?color:ASColor = null): Void

Create a simple titled border. @see #TOP @see #BOTTOM @see #CENTER @see #LEFT @see #RIGHT @see org.aswing.border.TitledBorder

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

offset

the addition of title text's x position, default is 0

font

the title text's ASFont

color

the color of the title text

function getAlign(): Int

function getColor(): ASColor

function getFont(): ASFont

function getOffset(): Int

function getPosition(): Int

function getTitle(): String

function setAlign(align:Int): Void

function setColor(color:ASColor): Void

function setFont(font:ASFont): Void

function setOffset(offset:Int): Void

function setPosition(position:Int): Void

function setTitle(title:String): Void