Packageorg.axiis.paint
Classpublic class LayoutAutoPalette
InheritanceLayoutAutoPalette Inheritance flash.events.EventDispatcher

LayoutPalette will generate an Array of colors based on a Layout. The produced colors will be equally distributed between two given anchor colors and will contain x values where x is the number of objects in the Layout's dataProvider. As the Layout renders and its currentIndex property is incremented, the LayoutPalette's currentColor will be incremented as well. Binding on the currentColor allows you vary the color of a fill or stroke used in the Layout's drawingGeometries as the Layout renders.



Public Properties
 PropertyDefined By
  autoInterpolate : Boolean = true
A flag that, if true, instructs the LayoutAutoPalette to automatically create a palette based on the colorFrom and colorTo properties.
LayoutAutoPalette
  colorFrom : Number
The first color in the palette.
LayoutAutoPalette
  colors : Array
The gradient of colors produced by this LayoutPalette.
LayoutAutoPalette
  colorTo : Number
LayoutAutoPalette
  currentColor : Number
[read-only] The color at index layout.currentIndex in the colors Array.
LayoutAutoPalette
  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.
LayoutAutoPalette
  paletteColors : Array
[write-only] used to set multiple color stops for palette generation will override colorTo/From
LayoutAutoPalette
Public Methods
 MethodDefined By
  
Constructor.
LayoutAutoPalette
Property Detail
autoInterpolateproperty
public var autoInterpolate:Boolean = true

A flag that, if true, instructs the LayoutAutoPalette to automatically create a palette based on the colorFrom and colorTo properties.

colorFromproperty 
colorFrom:Number  [read-write]

The first color in the palette.


Implementation
    public function get colorFrom():Number
    public function set colorFrom(value:Number):void
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
colorToproperty 
colorTo:Number  [read-write]


Implementation
    public function get colorTo():Number
    public function set colorTo(value:Number):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
paletteColorsproperty 
paletteColors:Array  [write-only]

used to set multiple color stops for palette generation will override colorTo/From


Implementation
    public function set paletteColors(value:Array):void
Constructor Detail
LayoutAutoPalette()Constructor
public function LayoutAutoPalette()

Constructor.