com.metsci.glimpse.axis.listener.touch
Class AxisGestureListener

java.lang.Object
  extended by com.metsci.glimpse.axis.listener.touch.AxisGestureListener
All Implemented Interfaces:
GlimpseGestureListener
Direct Known Subclasses:
AxisGestureListener1D, AxisGestureListener2D

public abstract class AxisGestureListener
extends java.lang.Object
implements GlimpseGestureListener

A Glimpse gesture listener which defines the default way that axes are updated in response to high level gesture events (like those from a touch screen tablet device).

Author:
osborn

Field Summary
 double zoomConstant
           
 
Constructor Summary
AxisGestureListener()
           
 
Method Summary
 void addAxisGestureListener(Touchable touchable)
           
 void move(Axis1D axis, boolean horizontal, int posX, int posY)
           
 void pan(Axis1D axis, boolean horizontal, float dX, float dY)
           
 void setAllowPan(boolean b)
           
 void setAllowSelectionLock(boolean b)
           
 void setAllowSelectionZoom(boolean b)
           
 void setAllowZoom(boolean b)
           
 void toggleSelectionLock(Axis1D axis)
           
 void zoom(Axis1D axis, boolean horizontal, float posX, float posY, float scale)
           
 void zoomSelection(Axis1D axis, boolean horizontal, int zoomIncrements, int posX, int posY)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.metsci.glimpse.event.touch.GlimpseGestureListener
longPressDetected, panDetected, pinchDetected, swipeDetected, tapDetected
 

Field Detail

zoomConstant

public final double zoomConstant
See Also:
Constant Field Values
Constructor Detail

AxisGestureListener

public AxisGestureListener()
Method Detail

addAxisGestureListener

public void addAxisGestureListener(Touchable touchable)

setAllowSelectionLock

public void setAllowSelectionLock(boolean b)

setAllowSelectionZoom

public void setAllowSelectionZoom(boolean b)

setAllowZoom

public void setAllowZoom(boolean b)

setAllowPan

public void setAllowPan(boolean b)

pan

public void pan(Axis1D axis,
                boolean horizontal,
                float dX,
                float dY)

zoom

public void zoom(Axis1D axis,
                 boolean horizontal,
                 float posX,
                 float posY,
                 float scale)

zoomSelection

public void zoomSelection(Axis1D axis,
                          boolean horizontal,
                          int zoomIncrements,
                          int posX,
                          int posY)

move

public void move(Axis1D axis,
                 boolean horizontal,
                 int posX,
                 int posY)

toggleSelectionLock

public void toggleSelectionLock(Axis1D axis)


Copyright © 2012 Metron, Inc.. All Rights Reserved.