-
- All Implemented Interfaces:
public final class AnalogPanHelperHelps manage panning done through the mouse, therefore analog in the sense that the panning can go towards any direction.
-
-
Constructor Summary
Constructors Constructor Description AnalogPanHelper(Point current)
-
Method Summary
-
-
Constructor Detail
-
AnalogPanHelper
AnalogPanHelper(Point current)
- Parameters:
current- the current position of the mouse.
-
-
Method Detail
-
getValid
final Boolean getValid()
Returns whether this AnalogPanHelper is still valid. Invalidation happens when close is called, for example when the mouse goes out of bounds.
-
update
final Point update(Point next, Point view)
Updates the panning position and returns it.
- Parameters:
next- the destination pointview- the position of the view
-
close
final Unit close()
Closes the helper. This invalidates the AnalogPanHelper
-
-
-
-