Packagecom.ithaca.timeline
Classpublic class Stylesheet
InheritanceStylesheet Inheritance Object

Created to manage colors, obsels skins and other CSS like properties but not really used ; should be merged with the Layout class.

See also

Layout


Public Properties
 PropertyDefined By
  obselsSkinsSelectors : Array
Stylesheet
  renderersSidePadding : Number = 25
[static]
Stylesheet
  ZoomContextInitPercentWidth : Number = 30
[static]
Stylesheet
Public Methods
 MethodDefined By
  
Stylesheet
  
getParameteredSkin(obsel:Obsel, traceline:TraceLine):ObselSkin
Create a ObselSkin from an Obsel and set a stylename according to the obselsSkinsSelectors array defined in the XML timeline descriptor.
Stylesheet
  
[static] Select a color in the "fillColors" array of the TraceLineGroups
Stylesheet
Property Detail
obselsSkinsSelectorsproperty
public var obselsSkinsSelectors:Array

renderersSidePaddingproperty 
public static var renderersSidePadding:Number = 25

ZoomContextInitPercentWidthproperty 
public static var ZoomContextInitPercentWidth:Number = 30

Constructor Detail
Stylesheet()Constructor
public function Stylesheet()



Method Detail
getParameteredSkin()method
public function getParameteredSkin(obsel:Obsel, traceline:TraceLine):ObselSkin

Create a ObselSkin from an Obsel and set a stylename according to the obselsSkinsSelectors array defined in the XML timeline descriptor.

Parameters

obsel:Obsel — The obsel to render
 
traceline:TraceLine — The traceline that contains the Obsel

Returns
ObselSkin — an ObselSkin
getTracelineGroupColor()method 
public static function getTracelineGroupColor(tlg:TraceLineGroup):uint

Select a color in the "fillColors" array of the TraceLineGroups

Parameters

tlg:TraceLineGroup — A TraceLineGroup

Returns
uint — the selected color