Packageardisia.components.colorPicker
Classpublic class ColorPickerRenderer
InheritanceColorPickerRenderer Inheritance spark.components.Group

Draws the color palette using the provided dataProvider. Also handles focused colors via mouse interaction.

Default MXML PropertymxmlContent



Public Properties
 PropertyDefined By
  dataProvider : Array
Uses a flat array.
ColorPickerRenderer
  focusIndex : int
The index in the dataProvider that is currently focused.
ColorPickerRenderer
Protected Methods
 MethodDefined By
  
mouseHandler(event:MouseEvent):void
Handles mouse events on the control.
ColorPickerRenderer
  
Sets the position of the cursor over the palette.
ColorPickerRenderer
Events
 Event Summary Defined By
  Dispatched when a focused color is committed.ColorPickerRenderer
  Dispatched when the focused color in the picker changes on mouse over.ColorPickerRenderer
Property Detail
dataProviderproperty
dataProvider:Array

Uses a flat array. Will not typically populate this property directly.

The default value is null.


Implementation
    public function get dataProvider():Array
    public function set dataProvider(value:Array):void
focusIndexproperty 
focusIndex:int

The index in the dataProvider that is currently focused.

The default value is 0.


Implementation
    public function get focusIndex():int
    public function set focusIndex(value:int):void
Method Detail
mouseHandler()method
protected function mouseHandler(event:MouseEvent):void

Handles mouse events on the control.

Parameters

event:MouseEvent — the MouseEvent that triggered this handler

updateCursorPosition()method 
protected function updateCursorPosition():void

Sets the position of the cursor over the palette.

Event Detail
commitFocusIndex Event
Event Object Type: flash.events.Event
Event.type property = flash.events.Event

Dispatched when a focused color is committed. Use the focusIndex property to determine which color was committed.

focusIndexChange Event  
Event Object Type: ardisia.components.colorPicker.events.ColorPickerEvent
ColorPickerEvent.type property = ardisia.components.colorPicker.events.ColorPickerEvent

Dispatched when the focused color in the picker changes on mouse over.