| Package | org.aswing.border |
| Class | public class BevelBorder |
| Inheritance | BevelBorder DecorateBorder |
| Method | Defined 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 | ||
![]() |
Returns the insets of the border.
Note:subclass should not override this method, should override getBorderInsetsImp. | DecorateBorder | |
| BevelBorder | |||
![]() |
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 | ||
![]() |
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 | ||
|
setHighlightInnerColor(color:ASColor):void
Sets new inner highlight color of the bevel border.
| BevelBorder | ||
|
setHighlightOuterColor(color:ASColor):void
Sets new outer highlight color of the bevel border.
| BevelBorder | ||
![]() |
setInterior(interior:Border):void
Sets new interior border.
| DecorateBorder | |
|
setShadowInnerColor(color:ASColor):void
Sets new inner shadow color of the bevel border.
| BevelBorder | ||
|
setShadowOuterColor(color:ASColor):void
Sets new outer shadow color of the bevel border.
| BevelBorder | ||
|
setThickness(t:Number):void
Sets the thickness of border frame lines
| BevelBorder | ||
![]() |
call
super.paintBorder paint the border first and then
paint the interior border on the interior bounds. | DecorateBorder | |
| BevelBorder | |||
| Constant | Defined by | ||
|---|---|---|---|
| LOWERED : int = 1 [static] Lowered bevel type.
| BevelBorder | ||
| RAISED : int = 0 [static] Raised bevel type.
| BevelBorder | ||
| 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
|
| getBevelType | () | method |
public function getBevelType():NumberReturns the type of the bevel border.
ReturnsNumber |
| getBorderInsetsImp | () | method |
public override function getBorderInsetsImp(c:Component, bounds:IntRectangle):InsetsParameters
c:Component |
|
bounds:IntRectangle |
Insets |
| getDisplayImp | () | method |
public override function getDisplayImp():DisplayObject
Returns
DisplayObject |
| getHighlightInnerColor | () | method |
public function getHighlightInnerColor():ASColorReturns the inner highlight color of the bevel border. Will return null if no highlight color was specified at instantiation.
ReturnsASColor |
| getHighlightInnerColorWith | () | method |
public function getHighlightInnerColorWith(c:Component):ASColorReturns 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.
Parametersc:Component — the component for which the highlight may be derived
|
ASColor |
| getHighlightOuterColor | () | method |
public function getHighlightOuterColor():ASColorReturns the outer highlight color of the bevel border. Will return null if no highlight color was specified at instantiation.
ReturnsASColor |
| getHighlightOuterColorWith | () | method |
public function getHighlightOuterColorWith(c:Component):ASColorReturns 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.
Parametersc:Component — the component for which the highlight may be derived
|
ASColor |
| getShadowInnerColor | () | method |
public function getShadowInnerColor():ASColorReturns the inner shadow color of the bevel border. Will return null if no shadow color was specified at instantiation.
ReturnsASColor |
| getShadowInnerColorWith | () | method |
public function getShadowInnerColorWith(c:Component):ASColorReturns 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.
Parametersc:Component — the component for which the shadow may be derived
|
ASColor |
| getShadowOuterColor | () | method |
public function getShadowOuterColor():ASColorReturns the outer shadow color of the bevel border. Will return null if no shadow color was specified at instantiation.
ReturnsASColor |
| getShadowOuterColorWith | () | method |
public function getShadowOuterColorWith(c:Component):ASColorReturns 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.
Parametersc:Component — the component for which the shadow may be derived
|
ASColor |
| getThickness | () | method |
public function getThickness():NumberReturns the thickness of border frame lines
ReturnsNumber — the thickness of border frame lines
|
| setBevelType | () | method |
public function setBevelType(bevelType:Number):voidSets new type of the bevel border.
ParametersbevelType:Number |
| setHighlightInnerColor | () | method |
public function setHighlightInnerColor(color:ASColor):voidSets new inner highlight color of the bevel border.
Parameterscolor:ASColor |
| setHighlightOuterColor | () | method |
public function setHighlightOuterColor(color:ASColor):voidSets new outer highlight color of the bevel border.
Parameterscolor:ASColor |
| setShadowInnerColor | () | method |
public function setShadowInnerColor(color:ASColor):voidSets new inner shadow color of the bevel border.
Parameterscolor:ASColor |
| setShadowOuterColor | () | method |
public function setShadowOuterColor(color:ASColor):voidSets new outer shadow color of the bevel border.
Parameterscolor:ASColor |
| setThickness | () | method |
public function setThickness(t:Number):voidSets the thickness of border frame lines
Parameterst: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 |
| LOWERED | constant |
public static const LOWERED:int = 1Lowered bevel type.
| RAISED | constant |
public static const RAISED:int = 0Raised bevel type.