Package | org.axiis.layouts.scale |
Class | public class LinearScale |
Inheritance | LinearScale ![]() ![]() ![]() |
Implements | IScale |
Method | Defined By | ||
---|---|---|---|
LinearScale | |||
![]() | invalidate():void
Marks this IScale as needing its minValue and maxValue recomputed. | AbstractScale | |
layoutToValue(layout:*, invert:Boolean = false, clamp:Boolean = true):*
Converts a layout position to a value that would arise in the
space defined by the implementing class. | LinearScale | ||
![]() | validate():void
Initiates the computation of minValue and maxValue. | ContinuousScale | |
valueToLayout(value:*, invert:Boolean = false, clamp:Boolean = true):*
Converts a value to a position in layout space. | LinearScale |
LinearScale | () | Constructor |
public function LinearScale()
layoutToValue | () | method |
public function layoutToValue(layout:*, invert:Boolean = false, clamp:Boolean = true):*
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 = true )
|
* |
valueToLayout | () | method |
public function valueToLayout(value:*, invert:Boolean = false, clamp:Boolean = true):*
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 = true )
|
* |