Package com.hp.lft.sdk.mobile
Class PanArgs
java.lang.Object
com.hp.lft.sdk.mobile.PanArgs
Arguments that define additional behavior for Pan operations.
This class can be initialized using the builder pattern.
This class can be initialized using the builder pattern.
-
Constructor Summary
ConstructorsConstructorDescriptionPanArgs()
Initializes a new instance of the PanArgs class with default arguments. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
Constructor Details
-
PanArgs
public PanArgs()Initializes a new instance of the PanArgs class with default arguments.
-
-
Method Details
-
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
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
Returns the velocity of the pan operation. (iOS Only)- Returns:
- the velocity of the pan operation.
-
setVelocity
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).
-