| Package | flare.vis.operator.encoder |
| Class | public class SizeEncoder |
| Inheritance | SizeEncoder Encoder Operator |
DataSprite.size property.
| Property | Defined by | ||
|---|---|---|---|
![]() | enabled : Boolean Indicates if the operator is enabled or disabled.
| Operator | |
![]() | filter : Function Boolean function indicating which items to process.
| Encoder | |
![]() | group : String The name of the data group for which to compute the encoding.
| Encoder | |
| palette : Palette
The palette used to map scale values to visual values.
| SizeEncoder | ||
![]() | parameters : Object
Sets parameter values for this operator.
| Operator | |
![]() | scale : ScaleBinding
A scale binding to the source data.
| Encoder | |
| sizes : SizePalette
[read-only] The palette as a SizePalette instance.
| SizeEncoder | ||
![]() | source : String The source property.
| Encoder | |
![]() | target : String The target property.
| Encoder | |
![]() | visualization : Visualization
The visualization processed by this operator.
| Operator | |
| Method | Defined by | ||
|---|---|---|---|
|
SizeEncoder(source:String = null, group:String, palette:SizePalette = null)
Creates a new SizeEncoder.
| SizeEncoder | ||
![]() |
applyParameters(op:IOperator, params:Object):void
[static]
Static method that applies parameter settings to an operator.
| Operator | |
![]() |
operate(t:Transitioner = null):void
Performs an operation over the contents of a visualization.
| Encoder | |
![]() |
setup():void
Setup method invoked whenever this operator's visualization
property is set.
| Encoder | |
| Method | Defined by | ||
|---|---|---|---|
|
encode(val:Object):*
Computes an encoding for the input value.
| SizeEncoder | ||
| palette | property |
palette:Palette [read-write]The palette used to map scale values to visual values.
Implementation public function get palette():Palette
public function set palette(value:Palette):void
| sizes | property |
sizes:SizePalette [read-only]The palette as a SizePalette instance.
Implementation public function get sizes():SizePalette
| SizeEncoder | () | constructor |
public function SizeEncoder(source:String = null, group:String, palette:SizePalette = null)
Creates a new SizeEncoder. By default, the scale type is set to
a quantile scale grouped into 5 bins. Adjust the values of the
scale property to change these defaults.
source:String (default = null) — the source property
|
|
group:String — the data group to process
|
|
palette:SizePalette (default = null) — the size palette to use. If null, a default size
palette will be used.
|
| encode | () | method |
protected override function encode(val:Object):*Computes an encoding for the input value.
Parametersval:Object — a data value to encode
|
* — the encoded visual value
|