Packageorg.aswing.border
Classpublic class SimpleTitledBorder
InheritanceSimpleTitledBorder Inheritance DecorateBorder



Public Properties
 PropertyDefined by
  EDGE_SPACING : int = 0
[static]
SimpleTitledBorder
Public Methods
 MethodDefined 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
 Inherited
Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp.
DecorateBorder
  
SimpleTitledBorder
  
SimpleTitledBorder
 Inherited
getDisplay(c:Component):DisplayObject
You should override this method to return the display object.
DecorateBorder
  
getDisplayImp():DisplayObject
SimpleTitledBorder
  
SimpleTitledBorder
 Inherited
Returns current interior border.
DecorateBorder
  
getOffset():int
SimpleTitledBorder
  
SimpleTitledBorder
  
getTitle():String
SimpleTitledBorder
  
setAlign(align:int):void
SimpleTitledBorder
  
setColor(color:ASColor):void
SimpleTitledBorder
  
setFont(font:ASFont):void
SimpleTitledBorder
 Inherited
setInterior(interior:Border):void
Sets new interior border.
DecorateBorder
  
setOffset(offset:int):void
SimpleTitledBorder
  
setPosition(position:int):void
SimpleTitledBorder
  
setTitle(title:String):void
SimpleTitledBorder
 Inherited
call super.paintBorder paint the border first and then paint the interior border on the interior bounds.
DecorateBorder
  
SimpleTitledBorder
Public Constants
 ConstantDefined 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
Property detail
EDGE_SPACINGproperty
public static var EDGE_SPACING:int = 0
Constructor detail
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.

Parameters
interior: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

Method detail
getAlign()method
public function getAlign():int

Returns
int
getBorderInsetsImp()method 
public override function getBorderInsetsImp(c:Component, bounds:IntRectangle):InsetsParameters
c:Component
 
bounds:IntRectangle

Returns
Insets
getColor()method 
public function getColor():ASColor

Returns
ASColor
getDisplayImp()method 
public override function getDisplayImp():DisplayObject

Returns
DisplayObject
getFont()method 
public function getFont():ASFont

Returns
ASFont
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 
public function setColor(color:ASColor):voidParameters
color:ASColor
setFont()method 
public function setFont(font:ASFont):voidParameters
font:ASFont
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
Constant detail
BOTTOMconstant
public static const BOTTOM:int = 3
CENTERconstant 
public static const CENTER:int = 0
LEFTconstant 
public static const LEFT:int = 2
RIGHTconstant 
public static const RIGHT:int = 4
TOPconstant 
public static const TOP:int = 1