BubbleButtonState

Shape
BubbleButtonState

Internal class used to draw a circular bubble shaped button.

Summary
BubbleButtonStateInternal class used to draw a circular bubble shaped button.
Variables
colorBase theme color for the button
sizeDiameter of the button in pixels
Constants
xPosHorizontal position of the button
yPosVertical position of the button
Functions
BubbleButtonStateCreates a button state drawn as a bubble.
disposeRemoves used resources and graphics
drawDraws a circular button with a radial gradient with a highlight offset to simulate a 3D appearance.
addDropShadowAdds a drop shadow filter to the shape
getBitmapFilterConstructs a drop shadow filter

Variables

color

private var color: uint

Base theme color for the button

size

private var size: uint

Diameter of the button in pixels

Constants

xPos

private const xPos: uint

Horizontal position of the button

yPos

private const yPos: uint

Vertical position of the button

Functions

BubbleButtonState

public function BubbleButtonState(bgColor: uint,  
size: uint,  
withDropShadow: Boolean = true,
symbol: uint = 0)

Creates a button state drawn as a bubble.

Parameters

bgColorprimary color of the button; Color.shadow is used to color edges
sizediameter of the button
withDropShadowenhanced 3D appearance with a shadow
symbolgraphic imprinted on the button (default BubbleButton.SYMBOL_NONE)

dispose

public function dispose():void

Removes used resources and graphics

draw

private function draw(symbol: uint):void

Draws a circular button with a radial gradient with a highlight offset to simulate a 3D appearance.

Parameters

symbolgraphic imprinted on the button

addDropShadow

private function addDropShadow(shape: Shape):void

Adds a drop shadow filter to the shape

Parameters

shapeobject on which the filter is applied

getBitmapFilter

private function getBitmapFilter():BitmapFilter

Constructs a drop shadow filter

Returns

the constructed drop shadow filter

private var color: uint
Base theme color for the button
private var size: uint
Diameter of the button in pixels
private const xPos: uint
Horizontal position of the button
private const yPos: uint
Vertical position of the button
public function BubbleButtonState(bgColor: uint,  
size: uint,  
withDropShadow: Boolean = true,
symbol: uint = 0)
Creates a button state drawn as a bubble.
public function dispose():void
Removes used resources and graphics
private function draw(symbol: uint):void
Draws a circular button with a radial gradient with a highlight offset to simulate a 3D appearance.
private function addDropShadow(shape: Shape):void
Adds a drop shadow filter to the shape
private function getBitmapFilter():BitmapFilter
Constructs a drop shadow filter
public static function shadow(color: uint):uint
Convert a color value to its shadow palette variation.
Close