A class which implements a simple 2 line bevel border.
new 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.
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 |
static public RAISED:Numberstatic public LOWERED:Numberpublic function paintBorderImp(c:Component, g:Graphics, b:Rectangle):VoidDescription copied from DecorateBorder
Override this method in sub-class to draw border on the specified mc.
public function getBorderInsetsImp(c:Component, bounds:Rectangle):InsetsDescription copied from DecorateBorder
You should override this method to count this border's insets.
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.
c | the component for which the highlight may be derived |
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.
c | the component for which the highlight may be derived |
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.
c | the component for which the shadow may be derived |
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.
c | the component for which the shadow may be derived |
public function getHighlightOuterColor():ASColorReturns the outer highlight color of the bevel border. Will return null if no highlight color was specified at instantiation.
public function getHighlightInnerColor():ASColorReturns the inner highlight color of the bevel border. Will return null if no highlight color was specified at instantiation.
public function getShadowInnerColor():ASColorReturns the inner shadow color of the bevel border. Will return null if no shadow color was specified at instantiation.
public function getShadowOuterColor():ASColorReturns the outer shadow color of the bevel border. Will return null if no shadow color was specified at instantiation.