Packagecom.flexicious.skins.visualization
Interfacepublic interface IGaugeSkin
Implementors GaugeSkin, HorizontalLinearGaugeSkin, HorizontalSemiCircleGaugeSkin, TinyHorizontalBulletGaugeSkin, TinyVerticalBulletGaugeSkin, TrafficLightSkin, TreeMapLegendGaugeSkin, VerticalLinearGaugeSkin, VerticalSemiCircleGaugeSkin



Public Methods
 MethodDefined By
  
drawRanges():void
This method draws the ranges.
IGaugeSkin
  
drawTicks():void
This method draws the ticks.
IGaugeSkin
  
showValue():void
This method animates the associated gauge control to display the current gauge value.
IGaugeSkin
Method Detail
drawRanges()method
public function drawRanges():void

This method draws the ranges. Iterates through the array of ranges, and on basis of what kind of a visual we have, draws the ranges. In circular gauge and semicrcle gauge skins, we draw arcs. In rectangular gauge, we draw horizontal linear bars. In the traffic lights, we draw the traffic lights. In the thermometer, we draw vertical bars.

drawTicks()method 
public function drawTicks():void

This method draws the ticks. On basis of the various tickMajorand tickMinorproperties on the associated gauge control, draws the ticks. In circular gauge and semicrcle gauge skins, we create labels and position them on the circumference of the range arc. We draw lines on basis of the tickffset and tickength parameters and position them on the circumference of the range arc. In rectangular gauge (and chart axes), we draw the labels and the ticks along the horizontal linear range bars. In rectangular gauge (and chart axes), we draw the labels and the ticks along the veritcal linear range bars. In the traffic lights, we do not draw any ticks, so this method is blank.

showValue()method 
public function showValue():void

This method animates the associated gauge control to display the current gauge value. Like other methods of this interface, implementation of this method is skin specific and can be customized. In the gauge controls, we animate the rotation of the needle from its current position (or the baseline position) to the current gauge value. In the rectangular gauge, we move the pointer along the horizontal axis to the current gauge value In the thermometer gauge, we move the pointer along the vertical axis to the current gauge value. In the traffic light gauge, we animate the traffic lights so the current traffic light appears bright and the other traffic lights appear dark.