Packageorg.axiis.layouts.scale
Classpublic class DateTimeScale
InheritanceDateTimeScale Inheritance ContinuousScale Inheritance AbstractScale Inheritance flash.events.EventDispatcher
Implements IScale

A scale that can be used to convert Dates to layout space.



Public Properties
 PropertyDefined By
 InheritedcomputedAverage : *
[read-only] The average value in the dataProvider.
ContinuousScale
 InheritedcomputedMaxValue : *
[read-only] The maximum value in the dataProvider.
AbstractScale
 InheritedcomputedMinValue : *
[read-only] The minimum value in the dataProvider.
AbstractScale
 InheritedcomputedSum : *
[read-only] The sum of the value in the dataProvider.
ContinuousScale
 InheriteddataField : 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
 InheriteddataProvider : Object
The DataSet, ArrayCollection, Array, XML, etc.
AbstractScale
 Inheritedinvalidated : 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
 InheritedmaxLayout : Number
The maximum layout position.
AbstractScale
 InheritedmaxValue : *
The maximum value allowed in this scale.
AbstractScale
 InheritedminLayout : Number
The minimum layout position.
AbstractScale
 InheritedminValue : *
The minimum value allowed in this scale.
AbstractScale
Protected Properties
 PropertyDefined By
 Inheritedcollection : ArrayCollection
AbstractScale
 Inherited_computedMaxValue : *
[write-only]
AbstractScale
 Inherited_computedMinValue : *
[write-only]
AbstractScale
 InheriteduserMaxValue : *
The maximum value as specified by the user.
AbstractScale
 InheriteduserMinValue : *
The minimum value as specified by the user.
AbstractScale
Public Methods
 MethodDefined By
 Inherited
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.
DateTimeScale
  
validate():void
DateTimeScale
  
valueToLayout(value:*, invert:Boolean = false, clamp:Boolean = false):*
Converts a value to a position in layout space.
DateTimeScale
Protected Methods
 MethodDefined By
 Inherited
Returns the maximum value from the dataProvider.
ContinuousScale
 Inherited
Returns the minimum value from the dataProvider.
ContinuousScale
  
DateTimeScale
Events
 Event Summary Defined By
 InheritedDispatched when the data in the becomes invalid and the new min, max, sum, and average need to be computed.AbstractScale
Method Detail
computeSum()method
override protected function computeSum():*

Returns
*
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)

Returns
*
validate()method 
override public function validate():void

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)

Returns
*