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

View differences:

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

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

  
5 6

  
......
9 10
 * @author Vicente Caballero Navarro
10 11
 */
11 12
public class MoveEvent {
12
	private Point2D from;
13
	private Point2D to;
13
    private Point2D from;
14
    private Point2D to;
15
	private MouseEvent event;
14 16

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

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

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

Also available in: Unified diff