Statistics
| Revision:

root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / tools / Events / MoveEvent.java @ 1062

History | View | Annotate | Download (879 Bytes)

1
package com.iver.cit.gvsig.fmap.tools.Events;
2

    
3
import java.awt.event.MouseEvent;
4
import java.awt.geom.Point2D;
5

    
6

    
7
/**
8
 * Evento de movimiento sobre la vista.
9
 *
10
 * @author Vicente Caballero Navarro
11
 */
12
public class MoveEvent {
13
    private Point2D from;
14
    private Point2D to;
15
        private MouseEvent event;
16

    
17
    /**
18
     * Crea un nuevo MoveEvent.
19
     *
20
         * @param from origen.
21
         * @param to destino.
22
     */
23
    public MoveEvent(Point2D from, Point2D to, MouseEvent e) {
24
        this.from = from;
25
        this.to = to;
26
        event = e;
27
    }
28

    
29
        /**
30
         * Devuelve el punto inical del movimiento.
31
         *
32
         * @return Punto inicial.
33
         */
34
    public Point2D getFrom() {
35
        return from;
36
    }
37

    
38
        /**
39
         * Devuelve el punto finale del movimiento.
40
         *
41
         * @return Punto final.
42
         */
43
    public Point2D getTo() {
44
        return to;
45
    }
46
        public MouseEvent getEvent() {
47
                return event;
48
        }
49
}