org.gvsig.fmap.mapcontrol.tools.Events
Class MoveEvent

java.lang.Object
  extended by 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 Summary
MoveEvent(Point2D from, Point2D to, MouseEvent e)
          Creates a new MoveEvent with all necessary data.
 
Method Summary
 MouseEvent getEvent()
          Gets the event that has been the cause of creating this one.
 Point2D getFrom()
          Gets the initial 2D position of the movement.
 Point2D getTo()
          Gets the final 2D position of the movement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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


Copyright © 2004-2013 gvSIG. All Rights Reserved.