Class PanArgs

java.lang.Object
com.hp.lft.sdk.mobile.PanArgs

public class PanArgs extends Object
Arguments that define additional behavior for Pan operations.
This class can be initialized using the builder pattern.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes a new instance of the PanArgs class with default arguments.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the gesture class designed by the mobile application developer to handle this gesture on this object.

    Needed only if the application developer overrode the default gesture class.
    Returns the velocity of the pan operation.
    setGesture(String gesture)
    Sets the gesture class designed by the mobile application developer to handle this gesture on this object.

    Needed only if the application developer overrode the default gesture class.
    setVelocity(Double velocity)
    Sets the velocity of the pan operation.

    Methods inherited from class java.lang.Object

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

    • PanArgs

      public PanArgs()
      Initializes a new instance of the PanArgs class with default arguments.
  • Method Details

    • getGesture

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

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

      public PanArgs setGesture(String gesture)
      Sets the gesture class designed by the mobile application developer to handle this gesture on this object.

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

      public Double getVelocity()
      Returns the velocity of the pan operation. (iOS Only)
      Returns:
      the velocity of the pan operation.
    • setVelocity

      public PanArgs setVelocity(Double velocity)
      Sets the velocity of the pan operation. (iOS Only)
      The velocity must be positive.
      Parameters:
      velocity - the velocity of the pan operation.
      Returns:
      the PanArgs instance with the updated state (builder pattern).