Revision 38564 branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/tools/PanListenerImpl.java
PanListenerImpl.java | ||
---|---|---|
44 | 44 |
import java.awt.geom.Point2D; |
45 | 45 |
import java.awt.geom.Rectangle2D; |
46 | 46 |
|
47 |
import javax.swing.ImageIcon;
|
|
48 |
|
|
47 |
import org.gvsig.fmap.IconThemeHelper;
|
|
48 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
|
49 | 49 |
import org.gvsig.fmap.geom.GeometryLocator; |
50 | 50 |
import org.gvsig.fmap.geom.GeometryManager; |
51 |
import org.gvsig.fmap.geom.Geometry.SUBTYPES; |
|
52 | 51 |
import org.gvsig.fmap.geom.exception.CreateEnvelopeException; |
53 | 52 |
import org.gvsig.fmap.geom.primitive.Envelope; |
54 |
import org.gvsig.fmap.geom.util.UtilFunctions; |
|
55 | 53 |
import org.gvsig.fmap.mapcontext.ViewPort; |
56 | 54 |
import org.gvsig.fmap.mapcontrol.MapControl; |
57 | 55 |
import org.gvsig.fmap.mapcontrol.tools.Events.MoveEvent; |
... | ... | |
76 | 74 |
/** |
77 | 75 |
* The image to display when the cursor is active. |
78 | 76 |
*/ |
79 |
private final Image ipan = new ImageIcon(MapControl.class.getClassLoader().getResource( |
|
80 |
"org/gvsig/fmap/mapcontrol/images/Hand.gif")).getImage(); |
|
77 |
// private final Image ipan = PluginServices.getIconTheme().get("cursor-pan").getImage(); |
|
81 | 78 |
|
82 | 79 |
/** |
83 | 80 |
* Reference to the <code>MapControl</code> object that uses. |
... | ... | |
124 | 121 |
* @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor() |
125 | 122 |
*/ |
126 | 123 |
public Image getImageCursor() { |
127 |
return ipan;
|
|
124 |
return IconThemeHelper.getImage("cursor-pan");
|
|
128 | 125 |
} |
129 | 126 |
|
130 | 127 |
/* |
Also available in: Unified diff