Revision 20100 branches/v10/extensions/extWCS/src/com/iver/cit/gvsig/gui/toolListeners/WCSZoomPixelCursorListener.java

View differences:

WCSZoomPixelCursorListener.java
61 61

  
62 62

  
63 63
/**
64
*
65
* @author Nacho Brodin (brodin_ign@gva.es)
66
*/
64
 * <p>Listener that executes a <i>zoom in</i> operation in the associated <code>MapControl</code>,
65
 *  having as center the point selected.</p>
66
 * 
67
 * <p>Listens a single click of any mouse's button.</p>
68
 * 
69
 * <p>The <i>zoom in</i> factor will depend on the maximum resolution of the <i>WCS</i> layers in
70
 *  the <code>MapControl</code>.</p>
71
 *
72
 * @author Nacho Brodin (brodin_ign@gva.es)
73
 */
67 74
public class WCSZoomPixelCursorListener implements PointListener {
75
	/**
76
	 * Object used to log messages for this listener.
77
	 */
68 78
	private static Logger 	logger = Logger.getLogger(WCSZoomPixelCursorListener.class.getName());
69
	private final Image 	img = new ImageIcon(MapControl.class.getResource(
70
   									"images/ZoomPixelCursor.gif")).getImage();
71
	private Cursor 			cur = Toolkit.getDefaultToolkit().createCustomCursor(	img,
72
																					new Point(16, 16), "");
79

  
80
	/**
81
	 * The image to display when the cursor is active.
82
	 */
83
	private final Image 	img = new ImageIcon(MapControl.class.getResource("images/ZoomPixelCursor.gif")).getImage();
84

  
85
	/**
86
	 * The cursor used to work with this tool listener.
87
	 * 
88
	 * @see #getCursor()
89
	 */ 
90
	private Cursor 			cur = Toolkit.getDefaultToolkit().createCustomCursor(	img, new Point(16, 16), "");
91

  
92
	/**
93
	 * Reference to the <code>MapControl</code> object that uses.
94
	 */
73 95
	private MapControl 		mapCtrl;
74 96

  
75 97
	/**
76
	 * Crea un nuevo AreaListenerImpl.
77
	 *
78
	 * @param mc DOCUMENT ME!
98
	 * <p>Creates a new <code>WCSZoomPixelCursorListener</code> object.</p>
99
	 * 
100
	 * @param mc the <code>MapControl</code> where be applied the changes
79 101
	 */
80 102
	public WCSZoomPixelCursorListener(MapControl mc) {
81 103
		this.mapCtrl = mc;
82 104
	}
83 105
	
84
	/* (non-Javadoc)
106
	/*
107
	 * (non-Javadoc)
85 108
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.PointListener#point(com.iver.cit.gvsig.fmap.tools.Events.PointEvent)
86 109
	 */
87 110
	public void point(PointEvent event) throws BehaviorException {
......
116 139

  
117 140
	}
118 141

  
119
	/**
142
	/*
143
	 * (non-Javadoc)
120 144
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor()
121 145
	 */
122 146
	public Cursor getCursor() {
123 147
		return cur;
124 148
	}
125 149

  
126
	/**
150
	/*
151
	 * (non-Javadoc)
127 152
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing()
128 153
	 */
129 154
	public boolean cancelDrawing() {
130 155
		return false;
131 156
	}
132 157

  
158
	/*
159
	 * (non-Javadoc)
160
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.PointListener#pointDoubleClick(com.iver.cit.gvsig.fmap.tools.Events.PointEvent)
161
	 */
133 162
	public void pointDoubleClick(PointEvent event) throws BehaviorException {
134 163
		// TODO Auto-generated method stub
135 164
		
136 165
	}
137

  
138 166
}

Also available in: Unified diff