Revision 1062 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/tools/Behavior/PointMapTool.java
PointMapTool.java | ||
---|---|---|
21 | 21 |
private PointListener listener; |
22 | 22 |
|
23 | 23 |
/** |
24 |
* Crea un nuevo PointMapTool. |
|
25 |
* |
|
26 |
* @param l DOCUMENT ME! |
|
27 |
*/ |
|
28 |
public PointMapTool(PointListener l) { |
|
29 |
listener = l; |
|
30 |
} |
|
31 |
|
|
32 |
/** |
|
24 | 33 |
* Reimplementaci?n del m?todo mousePressed de MapTool. |
25 | 34 |
* |
26 | 35 |
* @param e MouseEvent |
... | ... | |
42 | 51 |
Point2D p1; |
43 | 52 |
Point2D p2; |
44 | 53 |
Point pScreen = e.getPoint(); |
45 |
|
|
46 |
if (e.getButton() == MouseEvent.BUTTON1) { |
|
47 |
PointEvent event = new PointEvent(e.getPoint()); |
|
48 |
listener.point(event); |
|
49 |
} |
|
54 |
PointEvent event = new PointEvent(e.getPoint(), e); |
|
55 |
listener.point(event); |
|
50 | 56 |
} |
51 | 57 |
|
52 | 58 |
/** |
Also available in: Unified diff