com.supermap.ar.areffect.component
Class PanGestureController
- java.lang.Object
-
- com.supermap.ar.areffect.component.PanGestureController
-
public class PanGestureController extends java.lang.Object
View panning controller
-
-
Constructor Summary
Constructors Constructor and Description PanGestureController(android.view.View view)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description android.graphics.Point
getCurrentPoint()
Gets the position of the left-top corner of the current viewfloat
getScale()
Gets the aspect ration of the current viewboolean
isEnabled()
Determines whether it is enabledPanGestureController
setCurrentPoint(android.graphics.Point point)
Sets the position of the left-top cornervoid
setEnabled(boolean enabled)
Sets the enabled statusPanGestureController
setScale(float sc)
Sets scalevoid
updateTouchEvent(android.view.MotionEvent event)
Updates the touching event
-
-
-
Constructor Detail
-
PanGestureController
public PanGestureController(android.view.View view)
The constructor.- Parameters:
view
-
-
-
Method Detail
-
getCurrentPoint
public android.graphics.Point getCurrentPoint()
Gets the position of the left-top corner of the current view- Returns:
-
setCurrentPoint
public PanGestureController setCurrentPoint(android.graphics.Point point)
Sets the position of the left-top corner- Parameters:
point
- the position of the left-top corner- Returns:
- PanGestureController
-
getScale
public float getScale()
Gets the aspect ration of the current view- Returns:
-
setScale
public PanGestureController setScale(float sc)
Sets scale- Parameters:
sc
-- Returns:
- PanGestureController
-
updateTouchEvent
public void updateTouchEvent(android.view.MotionEvent event)
Updates the touching event- Parameters:
event
-
-
isEnabled
public boolean isEnabled()
Determines whether it is enabled- Returns:
-
setEnabled
public void setEnabled(boolean enabled)
Sets the enabled status- Parameters:
enabled
-
-
-