| Package | org.axiis.paint |
| Class | public class LayoutAutoPalette |
| Inheritance | LayoutAutoPalette flash.events.EventDispatcher |
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.
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor. | LayoutAutoPalette | ||
| autoInterpolate | property |
public var autoInterpolate:Boolean = trueA flag that, if true, instructs the LayoutAutoPalette to automatically create a palette based on the colorFrom and colorTo properties.
| colorFrom | property |
colorFrom:Number [read-write] The first color in the palette.
public function get colorFrom():Number public function set colorFrom(value:Number):void| colors | property |
colors:Array [read-write] The gradient of colors produced by this LayoutPalette.
This property can be used as the source for data binding.
public function get colors():Array public function set colors(value:Array):void| colorTo | property |
colorTo:Number [read-write] public function get colorTo():Number public function set colorTo(value:Number):void| currentColor | property |
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.
public function get currentColor():Number| layout | property |
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.
public function get layout():AbstractLayout| paletteColors | property |
paletteColors:Array [write-only] used to set multiple color stops for palette generation will override colorTo/From
public function set paletteColors(value:Array):void| LayoutAutoPalette | () | Constructor |
public function LayoutAutoPalette()Constructor.