Shape |
BubbleButtonState |
Internal class used to draw a circular bubble shaped button.
BubbleButtonState | Internal class used to draw a circular bubble shaped button. |
Variables | |
color | Base theme color for the button |
size | Diameter of the button in pixels |
Constants | |
xPos | Horizontal position of the button |
yPos | Vertical position of the button |
Functions | |
BubbleButtonState | Creates a button state drawn as a bubble. |
dispose | Removes used resources and graphics |
draw | Draws a circular button with a radial gradient with a highlight offset to simulate a 3D appearance. |
addDropShadow | Adds a drop shadow filter to the shape |
getBitmapFilter | Constructs a drop shadow filter |
public function BubbleButtonState( bgColor: uint, size: uint, withDropShadow: Boolean = true, symbol: uint = 0 )
Creates a button state drawn as a bubble.
bgColor | primary color of the button; Color.shadow is used to color edges |
size | diameter of the button |
withDropShadow | enhanced 3D appearance with a shadow |
symbol | graphic imprinted on the button (default BubbleButton.SYMBOL_NONE) |
Base theme color for the button
private var color: uint
Diameter of the button in pixels
private var size: uint
Horizontal position of the button
private const xPos: uint
Vertical position of the button
private const yPos: uint
Creates a button state drawn as a bubble.
public function BubbleButtonState( bgColor: uint, size: uint, withDropShadow: Boolean = true, symbol: uint = 0 )
Removes used resources and graphics
public function dispose():void
Draws a circular button with a radial gradient with a highlight offset to simulate a 3D appearance.
private function draw( symbol: uint ):void
Adds a drop shadow filter to the shape
private function addDropShadow( shape: Shape ):void
Constructs a drop shadow filter
private function getBitmapFilter():BitmapFilter
Convert a color value to its shadow palette variation.
public static function shadow( color: uint ):uint