class org.aswing.border.BevelBorder extends DecorateBorder
Sub classes | ||||
![]() | ComboBoxBorder |
|
A class which implements a simple 2 line bevel border. @author paling
Class Fields
Instance Fields
![]() | Show inherited public instance fields | Hide inherited public instance fields
|
function new(?interior:Border = null, ?bevelType:Int = 1, ?highlightOuterColor:ASColor = null, ?highlightInnerColor:ASColor = null, ?shadowOuterColor:ASColor = null, ?shadowInnerColor:ASColor = null, ?thickness:Float = 2): Void
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.
interior | the border in this border |
bevelType | the type of bevel for the border |
highlightOuterColor | the color to use for the bevel outer highlight |
highlightInnerColor | the color to use for the bevel inner highlight |
shadowOuterColor | the color to use for the bevel outer shadow |
shadowInnerColor | the color to use for the bevel inner shadow |
thickness | the thickness of border frame lines, default is 2 |
function getHighlightInnerColor(): ASColor
Returns the inner highlight color of the bevel border. Will return null if no highlight color was specified at instantiation.
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.
c | the component for which the highlight may be derived |
function getHighlightOuterColor(): ASColor
Returns the outer highlight color of the bevel border. Will return null if no highlight color was specified at instantiation.
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.
c | the component for which the highlight may be derived |
function getShadowInnerColor(): ASColor
Returns the inner shadow color of the bevel border. Will return null if no shadow color was specified at instantiation.
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.
c | the component for which the shadow may be derived |
function getShadowOuterColor(): ASColor
Returns the outer shadow color of the bevel border. Will return null if no shadow color was specified at instantiation.
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.
c | the component for which the shadow may be derived |
function getThickness(): Float
Returns the thickness of border frame lines
returns | the thickness of border frame lines |
function setHighlightInnerColor(color:ASColor): Void
Sets new inner highlight color of the bevel border.
function setHighlightOuterColor(color:ASColor): Void
Sets new outer highlight color of the bevel border.
function setThickness(t:Float): Void
Sets the thickness of border frame lines
t | the thickness of border frame lines to set. |