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 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 -