Package com.hp.lft.sdk.web
Class WebSwipeArgs
java.lang.Object
com.hp.lft.sdk.web.WebSwipeArgs
Arguments that define additional behavior for Swipe operations.
This class can be initialized using the builder pattern.
This class can be initialized using the builder pattern.
-
Constructor Summary
ConstructorsConstructorDescriptionWebSwipeArgs
(SwipeDirection direction) Initializes a new instance of the WebSwipeArgs class with default arguments (perform swipe 200 pixels from the center of the object in 0.25 seconds). -
Method Summary
Modifier and TypeMethodDescriptionReturns the direction to swipe.long
Returns the distance (in pixels) to swipe.double
Returns the number of seconds to perform the Swipe operation.Returns the location to start the Swipe operation.setDirection
(SwipeDirection direction) Sets the direction to swipe.setDistance
(long distance) Sets the distance (in pixels) to swipe.setDuration
(double duration) Sets the number of seconds to perform the swipe.setLocation
(Location location) Sets the location to start the Swipe operation.
-
Constructor Details
-
WebSwipeArgs
Initializes a new instance of the WebSwipeArgs class with default arguments (perform swipe 200 pixels from the center of the object in 0.25 seconds).- Parameters:
direction
- the direction to swipe
-
-
Method Details
-
getDirection
Returns the direction to swipe.- Returns:
- the direction to swipe
-
setDirection
Sets the direction to swipe.- Parameters:
direction
- the�direction to swipe. Possible values:SwipeDirection
- Returns:
- the WebSwipeArgs instance with the updated state (builder pattern).
-
getLocation
Returns the location to start the Swipe operation. Possible values:Location
Default value = center of the object- Returns:
- the location to start the Swipe operation.
-
setLocation
Sets the location to start the Swipe operation.- Parameters:
location
- the location to start the Swipe operation. Possible values:Location
- Returns:
- the WebSwipeArgs instance with the updated state (builder pattern).
-
getDuration
public double getDuration()Returns the number of seconds to perform the Swipe operation.- Returns:
- the number of seconds to perform the Swipe operation
-
setDuration
Sets the number of seconds to perform the swipe.- Parameters:
duration
- the number of seconds to perform the swipe- Returns:
- the WebSwipeArgs instance with the updated state (builder pattern).
-
getDistance
public long getDistance()Returns the distance (in pixels) to swipe.- Returns:
- the distance (in pixels) to swipe
-
setDistance
Sets the distance (in pixels) to swipe.- Parameters:
distance
- the distance (in pixels) to swipe- Returns:
- the WebSwipeArgs instance with the updated state (builder pattern).
-