|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.achartengine.tools.AbstractTool
org.achartengine.tools.Pan
public class Pan
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 |
---|
public Pan(AbstractChart chart)
chart
- the XY chartMethod Detail |
---|
public void apply(float oldX, float oldY, float newX, float newY)
oldX
- the previous location on X axisoldY
- the previous location on Y axisnewX
- the current location on X axisnewY
- the current location on the Y axispublic void addPanListener(PanListener listener)
listener
- pan listenerpublic void removePanListener(PanListener listener)
listener
- pan listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |