Class MoveEvent

java.lang.Object
org.gvsig.fmap.mapcontrol.tools.Events.MoveEvent

public class MoveEvent extends Object

MoveEvent is used to notify a movement of the mouse between two points 2D.

Author:
Vicente Caballero Navarro
  • Constructor Details

    • MoveEvent

      public MoveEvent(Point2D from, Point2D to, MouseEvent e)

      Creates a new MoveEvent with all necessary data.

      Parameters:
      from - initial 2D position of the movement
      to - final 2D position of the movement
      e - mouse event that has been the cause of creating this one
  • Method Details

    • getFrom

      public Point2D getFrom()

      Gets the initial 2D position of the movement.

      Returns:
      initial 2D position of the movement
    • getTo

      public Point2D getTo()

      Gets the final 2D position of the movement.

      Returns:
      final 2D position of the movement
    • getEvent

      public MouseEvent getEvent()

      Gets the event that has been the cause of creating this one.

      Returns:
      mouse event that has been the cause of creating this one