com.hp.lft.sdk.mobile

Class PinchArgs

  • java.lang.Object
    • com.hp.lft.sdk.mobile.PinchArgs


  • public class PinchArgs
    extends java.lang.Object
    Arguments that define additional behavior for Pinch operations.
    This class can be initialized using the builder pattern.
    • Constructor Summary

      Constructor and Description
      PinchArgs()
      Initializes a new instance of the PinchArgs class with default arguments (pinch the center of the object).
    • Method Summary

      Modifier and TypeMethod and Description
      java.lang.StringgetGesture()
      Returns the gesture class designed by the mobile application developer to handle this gesture on this object.
      LocationgetLocation()
      Returns the location to perform the pinch operation.
      java.lang.DoublegetVelocity()
      Returns the speed at which to perform the pinch gesture.
      PinchArgssetGesture(java.lang.String gesture)
      Sets the gesture class designed by the mobile application developer to handle this gesture on this object.
      PinchArgssetLocation(Location location)
      Sets the location to perform the pinch operation.
      PinchArgssetVelocity(java.lang.Double velocity)
      Sets the speed at which to perform the pinch gesture.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PinchArgs

        public PinchArgs()
        Initializes a new instance of the PinchArgs class with default arguments (pinch the center of the object).
    • Method Detail

      • getGesture

        public java.lang.String getGesture()
        Returns the gesture class designed by the mobile application developer to handle this gesture on this object. (iOS Only)

        Needed only if the application developer overrode the default iOS gesture class.
        Returns:
        the gesture class designed by the mobile application developer.
      • setGesture

        public PinchArgs setGesture(java.lang.String gesture)
        Sets the gesture class designed by the mobile application developer to handle this gesture on this object. (iOS Only)

        Needed only if the application developer overrode the default iOS gesture class.
        Parameters:
        gesture - the gesture class designed by the mobile application developer.
        Returns:
        the PinchArgs instance with the updated state (builder pattern).
      • getVelocity

        public java.lang.Double getVelocity()
        Returns the speed at which to perform the pinch gesture. This number specifies the scale factor per second, meaning the ratio between the touch point distance at one second, and the touch point distance one second later.
        For example, if performing a pinch from 6 cm to 3 cm (0.5 scale) takes 2 seconds, then the velocity is 0.25.
        Returns:
        the speed at which to perform the pinch gesture.
      • setVelocity

        public PinchArgs setVelocity(java.lang.Double velocity)
        Sets the speed at which to perform the pinch gesture. This number specifies the scale factor per second, meaning the ratio between the touch point distance at one second, and the touch point distance one second later.
        For example, if performing a pinch from 6 cm to 3 cm (0.5 scale) takes 2 seconds, then the velocity is 0.25.
        Parameters:
        velocity - the speed at which to perform the pinch gesture.
        Returns:
        the PinchArgs instance with the updated state (builder pattern).
      • getLocation

        public Location getLocation()
        Returns the location to perform the pinch operation.
        Default = center of the object
        Returns:
        the location to perform the pinch operation.
      • setLocation

        public PinchArgs setLocation(Location location)
        Sets the location to perform the pinch operation.
        Parameters:
        location - the location to perform the pinch operation.
        Returns:
        the PinchArgs instance with the updated state (builder pattern).