org.achartengine.tools
Class Zoom

java.lang.Object
  extended by org.achartengine.tools.AbstractTool
      extended by org.achartengine.tools.Zoom

public class Zoom
extends AbstractTool

The zoom tool.


Field Summary
static int ZOOM_AXIS_X
          Zoom on X axis independently
static int ZOOM_AXIS_XY
          Zoom on X axis and Y axis
static int ZOOM_AXIS_Y
          Zoom on Y axis independently
 
Fields inherited from class org.achartengine.tools.AbstractTool
mChart, mRenderer
 
Constructor Summary
Zoom(AbstractChart chart, boolean in, float rate)
          Builds the zoom tool.
 
Method Summary
 void addZoomListener(ZoomListener listener)
          Adds a new zoom listener.
 void apply(int zoom_axis)
          Apply the zoom.
 void notifyZoomResetListeners()
          Notify the zoom listeners about a zoom reset.
 void removeZoomListener(ZoomListener listener)
          Removes a zoom listener.
 void setZoomRate(float rate)
          Sets the zoom rate.
 
Methods inherited from class org.achartengine.tools.AbstractTool
checkRange, getRange, setXRange, setYRange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZOOM_AXIS_XY

public static final int ZOOM_AXIS_XY
Zoom on X axis and Y axis

See Also:
Constant Field Values

ZOOM_AXIS_X

public static final int ZOOM_AXIS_X
Zoom on X axis independently

See Also:
Constant Field Values

ZOOM_AXIS_Y

public static final int ZOOM_AXIS_Y
Zoom on Y axis independently

See Also:
Constant Field Values
Constructor Detail

Zoom

public Zoom(AbstractChart chart,
            boolean in,
            float rate)
Builds the zoom tool.

Parameters:
chart - the chart
in - zoom in or out
rate - the zoom rate
Method Detail

setZoomRate

public void setZoomRate(float rate)
Sets the zoom rate.

Parameters:
rate -

apply

public void apply(int zoom_axis)
Apply the zoom.


notifyZoomResetListeners

public void notifyZoomResetListeners()
Notify the zoom listeners about a zoom reset.


addZoomListener

public void addZoomListener(ZoomListener listener)
Adds a new zoom listener.

Parameters:
listener - zoom listener

removeZoomListener

public void removeZoomListener(ZoomListener listener)
Removes a zoom listener.

Parameters:
listener - zoom listener


Copyright © 2009 - 2011 4ViewSoft. All Rights Reserved.