Revision 38564 branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/tools/PointSelectionListener.java
PointSelectionListener.java | ||
---|---|---|
43 | 43 |
import java.awt.Image; |
44 | 44 |
import java.awt.geom.Point2D; |
45 | 45 |
|
46 |
import javax.swing.ImageIcon; |
|
47 |
|
|
46 |
import org.gvsig.fmap.IconThemeHelper; |
|
48 | 47 |
import org.gvsig.fmap.dal.exception.DataException; |
49 | 48 |
import org.gvsig.fmap.dal.feature.FeatureSelection; |
50 | 49 |
import org.gvsig.fmap.dal.feature.FeatureSet; |
... | ... | |
64 | 63 |
/** |
65 | 64 |
* The image to display when the cursor is active. |
66 | 65 |
*/ |
67 |
private final Image img = new ImageIcon(MapControl.class.getClassLoader().getResource( |
|
68 |
"org/gvsig/fmap/mapcontrol/images/PointSelectCursor.gif")).getImage(); |
|
66 |
// private final Image img = PluginServices.getIconTheme().get("cursor-select-by-point").getImage(); |
|
69 | 67 |
|
70 | 68 |
/** |
71 | 69 |
* Reference to the <code>MapControl</code> object that uses. |
... | ... | |
133 | 131 |
* @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor() |
134 | 132 |
*/ |
135 | 133 |
public Image getImageCursor() { |
136 |
return img;
|
|
134 |
return IconThemeHelper.getImage("cursor-select-by-point");
|
|
137 | 135 |
} |
138 | 136 |
|
139 | 137 |
/* |
Also available in: Unified diff