| Package | org.aswing.border |
| Class | public class TitledBorder |
| Inheritance | TitledBorder DecorateBorder |
| Property | Defined by | ||
|---|---|---|---|
| DEFAULT_COLOR : ASColor
[static][read-only]
| TitledBorder | ||
| DEFAULT_FONT : ASFont
[static][read-only]
| TitledBorder | ||
| DEFAULT_LINE_COLOR : ASColor
[static][read-only]
| TitledBorder | ||
| DEFAULT_LINE_LIGHT_COLOR : ASColor
[static][read-only]
| TitledBorder | ||
| GAP : int = 1 [static]
| TitledBorder | ||
| Method | Defined by | ||
|---|---|---|---|
|
TitledBorder(interior:Border = null, title:String = "", position:int, align:int, edge:Number = 0, round:Number = 0)
Create a titled border.
| TitledBorder | ||
|
getAlign():int
| TitledBorder | ||
![]() |
Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp. | DecorateBorder | |
| TitledBorder | |||
| TitledBorder | |||
![]() |
getDisplay(c:Component):DisplayObject
You should override this method to return the display object.
| DecorateBorder | |
|
getDisplayImp():DisplayObject
| TitledBorder | ||
|
getEdge():Number
| TitledBorder | ||
| TitledBorder | |||
![]() |
Returns current interior border.
| DecorateBorder | |
| TitledBorder | |||
| TitledBorder | |||
|
getLineThickness():int
| TitledBorder | ||
|
getPosition():int
| TitledBorder | ||
|
getRound():Number
| TitledBorder | ||
|
getTitle():String
| TitledBorder | ||
|
isBeveled():Boolean
| TitledBorder | ||
|
setAlign(align:int):void
Sets the align of title text.
| TitledBorder | ||
|
setBeveled(b:Boolean):void
| TitledBorder | ||
| TitledBorder | |||
|
setEdge(edge:Number):void
| TitledBorder | ||
| TitledBorder | |||
![]() |
setInterior(interior:Border):void
Sets new interior border.
| DecorateBorder | |
|
setLineColor(lineColor:ASColor):void
| TitledBorder | ||
|
setLineLightColor(lineLightColor:ASColor):void
| TitledBorder | ||
|
setLineThickness(lineThickness:Number):void
| TitledBorder | ||
|
setPosition(position:int):void
Sets the position of title text.
| TitledBorder | ||
|
setRound(round:Number):void
| TitledBorder | ||
|
setTitle(title:String):void
| TitledBorder | ||
![]() |
call
super.paintBorder paint the border first and then
paint the interior border on the interior bounds. | DecorateBorder | |
| TitledBorder | |||
| Constant | Defined by | ||
|---|---|---|---|
| BOTTOM : int = 3 [static]
| TitledBorder | ||
| CENTER : int = 0 [static]
| TitledBorder | ||
| DEFAULT_LINE_THICKNESS : int = 1 [static]
| TitledBorder | ||
| LEFT : int = 2 [static]
| TitledBorder | ||
| RIGHT : int = 4 [static]
| TitledBorder | ||
| TOP : int = 1 [static]
| TitledBorder | ||
| DEFAULT_COLOR | property |
| DEFAULT_FONT | property |
| DEFAULT_LINE_COLOR | property |
DEFAULT_LINE_COLOR:ASColor [read-only]Implementation
public static function get DEFAULT_LINE_COLOR():ASColor
| DEFAULT_LINE_LIGHT_COLOR | property |
DEFAULT_LINE_LIGHT_COLOR:ASColor [read-only]Implementation
public static function get DEFAULT_LINE_LIGHT_COLOR():ASColor
| GAP | property |
public static var GAP:int = 1
| TitledBorder | () | constructor |
public function TitledBorder(interior:Border = null, title:String = "", position:int, align:int, edge:Number = 0, round:Number = 0)Create a titled border.
Parametersinterior:Border (default = null) — the title text string.
|
|
title:String (default = "") — the position of the title(TOP or BOTTOM), default is TOP
|
|
position:int — the align of the title(CENTER or LEFT or RIGHT), default is CENTER
|
|
align:int — the edge space of title position, defaut is 0.
|
|
edge:Number (default = 0) — round rect radius, default is 0 means normal rectangle, not rect.
|
|
round:Number (default = 0) |
See also
| getAlign | () | method |
public function getAlign():int
Returns
int |
| getBorderInsetsImp | () | method |
public override function getBorderInsetsImp(c:Component, bounds:IntRectangle):InsetsParameters
c:Component |
|
bounds:IntRectangle |
Insets |
| getColor | () | method |
| getDisplayImp | () | method |
public override function getDisplayImp():DisplayObject
Returns
DisplayObject |
| getEdge | () | method |
public function getEdge():Number
Returns
Number |
| getFont | () | method |
| getLineColor | () | method |
| getLineLightColor | () | method |
| getLineThickness | () | method |
public function getLineThickness():int
Returns
int |
| getPosition | () | method |
public function getPosition():int
Returns
int |
| getRound | () | method |
public function getRound():Number
Returns
Number |
| getTitle | () | method |
public function getTitle():String
Returns
String |
| isBeveled | () | method |
public function isBeveled():Boolean
Returns
Boolean |
| setAlign | () | method |
public function setAlign(align:int):voidSets the align of title text.
Parametersalign:int |
See also
| setBeveled | () | method |
public function setBeveled(b:Boolean):voidParameters
b:Boolean |
| setColor | () | method |
| setEdge | () | method |
public function setEdge(edge:Number):voidParameters
edge:Number |
| setFont | () | method |
| setLineColor | () | method |
| setLineLightColor | () | method |
| setLineThickness | () | method |
public function setLineThickness(lineThickness:Number):voidParameters
lineThickness:Number |
| setPosition | () | method |
public function setPosition(position:int):voidSets the position of title text.
Parametersposition:int |
See also
| setRound | () | method |
public function setRound(round:Number):voidParameters
round:Number |
| setTitle | () | method |
public function setTitle(title:String):voidParameters
title:String |
| updateBorderImp | () | method |
public override function updateBorderImp(c:Component, g:Graphics2D, bounds:IntRectangle):voidParameters
c:Component |
|
g:Graphics2D |
|
bounds:IntRectangle |
| BOTTOM | constant |
public static const BOTTOM:int = 3
| CENTER | constant |
public static const CENTER:int = 0
| DEFAULT_LINE_THICKNESS | constant |
public static const DEFAULT_LINE_THICKNESS:int = 1
| LEFT | constant |
public static const LEFT:int = 2
| RIGHT | constant |
public static const RIGHT:int = 4
| TOP | constant |
public static const TOP:int = 1