| Package | com.degrafa.paint.palette |
| Class | public dynamic class AutoPalette |
| Inheritance | AutoPalette Palette mx.utils.ObjectProxy |
| Subclasses | InterpolatedColorPalette, PresetColorPalette |
| Property | Defined by | ||
|---|---|---|---|
![]() | document : Object
The MXML document that created this object.
| Palette | |
![]() | entries : Array
An array of PaletteEntry objects.
| Palette | |
| entryPrefix : String
The prefix to use for item names so that they can be properly refferenced.
| AutoPalette | ||
![]() | id : String
The identifier used by document to refer to this object.
| Palette | |
![]() | isInitialized : Boolean | Palette | |
![]() | name : String
The name that refers to this object.
| Palette | |
![]() | palette : Palette | Palette | |
![]() | paletteEntries : Dictionary
An dictionary of palette entries.
| Palette | |
| requestedSize : int
The number of entries to be generated.
| AutoPalette | ||
| Property | Defined by | ||
|---|---|---|---|
| currentLength : int = 0 | AutoPalette | ||
| Method | Defined by | ||
|---|---|---|---|
| AutoPalette | |||
![]() |
clear():void
Removes all palette entries.
| Palette | |
![]() |
getItemByIndex(value:int):*
Returns a palette entry item by index.
| Palette | |
![]() |
getItemByName(value:String):*
Returns a palette entry item by name.
| Palette | |
![]() |
getValueByIndex(value:int):*
Returns a palette entry value by index.
| Palette | |
![]() |
getValueByName(value:String):*
Returns a palette entry value by name.
| Palette | |
![]() |
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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
appendItems(value:Array):void
Appends the passed array of values to the palette entries array and dictionary.
| AutoPalette | ||
![]() |
callProperty(name:*, ... rest):*
| Palette | |
|
generatePalette():void
Overriden in subclasses.
| AutoPalette | ||
![]() |
getProperty(name:*):*
| Palette | |
![]() |
setProperty(name:*, value:*):void
| Palette | |
| currentLength | property |
protected var currentLength:int = 0
| entryPrefix | property |
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
| requestedSize | property |
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
| AutoPalette | () | constructor |
public function AutoPalette()
| appendItems | () | method |
protected function appendItems(value:Array):voidAppends the passed array of values to the palette entries array and dictionary.
Parametersvalue:Array |
| generatePalette | () | method |
protected function generatePalette():voidOverriden in subclasses. Does the work required to populate the palette.
| onChange | () | method |
public function onChange(event:PropertyChangeEvent):voidTriggeres the re generation of entry items when internal properties change.
Parametersevent:PropertyChangeEvent |