Package edu.macalester.graphics.events
Class MouseMotionEvent
java.lang.Object
edu.macalester.graphics.events.AbstractEvent
edu.macalester.graphics.events.MouseMotionEvent
Carries information about the mouse moving from one location to another.
-
Constructor Summary
ConstructorDescriptionMouseMotionEvent
(MouseEvent sourceEvent, Point previousPosition) For internal use. -
Method Summary
Modifier and TypeMethodDescriptiongetDelta()
Returns the difference between the mouse's previous and current positions.Returns mouse pointer's current location at the time of the event, in CanvasWindow coordinates.Returns mouse pointer's location at the time of the previously reported event, in CanvasWindow coordinates.toString()
Methods inherited from class edu.macalester.graphics.events.AbstractEvent
getModifiers
-
Constructor Details
-
MouseMotionEvent
For internal use. Translates an underlying AWT event to a kilt-graphics event.
-
-
Method Details
-
getPosition
Returns mouse pointer's current location at the time of the event, in CanvasWindow coordinates. -
getPreviousPosition
Returns mouse pointer's location at the time of the previously reported event, in CanvasWindow coordinates. -
getDelta
Returns the difference between the mouse's previous and current positions. -
toString
-