Package 

Class PointerSpeedImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Point oldPosition
    • Method Summary

      Modifier and Type Method Description
      Point getCurrentPosition() Gets the pointer's current position.
      Point getVariation() Gets the vector [current position - old position].
      void setCurrentPosition(Point point) Sets the pointer's current position and, consequently, updates the old one.
      Point getOldPosition() Gets the pointer's old position.
      • Methods inherited from class it.unibo.alchemist.boundary.wormhole.interfaces.PointerSpeed

        setCurrentPosition
      • Methods inherited from class java.lang.Object

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

      • getVariation

         Point getVariation()

        Gets the vector [current position - old position].

      • setCurrentPosition

         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