org.achartengine.tools
Class Pan

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

public class Pan
extends AbstractTool

The pan tool.


Field Summary
 
Fields inherited from class org.achartengine.tools.AbstractTool
mChart, mRenderer
 
Constructor Summary
Pan(AbstractChart chart)
          Builds and instance of the pan tool.
 
Method Summary
 void addPanListener(PanListener listener)
          Adds a new pan listener.
 void apply(float oldX, float oldY, float newX, float newY)
          Apply the tool.
 void removePanListener(PanListener listener)
          Removes a pan listener.
 
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

Pan

public Pan(AbstractChart chart)
Builds and instance of the pan tool.

Parameters:
chart - the XY chart
Method Detail

apply

public void apply(float oldX,
                  float oldY,
                  float newX,
                  float newY)
Apply the tool.

Parameters:
oldX - the previous location on X axis
oldY - the previous location on Y axis
newX - the current location on X axis
newY - the current location on the Y axis

addPanListener

public void addPanListener(PanListener listener)
Adds a new pan listener.

Parameters:
listener - pan listener

removePanListener

public void removePanListener(PanListener listener)
Removes a pan listener.

Parameters:
listener - pan listener


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