Class GlimpsePinchGestureEvent
- java.lang.Object
-
- com.metsci.glimpse.core.event.touch.GlimpseGestureEvent
-
- com.metsci.glimpse.core.event.touch.GlimpsePinchGestureEvent
-
public class GlimpsePinchGestureEvent extends GlimpseGestureEvent
-
-
Constructor Summary
Constructors Constructor Description GlimpsePinchGestureEvent(String source, GlimpseTargetStack stack, int centerX, int centerY, float scale, float angle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetAngle()The angle of the pinch in MATH RADIANS.Axis1DgetAxis1D()Axis2DgetAxis2D()floatgetScale()The ratio of the current pinch distance to the start pinch distance.StringtoString()GlimpsePinchGestureEventwithNewTarget(GlimpseTargetStack targetStack, int x, int y)-
Methods inherited from class com.metsci.glimpse.core.event.touch.GlimpseGestureEvent
getSource, getTargetStack, getX, getY, isHandled, setHandled
-
-
-
-
Constructor Detail
-
GlimpsePinchGestureEvent
public GlimpsePinchGestureEvent(String source, GlimpseTargetStack stack, int centerX, int centerY, float scale, float angle)
-
-
Method Detail
-
getScale
public float getScale()
The ratio of the current pinch distance to the start pinch distance.
-
getAngle
public float getAngle()
The angle of the pinch in MATH RADIANS.
-
getAxis1D
public Axis1D getAxis1D()
-
getAxis2D
public Axis2D getAxis2D()
-
withNewTarget
public GlimpsePinchGestureEvent withNewTarget(GlimpseTargetStack targetStack, int x, int y)
- Overrides:
withNewTargetin classGlimpseGestureEvent
-
-