Packagecom.degrafa.paint.palette
Classpublic dynamic class AutoPalette
InheritanceAutoPalette Inheritance Palette Inheritance mx.utils.ObjectProxy
SubclassesInterpolatedColorPalette, PresetColorPalette

Base class for auto palettes not intended to be instanced directly.



Public Properties
 PropertyDefined by
 Inheriteddocument : Object
The MXML document that created this object.
Palette
 Inheritedentries : Array
An array of PaletteEntry objects.
Palette
  entryPrefix : String
The prefix to use for item names so that they can be properly refferenced.
AutoPalette
 Inheritedid : String
The identifier used by document to refer to this object.
Palette
 InheritedisInitialized : Boolean
Palette
 Inheritedname : String
The name that refers to this object.
Palette
 Inheritedpalette : Palette
Palette
 InheritedpaletteEntries : Dictionary
An dictionary of palette entries.
Palette
  requestedSize : int
The number of entries to be generated.
AutoPalette
Protected Properties
 PropertyDefined by
  currentLength : int = 0
AutoPalette
Public Methods
 MethodDefined by
  
AutoPalette
 Inherited
clear():void
Removes all palette entries.
Palette
 Inherited
getItemByIndex(value:int):*
Returns a palette entry item by index.
Palette
 Inherited
getItemByName(value:String):*
Returns a palette entry item by name.
Palette
 Inherited
getValueByIndex(value:int):*
Returns a palette entry value by index.
Palette
 Inherited
getValueByName(value:String):*
Returns a palette entry value by name.
Palette
 Inherited
initialized(document:Object, id:String):void
Called after the implementing object has been created and all component properties specified on the MXML tag have been initialized.
Palette
  
onChange(event:PropertyChangeEvent):void
Triggeres the re generation of entry items when internal properties change.
AutoPalette
Protected Methods
 MethodDefined by
  
appendItems(value:Array):void
Appends the passed array of values to the palette entries array and dictionary.
AutoPalette
 Inherited
callProperty(name:*, ... rest):*
Palette
  
Overriden in subclasses.
AutoPalette
 Inherited
getProperty(name:*):*
Palette
 Inherited
setProperty(name:*, value:*):void
Palette
Events
 EventSummaryDefined by
 Inherited  Palette
 Inherited  Palette
Property detail
currentLengthproperty
protected var currentLength:int = 0
entryPrefixproperty 
entryPrefix:String  [read-write]

The prefix to use for item names so that they can be properly refferenced. If not specified a default value of "pal_" is used. The items can then be retrived via myPalette.pal_1

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

Implementation
    public function get entryPrefix():String
    public function set entryPrefix(value:String):void
requestedSizeproperty 
requestedSize:int  [read-write]

The number of entries to be generated. Only used with AutoPalettes. If not specified the default value of 12 is used.

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

Implementation
    public function get requestedSize():int
    public function set requestedSize(value:int):void
Constructor detail
AutoPalette()constructor
public function AutoPalette()
Method detail
appendItems()method
protected function appendItems(value:Array):void

Appends the passed array of values to the palette entries array and dictionary.

Parameters
value:Array
generatePalette()method 
protected function generatePalette():void

Overriden in subclasses. Does the work required to populate the palette.

onChange()method 
public function onChange(event:PropertyChangeEvent):void

Triggeres the re generation of entry items when internal properties change.

Parameters
event:PropertyChangeEvent