| Package | org.aswing.border |
| Class | public class SimpleTitledBorder |
| Inheritance | SimpleTitledBorder DecorateBorder |
| Property | Defined by | ||
|---|---|---|---|
| EDGE_SPACING : int = 0 [static]
| SimpleTitledBorder | ||
| Method | Defined by | ||
|---|---|---|---|
|
SimpleTitledBorder(interior:Border = null, title:String = "", position:int, align:int, offset:int = 0, font:ASFont = null, color:ASColor = null)
Create a simple titled border.
| SimpleTitledBorder | ||
|
getAlign():int
| SimpleTitledBorder | ||
![]() |
Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp. | DecorateBorder | |
| SimpleTitledBorder | |||
| SimpleTitledBorder | |||
![]() |
getDisplay(c:Component):DisplayObject
You should override this method to return the display object.
| DecorateBorder | |
|
getDisplayImp():DisplayObject
| SimpleTitledBorder | ||
| SimpleTitledBorder | |||
![]() |
Returns current interior border.
| DecorateBorder | |
|
getOffset():int
| SimpleTitledBorder | ||
|
getPosition():int
| SimpleTitledBorder | ||
|
getTitle():String
| SimpleTitledBorder | ||
|
setAlign(align:int):void
| SimpleTitledBorder | ||
| SimpleTitledBorder | |||
| SimpleTitledBorder | |||
![]() |
setInterior(interior:Border):void
Sets new interior border.
| DecorateBorder | |
|
setOffset(offset:int):void
| SimpleTitledBorder | ||
|
setPosition(position:int):void
| SimpleTitledBorder | ||
|
setTitle(title:String):void
| SimpleTitledBorder | ||
![]() |
call
super.paintBorder paint the border first and then
paint the interior border on the interior bounds. | DecorateBorder | |
| SimpleTitledBorder | |||
| Constant | Defined by | ||
|---|---|---|---|
| BOTTOM : int = 3 [static]
| SimpleTitledBorder | ||
| CENTER : int = 0 [static]
| SimpleTitledBorder | ||
| LEFT : int = 2 [static]
| SimpleTitledBorder | ||
| RIGHT : int = 4 [static]
| SimpleTitledBorder | ||
| TOP : int = 1 [static]
| SimpleTitledBorder | ||
| EDGE_SPACING | property |
public static var EDGE_SPACING:int = 0
| SimpleTitledBorder | () | constructor |
public function SimpleTitledBorder(interior:Border = null, title:String = "", position:int, align:int, offset:int = 0, font:ASFont = null, color:ASColor = null)Create a simple 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 addition of title text's x position, default is 0
|
|
offset:int (default = 0) — the title text's ASFont
|
|
font:ASFont (default = null) — the color of the title text
|
|
color:ASColor (default = null) |
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 |
| getFont | () | method |
| getOffset | () | method |
public function getOffset():int
Returns
int |
| getPosition | () | method |
public function getPosition():int
Returns
int |
| getTitle | () | method |
public function getTitle():String
Returns
String |
| setAlign | () | method |
public function setAlign(align:int):voidParameters
align:int |
| setColor | () | method |
| setFont | () | method |
| setOffset | () | method |
public function setOffset(offset:int):voidParameters
offset:int |
| setPosition | () | method |
public function setPosition(position:int):voidParameters
position:int |
| 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
| LEFT | constant |
public static const LEFT:int = 2
| RIGHT | constant |
public static const RIGHT:int = 4
| TOP | constant |
public static const TOP:int = 1