-
- All Implemented Interfaces:
public interface PointerSpeedBase type for any pointing device: it provides services to analyze the pointer's movement.
-
-
Method Summary
Modifier and Type Method Description abstract PointgetCurrentPosition()Gets the pointer's current position. abstract PointgetOldPosition()Gets the pointer's old position. abstract PointgetVariation()Gets the vector [current position - old position]. abstract voidsetCurrentPosition(Point point)Sets the pointer's current position and, consequently, updates the old one. -
-
Method Detail
-
getCurrentPosition
abstract Point getCurrentPosition()
Gets the pointer's current position.
-
getOldPosition
abstract Point getOldPosition()
Gets the pointer's old position.
-
getVariation
abstract Point getVariation()
Gets the vector [current position - old position].
-
setCurrentPosition
abstract void setCurrentPosition(Point point)
Sets the pointer's current position and, consequently, updates the old one.
- Parameters:
point- is the Point instance representing the pointer's current position
-
-
-
-