Packagecom.degrafa.paint.palette
Classpublic dynamic class PresetColorPalette
InheritancePresetColorPalette Inheritance AutoPalette Inheritance Palette Inheritance mx.utils.ObjectProxy

A color palette that auto generates one of 3 presets cool, hot or grey.



Public Properties
 PropertyDefined by
 Inheriteddocument : Object
The MXML document that created this object.
Palette
 Inheritedentries : Array
An array of PaletteEntry objects.
Palette
 InheritedentryPrefix : 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
 InheritedrequestedSize : int
The number of entries to be generated.
AutoPalette
  type : String
The type of color space to use one of cool, hot or grey.
PresetColorPalette
Protected Properties
 PropertyDefined by
 InheritedcurrentLength : int = 0
AutoPalette
Public Methods
 MethodDefined by
  
PresetColorPalette
 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
 Inherited
onChange(event:PropertyChangeEvent):void
Triggeres the re generation of entry items when internal properties change.
AutoPalette
Protected Methods
 MethodDefined by
 Inherited
appendItems(value:Array):void
Appends the passed array of values to the palette entries array and dictionary.
AutoPalette
 Inherited
callProperty(name:*, ... rest):*
Palette
  
Generates the entries for this palette.
PresetColorPalette
 Inherited
getProperty(name:*):*
Palette
 Inherited
setProperty(name:*, value:*):void
Palette
Events
 EventSummaryDefined by
 Inherited  Palette
 Inherited  Palette
Property detail
typeproperty
type:String  [read-write]

The type of color space to use one of cool, hot or grey.

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

Implementation
    public function get type():String
    public function set type(value:String):void
Constructor detail
PresetColorPalette()constructor
public function PresetColorPalette()
Method detail
generatePalette()method
protected override function generatePalette():void

Generates the entries for this palette.