public class MoveEvent
extends java.lang.Object
MoveEvent
is used to notify a movement of the mouse between two points 2D.
Constructor and Description |
---|
MoveEvent(java.awt.geom.Point2D from,
java.awt.geom.Point2D to,
java.awt.event.MouseEvent e)
Creates a new
MoveEvent with all necessary data. |
Modifier and Type | Method and Description |
---|---|
java.awt.event.MouseEvent |
getEvent()
Gets the event that has been the cause of creating this one.
|
java.awt.geom.Point2D |
getFrom()
Gets the initial 2D position of the movement.
|
java.awt.geom.Point2D |
getTo()
Gets the final 2D position of the movement.
|
public MoveEvent(java.awt.geom.Point2D from, java.awt.geom.Point2D to, java.awt.event.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 java.awt.geom.Point2D getFrom()
Gets the initial 2D position of the movement.
public java.awt.geom.Point2D getTo()
Gets the final 2D position of the movement.
public java.awt.event.MouseEvent getEvent()
Gets the event that has been the cause of creating this one.