Packageorg.axiis.paint
Classpublic class LayoutPalette
InheritanceLayoutPalette Inheritance flash.events.EventDispatcher

LayoutPalette will generates an Array of colors for a Layout. By default, LayoutPalette uses the Flex 3 Halo color scheme, but this can be overridden using the colors property. As the currentIndex of the Layout driving this palette changes, the currentColor property is updated to the color at the currentIndex in the array. If the layout needs more colors than the array contains, the colors wraps around the array using the mod operator.



Public Properties
 PropertyDefined By
  colors : Array
The gradient of colors produced by this LayoutPalette.
LayoutPalette
  currentColor : Number
[read-only] The color at index layout.currentIndex in the colors Array.
LayoutPalette
  layout : AbstractLayout
[read-only] The Layout this LayoutPalette should use to determine how many colors to produce and to determine which color is the "current" one.
LayoutPalette
Public Methods
 MethodDefined By
  
Constructor.
LayoutPalette
Property Detail
colorsproperty
colors:Array  [read-write]

The gradient of colors produced by this LayoutPalette.

This property can be used as the source for data binding.


Implementation
    public function get colors():Array
    public function set colors(value:Array):void
currentColorproperty 
currentColor:Number  [read-only]

The color at index layout.currentIndex in the colors Array.

This property can be used as the source for data binding.


Implementation
    public function get currentColor():Number
layoutproperty 
layout:AbstractLayout  [read-only]

The Layout this LayoutPalette should use to determine how many colors to produce and to determine which color is the "current" one.

This property can be used as the source for data binding.


Implementation
    public function get layout():AbstractLayout
Constructor Detail
LayoutPalette()Constructor
public function LayoutPalette()

Constructor.