| Package | flare.util.palette |
| Class | public class ShapePalette |
| Inheritance | ShapePalette Palette |
See also
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new, empty ShapePalette.
| ShapePalette | ||
|
addShape(shape:String):void
Adds a shape to this ShapePalette.
| ShapePalette | ||
|
[static]
Returns a default shape palette instance.
| ShapePalette | ||
|
getShape(idx:uint):String
Gets the shape at the given index into the palette.
| ShapePalette | ||
![]() |
getValue(f:Number):Object
Retrieves the palette value corresponding to the input interpolation
fraction.
| Palette | |
|
setShape(idx:uint, shape:String):void
Sets the shape at the given index into the palette.
| ShapePalette | ||
| ShapePalette | () | constructor |
public function ShapePalette()Creates a new, empty ShapePalette.
| addShape | () | method |
public function addShape(shape:String):voidAdds a shape to this ShapePalette.
Parametersshape:String — the name of the shape. This name should be registered
with a drawing function using the
flare.vis.util.graphics.Shapes class.
|
| defaultPalette | () | method |
public static function defaultPalette():ShapePaletteReturns a default shape palette instance. The default palette consists of (in order): circle, square, cross, "x", diamond, down-triangle, up-triangle, left-triangle, and right-triangle shapes.
ReturnsShapePalette —
the default shape palette
|
| getShape | () | method |
public function getShape(idx:uint):StringGets the shape at the given index into the palette.
Parametersidx:uint — the index of the shape
|
String — the name of the shape
|
| setShape | () | method |
public function setShape(idx:uint, shape:String):voidSets the shape at the given index into the palette.
Parametersidx:uint — the index of the shape
|
|
shape:String — the name of the shape. This name should be registered
with a drawing function using the
flare.vis.util.graphics.Shapes class.
|