Package com.hp.lft.sdk.web
Class WebPanArgs
java.lang.Object
com.hp.lft.sdk.web.WebPanArgs
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
ConstructorsConstructorDescriptionWebPanArgs
(long deltaX, long deltaY) Initializes a new instance of the WebPanArgs class with default arguments (pans from the center of the object for 0.5 second). -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the distance moved on the x-axis.double
Returns the distance moved on the y-axisdouble
Returns the duration for the Pan operation.Returns the location to start the Pan operation.setDeltaX
(long deltaX) Sets the distance moved on the x-axis.setDeltaY
(long deltaY) Sets the distance moved on the y-axissetDuration
(double duration) Sets the duration for the Pan operation.setLocation
(Location location) Sets the location to start the Pan operation .
-
Constructor Details
-
WebPanArgs
public WebPanArgs(long deltaX, long deltaY) Initializes a new instance of the WebPanArgs class with default arguments (pans from the center of the object for 0.5 second).- Parameters:
deltaX
- the distance moved on the x-axisdeltaY
- the distance moved on the y-axis
-
-
Method Details
-
getDeltaX
public double getDeltaX()Returns the distance moved on the x-axis.- Returns:
- the distance moved on the x-axis
-
setDeltaX
Sets the distance moved on the x-axis.- Parameters:
deltaX
- the distance moved on the x-axis- Returns:
- the WebPanArgs instance with the updated state (builder pattern).
-
getDeltaY
public double getDeltaY()Returns the distance moved on the y-axis- Returns:
- the distance moved on the y-axis
-
setDeltaY
Sets the distance moved on the y-axis- Parameters:
deltaY
- the distance moved on the y-axis- Returns:
- the WebPanArgs instance with the updated state (builder pattern).
-
getLocation
Returns the location to start the Pan operation. Possible values:Location
Default value = center of the object- Returns:
- the location to start the Pan operation.
-
setLocation
Sets the location to start the Pan operation .- Parameters:
location
- the location to start the Pan operation. Possible values:Location
- Returns:
- the WebPanArgs instance with the updated state (builder pattern).
-
getDuration
public double getDuration()Returns the duration for the Pan operation.- Returns:
- the duration of the Pan operation.
-
setDuration
Sets the duration for the Pan operation.- Parameters:
duration
- the number of seconds for the Pan operation.- Returns:
- the WebPanArgs instance with the updated state (builder pattern).
-