Package | org.axiis.layouts.scale |
Class | public class LogScale |
Inheritance | LogScale ![]() ![]() ![]() |
Implements | IScale |
Property | Defined By | ||
---|---|---|---|
base : Number
The base of the logarithm used in the scale
| LogScale | ||
![]() | computedAverage : * [read-only]
The average value in the dataProvider. | ContinuousScale | |
![]() | computedMaxValue : * [read-only]
The maximum value in the dataProvider. | AbstractScale | |
![]() | computedMinValue : * [read-only]
The minimum value in the dataProvider. | AbstractScale | |
![]() | computedSum : * [read-only]
The sum of the value in the dataProvider. | ContinuousScale | |
![]() | 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 |
Method | Defined By | ||
---|---|---|---|
LogScale() | LogScale | ||
![]() | invalidate():void
Marks this IScale as needing its minValue and maxValue recomputed. | AbstractScale | |
layoutToValue(layout:*, invert:Boolean = false, clamp:Boolean = false):*
Converts a layout position to a value that would arise in the
space defined by the implementing class. | LogScale | ||
![]() | validate():void
Initiates the computation of minValue and maxValue. | ContinuousScale | |
valueToLayout(value:*, invert:Boolean = false, clamp:Boolean = false):*
Converts a value to a position in layout space. | LogScale |
base | property |
base:Number
[read-write] The base of the logarithm used in the scale
This property can be used as the source for data binding.
public function get base():Number
public function set base(value:Number):void
LogScale | () | Constructor |
public function LogScale()
layoutToValue | () | method |
public function layoutToValue(layout:*, invert:Boolean = false, clamp:Boolean = false):*
Converts a layout position to a value that would arise in the space defined by the implementing class. For example, LinearScale converts a layout position to a Number between minValue and maxValue, whether or not that Number is actually present within the dataProvider. CategoricalScale, on the other hand, will only convert layout positions to values found within the dataProvider.
Parameters
layout:* — layout position to translate into a value.
| |
invert:Boolean (default = false )
| |
clamp:Boolean (default = false )
|
* |
valueToLayout | () | method |
public function valueToLayout(value:*, invert:Boolean = false, clamp:Boolean = false):*
Converts a value to a position in layout space.
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 )
|
* |