Packagecom.iwobanas.charts
Classpublic class ScrollableAxisRenderer
InheritanceScrollableAxisRenderer Inheritance mx.charts.AxisRenderer

The ScrollableAxisRenderer class enables scrolling and zooming the chart (depreciated).

This class is depreciated! Use ChartScroller component instead.

Scrolling is done by dragging the axis with mouse and moving. Zooming is done by moving mouse wheel over the axis. Both scrolling and zooming is done by setting minimum and maximum properties of corresponding axis.

ScrollableAxisRenderer is compatible with LinearAxis and DateTimeAxis.

See also

com.iwobanas.charts.ChartScroller


Public Properties
 PropertyDefined by
  zoomSpeed : Number = 1
Relative speed of zooming with mouse wheel.
ScrollableAxisRenderer
Public Methods
 MethodDefined by
  
Constructor.
ScrollableAxisRenderer
Protected Methods
 MethodDefined by
  
endDrag():void
End axis dragging.
ScrollableAxisRenderer
  
getRelativePos(localPos:Point):Number
Maps the given point in local coordinates to the position along the axis, with 0 representing the minimum bound of the axis, and 1 the maximum If the point exceeds bounds of the axis returned value may be greater than 1 or less than 0.
ScrollableAxisRenderer
Property detail
zoomSpeedproperty
public var zoomSpeed:Number = 1

Relative speed of zooming with mouse wheel.

Increasing zoomSpeed will lead to more dynamic zooming i.e. the same move to mouse wheel will cause bigger change to the chart. Decreasing will give opposite effect.

The default value is 1.

Constructor detail
ScrollableAxisRenderer()constructor
public function ScrollableAxisRenderer()

Constructor.

Method detail
endDrag()method
protected function endDrag():void

End axis dragging.

getRelativePos()method 
protected function getRelativePos(localPos:Point):Number

Maps the given point in local coordinates to the position along the axis, with 0 representing the minimum bound of the axis, and 1 the maximum If the point exceeds bounds of the axis returned value may be greater than 1 or less than 0.

Parameters
localPos:Point — point to be mapped in local coordinates

Returns
Number — position along the axis