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

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

public class MoveEvent
extends java.lang.Object

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

Author:
Vicente Caballero Navarro

Constructor Summary
MoveEvent(java.awt.geom.Point2D from, java.awt.geom.Point2D to, java.awt.event.MouseEvent e)
          Creates a new MoveEvent with all necessary data.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveEvent

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.

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

getEvent

public java.awt.event.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

getFrom

public java.awt.geom.Point2D getFrom()

Gets the initial 2D position of the movement.

Returns:
initial 2D position of the movement

getTo

public java.awt.geom.Point2D getTo()

Gets the final 2D position of the movement.

Returns:
final 2D position of the movement


Copyright © 2014 gvSIG Association. All Rights Reserved.