Package | com.iwobanas.charts |
Class | public class ScrollableAxisRenderer |
Inheritance | ScrollableAxisRenderer ![]() |
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
Property | Defined by | ||
---|---|---|---|
zoomSpeed : Number = 1
Relative speed of zooming with mouse wheel.
| ScrollableAxisRenderer |
Method | Defined by | ||
---|---|---|---|
Constructor.
| ScrollableAxisRenderer |
Method | Defined 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 |
zoomSpeed | property |
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
.
ScrollableAxisRenderer | () | constructor |
public function ScrollableAxisRenderer()
Constructor.
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.
ParameterslocalPos:Point — point to be mapped in local coordinates
|
Number — position along the axis
|