Packageorg.aswing.border
Classpublic class BevelBorder
InheritanceBevelBorder Inheritance DecorateBorder

A class which implements a simple 2 line bevel border.



Public Methods
 MethodDefined by
  
BevelBorder(interior:Border = null, bevelType:int, highlightOuterColor:ASColor = null, highlightInnerColor:ASColor = null, shadowOuterColor:ASColor = null, shadowInnerColor:ASColor = null, thickness:Number = 2)
BevelBorder()
default bevelType to LOWERED
BevelBorder(interior:Border, bevelType:Number)
Creates a bevel border with the specified type and whose colors will be derived from the background color of the component passed into the paintBorder method.
BevelBorder
  
getBevelType():Number
Returns the type of the bevel border.
BevelBorder
 Inherited
Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp.
DecorateBorder
  
BevelBorder
 Inherited
getDisplay(c:Component):DisplayObject
You should override this method to return the display object.
DecorateBorder
  
getDisplayImp():DisplayObject
BevelBorder
  
Returns the inner highlight color of the bevel border.
BevelBorder
  
Returns the inner highlight color of the bevel border when rendered on the specified component.
BevelBorder
  
Returns the outer highlight color of the bevel border.
BevelBorder
  
Returns the outer highlight color of the bevel border when rendered on the specified component.
BevelBorder
 Inherited
Returns current interior border.
DecorateBorder
  
Returns the inner shadow color of the bevel border.
BevelBorder
  
Returns the inner shadow color of the bevel border when rendered on the specified component.
BevelBorder
  
Returns the outer shadow color of the bevel border.
BevelBorder
  
Returns the outer shadow color of the bevel border when rendered on the specified component.
BevelBorder
  
getThickness():Number
Returns the thickness of border frame lines
BevelBorder
  
setBevelType(bevelType:Number):void
Sets new type of the bevel border.
BevelBorder
  
Sets new inner highlight color of the bevel border.
BevelBorder
  
Sets new outer highlight color of the bevel border.
BevelBorder
 Inherited
setInterior(interior:Border):void
Sets new interior border.
DecorateBorder
  
Sets new inner shadow color of the bevel border.
BevelBorder
  
Sets new outer shadow color of the bevel border.
BevelBorder
  
setThickness(t:Number):void
Sets the thickness of border frame lines
BevelBorder
 Inherited
call super.paintBorder paint the border first and then paint the interior border on the interior bounds.
DecorateBorder
  
BevelBorder
Public Constants
 ConstantDefined by
  LOWERED : int = 1
[static] Lowered bevel type.
BevelBorder
  RAISED : int = 0
[static] Raised bevel type.
BevelBorder
Constructor detail
BevelBorder()constructor
public function BevelBorder(interior:Border = null, bevelType:int, highlightOuterColor:ASColor = null, highlightInnerColor:ASColor = null, shadowOuterColor:ASColor = null, shadowInnerColor:ASColor = null, thickness:Number = 2)

BevelBorder()
default bevelType to LOWERED
BevelBorder(interior:Border, bevelType:Number)
Creates a bevel border with the specified type and whose colors will be derived from the background color of the component passed into the paintBorder method.

BevelBorder(interior:Border, bevelType:Number, highlight:ASColor, shadow:ASColor)
Creates a bevel border with the specified type, highlight and shadow colors.

BevelBorder(interior:Border, bevelType:Number, highlightOuterColor:ASColor, highlightInnerColor:ASColor, shadowOuterColor:ASColor, shadowInnerColor:ASColor)
Creates a bevel border with the specified type, specified four colors. Parameters

interior:Border (default = null) — the border in this border
 
bevelType:int — the type of bevel for the border
 
highlightOuterColor:ASColor (default = null) — the color to use for the bevel outer highlight
 
highlightInnerColor:ASColor (default = null) — the color to use for the bevel inner highlight
 
shadowOuterColor:ASColor (default = null) — the color to use for the bevel outer shadow
 
shadowInnerColor:ASColor (default = null) — the color to use for the bevel inner shadow
 
thickness:Number (default = 2) — the thickness of border frame lines, default is 2
Method detail
getBevelType()method
public function getBevelType():Number

Returns the type of the bevel border.

Returns
Number
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
getHighlightInnerColor()method 
public function getHighlightInnerColor():ASColor

Returns the inner highlight color of the bevel border. Will return null if no highlight color was specified at instantiation.

Returns
ASColor
getHighlightInnerColorWith()method 
public function getHighlightInnerColorWith(c:Component):ASColor

Returns the inner highlight color of the bevel border when rendered on the specified component. If no highlight color was specified at instantiation, the highlight color is derived from the specified component's background color.

Parameters
c:Component — the component for which the highlight may be derived

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

Returns the outer highlight color of the bevel border. Will return null if no highlight color was specified at instantiation.

Returns
ASColor
getHighlightOuterColorWith()method 
public function getHighlightOuterColorWith(c:Component):ASColor

Returns the outer highlight color of the bevel border when rendered on the specified component. If no highlight color was specified at instantiation, the highlight color is derived from the specified component's background color.

Parameters
c:Component — the component for which the highlight may be derived

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

Returns the inner shadow color of the bevel border. Will return null if no shadow color was specified at instantiation.

Returns
ASColor
getShadowInnerColorWith()method 
public function getShadowInnerColorWith(c:Component):ASColor

Returns the inner shadow color of the bevel border when rendered on the specified component. If no shadow color was specified at instantiation, the shadow color is derived from the specified component's background color.

Parameters
c:Component — the component for which the shadow may be derived

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

Returns the outer shadow color of the bevel border. Will return null if no shadow color was specified at instantiation.

Returns
ASColor
getShadowOuterColorWith()method 
public function getShadowOuterColorWith(c:Component):ASColor

Returns the outer shadow color of the bevel border when rendered on the specified component. If no shadow color was specified at instantiation, the shadow color is derived from the specified component's background color.

Parameters
c:Component — the component for which the shadow may be derived

Returns
ASColor
getThickness()method 
public function getThickness():Number

Returns the thickness of border frame lines

Returns
Number — the thickness of border frame lines
setBevelType()method 
public function setBevelType(bevelType:Number):void

Sets new type of the bevel border.

Parameters
bevelType:Number
setHighlightInnerColor()method 
public function setHighlightInnerColor(color:ASColor):void

Sets new inner highlight color of the bevel border.

Parameters
color:ASColor
setHighlightOuterColor()method 
public function setHighlightOuterColor(color:ASColor):void

Sets new outer highlight color of the bevel border.

Parameters
color:ASColor
setShadowInnerColor()method 
public function setShadowInnerColor(color:ASColor):void

Sets new inner shadow color of the bevel border.

Parameters
color:ASColor
setShadowOuterColor()method 
public function setShadowOuterColor(color:ASColor):void

Sets new outer shadow color of the bevel border.

Parameters
color:ASColor
setThickness()method 
public function setThickness(t:Number):void

Sets the thickness of border frame lines

Parameters
t:Number — the thickness of border frame lines to set.
updateBorderImp()method 
public override function updateBorderImp(com:Component, g:Graphics2D, b:IntRectangle):voidParameters
com:Component
 
g:Graphics2D
 
b:IntRectangle
Constant detail
LOWEREDconstant
public static const LOWERED:int = 1

Lowered bevel type.

RAISEDconstant 
public static const RAISED:int = 0

Raised bevel type.