Class: $.ColorFactory
- Inherits:
-
WatchUi.PickerFactory
-
WatchUi.PickerFactory
-
Overview
Factory that controls which colors can be picked
Instance Member Summary collapse
Instance Method Summary collapse
-
getDrawable(index as Lang.Number, selected as Lang.Boolean) as WatchUi.Drawable or Null
Generate a Drawable instance for an item.
-
getIndex(value as Graphics.ColorType) as Lang.Number
Get the index of a color item.
-
getSize() as Lang.Number
Get the number of picker items.
-
getValue(index as Lang.Number) as Lang.Object or Null
Get the value of the item at the given index.
-
initialize(colors as Lang.Array<Graphics.ColorType>)
Constructor.
Instance Attribute Details
var _colorWheel as $.ColorWheel
Instance Method Details
getDrawable(index as Lang.Number, selected as Lang.Boolean) as WatchUi.Drawable or Null
Generate a Drawable instance for an item
getIndex(value as Graphics.ColorType) as Lang.Number
Get the index of a color item
getSize() as Lang.Number
Get the number of picker items
getValue(index as Lang.Number) as Lang.Object or Null
Get the value of the item at the given index
initialize(colors as Lang.Array<Graphics.ColorType>)
Constructor