| Package | org.axiis.layouts.scale |
| Class | public class CategoricalScale |
| Inheritance | CategoricalScale AbstractScale flash.events.EventDispatcher |
| Implements | IScale |
| Property | Defined By | ||
|---|---|---|---|
![]() | computedMaxValue : * [read-only]
The maximum value in the dataProvider. | AbstractScale | |
![]() | computedMinValue : * [read-only]
The minimum value in the dataProvider. | AbstractScale | |
![]() | dataField : String
The name of the property of the Objects in the dataProvider
that should be used when computing min, max, sum, and average values. | AbstractScale | |
![]() | dataProvider : Object
The DataSet, ArrayCollection, Array, XML, etc. | AbstractScale | |
![]() | invalidated : Boolean [read-only]
Indicates that the scale should recalculate it's minimum and maximum
values and layouts the next time either layoutToValue or valueToLayout
is called. | AbstractScale | |
![]() | maxLayout : Number
The maximum layout position. | AbstractScale | |
![]() | maxValue : *
The maximum value allowed in this scale. | AbstractScale | |
![]() | minLayout : Number
The minimum layout position. | AbstractScale | |
![]() | minValue : *
The minimum value allowed in this scale. | AbstractScale | |
| sort : Sort
A sorting method used to determine the order of the objects in the dataProvider
| CategoricalScale | ||
| Method | Defined By | ||
|---|---|---|---|
![]() | invalidate():void
Marks this IScale as needing its minValue and maxValue recomputed. | AbstractScale | |
layoutToIndex(layout:Number):Number
Converts a layout position to the index position of the corresponding
categorical value. | CategoricalScale | ||
layoutToValue(layout:*, invert:Boolean = false, clamp:Boolean = false):*
Converts a layout position to a value from the dataProvider. | CategoricalScale | ||
validate():void
Initiates the computation of minValue and maxValue. | CategoricalScale | ||
valueToLayout(value:*, invert:Boolean = false, clamp:Boolean = false):*
Converts a value to layout-space. | CategoricalScale | ||
| sort | property |
public var sort:SortA sorting method used to determine the order of the objects in the dataProvider
| layoutToIndex | () | method |
public function layoutToIndex(layout:Number):NumberConverts a layout position to the index position of the corresponding categorical value.
Parameters
layout:Number — layout position to translate into a value.
|
Number |
| layoutToValue | () | method |
public function layoutToValue(layout:*, invert:Boolean = false, clamp:Boolean = false):*Converts a layout position to a value from the dataProvider. The layout position is clamped between minLayout and maxLayout before the translation takes place.
Parameters
layout:* — layout position to translate into a value.
| |
invert:Boolean (default = false) | |
clamp:Boolean (default = false) |
* |
| validate | () | method |
override public function validate():voidInitiates the computation of minValue and maxValue.
| valueToLayout | () | method |
public function valueToLayout(value:*, invert:Boolean = false, clamp:Boolean = false):*Converts a value to layout-space. If the value is not represented within the dataProvider, NaN is returned.
Parameters
value:* — The value to be converted into layout space.
| |
invert:Boolean (default = false) — Whether the minValue translates to minLayout (false) or to maxLayout (true).
| |
clamp:Boolean (default = false) |
* |