Packageorg.aswing.border
Classpublic class CaveBorder
InheritanceCaveBorder Inheritance DecorateBorder

CaveBorder, a border with a cave line rectangle(or roundrect). It is like a TitledBorder with no title. :)



Public Properties
 PropertyDefined by
  DEFAULT_LINE_COLOR : ASColor
[static][read-only]
CaveBorder
  DEFAULT_LINE_LIGHT_COLOR : ASColor
[static][read-only]
CaveBorder
Public Methods
 MethodDefined by
  
CaveBorder(interior:Border = null, round:Number = 0)
Create a cave border.
CaveBorder
 Inherited
Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp.
DecorateBorder
  
CaveBorder
 Inherited
getDisplay(c:Component):DisplayObject
You should override this method to return the display object.
DecorateBorder
  
getDisplayImp():DisplayObject
CaveBorder
 Inherited
Returns current interior border.
DecorateBorder
  
CaveBorder
  
CaveBorder
  
CaveBorder
  
getRound():Number
CaveBorder
  
isBeveled():Boolean
CaveBorder
  
setBeveled(b:Boolean):void
CaveBorder
 Inherited
setInterior(interior:Border):void
Sets new interior border.
DecorateBorder
  
setLineColor(lineColor:ASColor):void
CaveBorder
  
setLineLightColor(lineLightColor:ASColor):void
CaveBorder
  
setLineThickness(lineThickness:Number):void
CaveBorder
  
setRound(round:Number):void
CaveBorder
 Inherited
call super.paintBorder paint the border first and then paint the interior border on the interior bounds.
DecorateBorder
  
CaveBorder
Public Constants
 ConstantDefined by
  DEFAULT_LINE_THICKNESS : int = 1
[static]
CaveBorder
Property detail
DEFAULT_LINE_COLORproperty
DEFAULT_LINE_COLOR:ASColor  [read-only]Implementation
    public static function get DEFAULT_LINE_COLOR():ASColor
DEFAULT_LINE_LIGHT_COLORproperty 
DEFAULT_LINE_LIGHT_COLOR:ASColor  [read-only]Implementation
    public static function get DEFAULT_LINE_LIGHT_COLOR():ASColor
Constructor detail
CaveBorder()constructor
public function CaveBorder(interior:Border = null, round:Number = 0)

Create a cave border.

Parameters
interior:Border (default = null) — the interior border.
 
round:Number (default = 0) — round rect radius, default is 0 means normal rectangle, not rect.

See also

Method detail
getBorderInsetsImp()method
public override function getBorderInsetsImp(c:Component, bounds:IntRectangle):InsetsParameters
c:Component
 
bounds:IntRectangle

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

Returns
DisplayObject
getLineColor()method 
public function getLineColor():ASColor

Returns
ASColor
getLineLightColor()method 
public function getLineLightColor():ASColor

Returns
ASColor
getLineThickness()method 
public function getLineThickness():int

Returns
int
getRound()method 
public function getRound():Number

Returns
Number
isBeveled()method 
public function isBeveled():Boolean

Returns
Boolean
setBeveled()method 
public function setBeveled(b:Boolean):voidParameters
b:Boolean
setLineColor()method 
public function setLineColor(lineColor:ASColor):voidParameters
lineColor:ASColor
setLineLightColor()method 
public function setLineLightColor(lineLightColor:ASColor):voidParameters
lineLightColor:ASColor
setLineThickness()method 
public function setLineThickness(lineThickness:Number):voidParameters
lineThickness:Number
setRound()method 
public function setRound(round:Number):voidParameters
round:Number
updateBorderImp()method 
public override function updateBorderImp(c:Component, g:Graphics2D, bounds:IntRectangle):voidParameters
c:Component
 
g:Graphics2D
 
bounds:IntRectangle
Constant detail
DEFAULT_LINE_THICKNESSconstant
public static const DEFAULT_LINE_THICKNESS:int = 1