Revision 137 org.gvsig.educa.batovi/trunk/org.gvsig.educa.batovi.mapviewer/org.gvsig.educa.batovi.mapviewer/src/main/java/org/gvsig/educa/batovi/mapviewer/tools/AreaListener.java
AreaListener.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package org.gvsig.educa.batovi.mapviewer.tools; |
42 | 42 |
|
43 |
import java.awt.Image; |
|
43 | 44 |
import java.awt.geom.Point2D; |
44 | 45 |
import java.text.NumberFormat; |
45 | 46 |
|
47 |
import org.gvsig.educa.batovi.mapviewer.Main; |
|
46 | 48 |
import org.gvsig.educa.batovi.mapviewer.StatusBar; |
47 | 49 |
import org.gvsig.fmap.mapcontext.MapContext; |
48 | 50 |
import org.gvsig.fmap.mapcontext.ViewPort; |
... | ... | |
72 | 74 |
*/ |
73 | 75 |
public class AreaListener extends AreaListenerImpl { |
74 | 76 |
|
77 |
private static Image image = null; |
|
78 |
|
|
75 | 79 |
private final StatusBar statusBar; |
76 | 80 |
private final NumberFormat numberFormat; |
77 | 81 |
private final double[] trans2Meter; |
... | ... | |
98 | 102 |
areaAbrev = MapContext.getAreaAbbr(); |
99 | 103 |
} |
100 | 104 |
|
105 |
@Override |
|
106 |
public Image getImageCursor() { |
|
107 |
if (image == null) { |
|
108 |
image = Main.getInstance().getImage("area-cursor").getImage(); |
|
109 |
} |
|
110 |
return image; |
|
111 |
} |
|
112 |
|
|
101 | 113 |
/* |
102 | 114 |
* (non-Javadoc) |
103 | 115 |
* |
Also available in: Unified diff