Class org.aswing.border.BevelBorder

Description

A class which implements a simple 2 line bevel border.

Field Index

LOWERED, RAISED

Method Index

new BevelBorder()
getBevelType(), getBorderInsetsImp(), getHighlightInnerColor(), getHighlightInnerColorWith(), getHighlightOuterColor(), getHighlightOuterColorWith(), getShadowInnerColor(), getShadowInnerColorWith(), getShadowOuterColor(), getShadowOuterColorWith(), paintBorderImp()

Inherited from DecorateBorder

Constructor Detail

BevelBorder

public function BevelBorder(interior:Border, bevelType:Number, highlightOuterColor:ASColor, highlightInnerColor:ASColor, shadowOuterColor:ASColor, shadowInnerColor:ASColor)

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

interiorthe border in this border
bevelTypethe type of bevel for the border
highlightOuterColorthe color to use for the bevel outer highlight
highlightInnerColorthe color to use for the bevel inner highlight
shadowOuterColorthe color to use for the bevel outer shadow
shadowInnerColorthe color to use for the bevel inner shadow

Field Detail

RAISED

static public RAISED:Number
Raised bevel type.

LOWERED

static public LOWERED:Number
Lowered bevel type.

Method Detail

paintBorderImp

public function paintBorderImp(c:Component, g:Graphics, b:Rectangle):Void

Description copied from DecorateBorder

Override this method in sub-class to draw border on the specified mc.

Overrides

paintBorderImp() in org.aswing.border.DecorateBorder

getBorderInsetsImp

public function getBorderInsetsImp(c:Component, bounds:Rectangle):Insets

Description copied from DecorateBorder

You should override this method to count this border's insets.

Overrides

getBorderInsetsImp() in org.aswing.border.DecorateBorder

getHighlightOuterColorWith

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

cthe component for which the highlight may be derived

getHighlightInnerColorWith

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

cthe component for which the highlight may be derived

getShadowInnerColorWith

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

cthe component for which the shadow may be derived

getShadowOuterColorWith

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

cthe component for which the shadow may be derived

getHighlightOuterColor

public function getHighlightOuterColor():ASColor

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

getHighlightInnerColor

public function getHighlightInnerColor():ASColor

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

getShadowInnerColor

public function getShadowInnerColor():ASColor

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

getShadowOuterColor

public function getShadowOuterColor():ASColor

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

getBevelType

public function getBevelType():Number

Returns the type of the bevel border.