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
 
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()
          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
 

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()
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.