Packageardisia.components.timebarContainer.dataTypes
Classpublic class IntervalMode
InheritanceIntervalMode Inheritance Object

Defines a display mode that the TimebarContainer can use.

Each mode defines how many years, months, days, hours, minutes, and seconds are in the mode.

The time span is additive. In other words, if the "years" value is 1 and the "months" value is 6, each renderer will span 1 year and 6 months.

Also supply a name for each mode to pass to the renderers to provide them with some information as to how to display the date information. For example, if one is displaying a single day per renderer, set the "name" property to "day" and then on the renderer, detect that the mode is "day" and then parse Date objects with the names of the days of the week.



Public Properties
 PropertyDefined By
  days : Number
IntervalMode
  hours : Number
IntervalMode
  minutes : Number
IntervalMode
  months : Number
IntervalMode
  name : String
IntervalMode
  seconds : Number
IntervalMode
  years : int
IntervalMode
Public Methods
 MethodDefined By
  
IntervalMode
  
[static] Return the approximate timestamp.
IntervalMode
Property Detail
daysproperty
public var days:Number

hoursproperty 
public var hours:Number

minutesproperty 
public var minutes:Number

monthsproperty 
public var months:Number

nameproperty 
public var name:String

secondsproperty 
public var seconds:Number

yearsproperty 
public var years:int

Constructor Detail
IntervalMode()Constructor
public function IntervalMode()



Method Detail
getTimestamp()method
public static function getTimestamp(mode:IntervalMode):Number

Return the approximate timestamp. Useful for sorting.

Parameters

mode:IntervalMode — the IntervalMode to return the timestamp for

Returns
Number — Number