public class GlobeGestureHandler
extends java.lang.Object
This is used by the GlobeController to deal with gestures on Android. If you want to mess with this, be sure to subclass the MaplyController and create your own subclass of this.
Modifier and Type | Field and Description |
---|---|
boolean |
allowRotate |
boolean |
allowTilt |
Constructor and Description |
---|
GlobeGestureHandler(GlobeController inControl,
android.view.View inView) |
Modifier and Type | Method and Description |
---|---|
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event) |
void |
setAutoRotate(float autoRotateInterval,
float autoRotateDegrees) |
void |
setZoomLimits(double inMin,
double inMax) |
void |
shutdown() |
static boolean |
withinBounds(GlobeView globeView,
Point2d frameSize,
Point3d newPos)
Check that a given position will be within the given bounds.
|
public GlobeGestureHandler(GlobeController inControl, android.view.View inView)
public void shutdown()
public void setAutoRotate(float autoRotateInterval, float autoRotateDegrees)
public void setZoomLimits(double inMin, double inMax)
public static boolean withinBounds(GlobeView globeView, Point2d frameSize, Point3d newPos)
newPos
- Position we're to check.public boolean onTouch(android.view.View v, android.view.MotionEvent event)