Package 

Interface PointerSpeed


  • 
    public interface PointerSpeed
    
                        

    Base type for any pointing device: it provides services to analyze the pointer's movement.

    • Method Summary

      Modifier and Type Method Description
      abstract Point getCurrentPosition() Gets the pointer's current position.
      abstract Point getOldPosition() Gets the pointer's old position.
      abstract Point getVariation() Gets the vector [current position - old position].
      abstract void setCurrentPosition(Point point) Sets the pointer's current position and, consequently, updates the old one.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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