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 SummaryConstructorsConstructorDescriptionWebPanArgs(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 SummaryModifier and TypeMethodDescriptiondoubleReturns the distance moved on the x-axis.doubleReturns the distance moved on the y-axisdoubleReturns 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- 
WebPanArgspublic 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-axis
- deltaY- the distance moved on the y-axis
 
 
- 
- 
Method Details- 
getDeltaXpublic double getDeltaX()Returns the distance moved on the x-axis.- Returns:
- the distance moved on the x-axis
 
- 
setDeltaXSets 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).
 
- 
getDeltaYpublic double getDeltaY()Returns the distance moved on the y-axis- Returns:
- the distance moved on the y-axis
 
- 
setDeltaYSets 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).
 
- 
getLocationReturns the location to start the Pan operation. Possible values:Location
 Default value = center of the object- Returns:
- the location to start the Pan operation.
 
- 
setLocationSets 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).
 
- 
getDurationpublic double getDuration()Returns the duration for the Pan operation.- Returns:
- the duration of the Pan operation.
 
- 
setDurationSets 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).
 
 
-