public class MoveEvent extends Object
MoveEvent
is used to notify a movement of the mouse between two points 2D.
Constructor and Description |
---|
MoveEvent(Point2D from,
Point2D to,
MouseEvent e)
Creates a new
MoveEvent with all necessary data. |
public MoveEvent(Point2D from, Point2D to, MouseEvent e)
Creates a new MoveEvent
with all necessary data.
from
- initial 2D position of the movementto
- final 2D position of the movemente
- mouse event that has been the cause of creating this onepublic Point2D getFrom()
Gets the initial 2D position of the movement.
public Point2D getTo()
Gets the final 2D position of the movement.
public MouseEvent getEvent()
Gets the event that has been the cause of creating this one.