Revision 20098 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/tools/SelectImageListenerImpl.java
SelectImageListenerImpl.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
|
56 | 56 |
/** |
57 |
* Implementaci?n de la interfaz RectangleListener como herramienta para |
|
58 |
* realizar un Salvado a Raster. |
|
59 |
* |
|
60 |
* @author Nacho Brodin <brodin_ign@gva.es> |
|
61 |
*/ |
|
57 |
* <p>Listener to select the upper layer with raster data, that has information in the associated <code>MapControl</code> object, down |
|
58 |
* the position selected by the mouse.</p> |
|
59 |
* |
|
60 |
* @deprecated |
|
61 |
* @author Nacho Brodin <brodin_ign@gva.es> |
|
62 |
*/ |
|
62 | 63 |
public class SelectImageListenerImpl implements PointListener { |
64 |
/** |
|
65 |
* The image to display when the cursor is active. |
|
66 |
*/ |
|
63 | 67 |
private final Image isaveraster = new ImageIcon(MapControl.class.getResource( |
64 | 68 |
"images/PointSelectCursor.gif")).getImage(); |
69 |
|
|
70 |
/** |
|
71 |
* The cursor used to work with this tool listener. |
|
72 |
* |
|
73 |
* @see #getCursor() |
|
74 |
*/ |
|
65 | 75 |
private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(isaveraster, |
66 | 76 |
new Point(16, 16), ""); |
77 |
|
|
78 |
/** |
|
79 |
* Reference to the <code>MapControl</code> object that uses. |
|
80 |
*/ |
|
67 | 81 |
protected MapControl mapCtrl; |
68 | 82 |
|
83 |
/** |
|
84 |
* World equivalent coordinates of the point 2D |
|
85 |
*/ |
|
69 | 86 |
protected Point2D wcPoint = null; |
70 | 87 |
|
71 | 88 |
/** |
72 |
* Crea un nuevo RectangleListenerImpl.
|
|
73 |
* |
|
74 |
* @param mapCtrl MapControl.
|
|
89 |
* <p>Creates a new <code>SelectImageListenerImpl</code> object.</p>
|
|
90 |
*
|
|
91 |
* @param mapCtrl the <code>MapControl</code> where are stored the layers
|
|
75 | 92 |
*/ |
76 | 93 |
public SelectImageListenerImpl(MapControl mapCtrl) { |
77 | 94 |
this.mapCtrl = mapCtrl; |
78 | 95 |
} |
79 | 96 |
|
80 |
|
|
81 |
/* (non-Javadoc)
|
|
97 |
/* |
|
98 |
* (non-Javadoc)
|
|
82 | 99 |
* @see com.iver.cit.gvsig.fmap.tools.Listeners.PointListener#point(com.iver.cit.gvsig.fmap.tools.Events.PointEvent) |
83 | 100 |
*/ |
84 | 101 |
public void point(PointEvent event) { |
85 | 102 |
|
86 | 103 |
} |
87 | 104 |
|
88 |
/** |
|
105 |
/* |
|
106 |
* (non-Javadoc) |
|
89 | 107 |
* @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor() |
90 | 108 |
*/ |
91 | 109 |
public Cursor getCursor() { |
92 | 110 |
return cur; |
93 | 111 |
} |
94 | 112 |
|
95 |
/** |
|
113 |
/* |
|
114 |
* (non-Javadoc) |
|
96 | 115 |
* @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing() |
97 | 116 |
*/ |
98 | 117 |
public boolean cancelDrawing() { |
99 | 118 |
return true; |
100 | 119 |
} |
101 | 120 |
|
102 |
|
|
121 |
/* |
|
122 |
* (non-Javadoc) |
|
123 |
* @see com.iver.cit.gvsig.fmap.tools.Listeners.PointListener#pointDoubleClick(com.iver.cit.gvsig.fmap.tools.Events.PointEvent) |
|
124 |
*/ |
|
103 | 125 |
public void pointDoubleClick(PointEvent event) { |
104 | 126 |
// TODO Auto-generated method stub |
105 | 127 |
|
Also available in: Unified diff