Revision 20100 branches/v10/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toolListeners/ZoomPixelCursorListener.java

View differences:

ZoomPixelCursorListener.java
62 62

  
63 63

  
64 64
/**
65
 * <p>Listener for doing a <i>zoom in</i> operation, centering the extent of the <code>ViewPort</code>
66
 *  of the associated {@link MapControl MapControl} around the pixel selected by the <code>PointEvent</code>'s
67
 *  point coordinates.</p>
65 68
 *
69
 * <p>Listens a single click of any mouse's button.</p>
70
 *
66 71
 * @author Nacho Brodin (brodin_ign@gva.es)
67 72
 */
68 73
public class ZoomPixelCursorListener implements PointListener {
74
	/**
75
	 * Object used to log messages for this listener.
76
	 */
69 77
	private static Logger 	logger = Logger.getLogger(ZoomPixelCursorListener.class.getName());
78
	/**
79
	 * Object used to log messages for this listener.
80
	 */
70 81
	private final Image 	img = new ImageIcon(MapControl.class.getResource(
71 82
    									"images/ZoomPixelCursor.gif")).getImage();
83

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

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

  
76 97
	/**
77
	 * Crea un nuevo AreaListenerImpl.
98
 	 * <p>Creates a new <code>ZoomPixelCursorListener</code> object.</p>
78 99
	 *
79
	 * @param mc DOCUMENT ME!
100
	 * @param mc the <code>MapControl</code> where will be applied the changes
80 101
	 */
81 102
	public ZoomPixelCursorListener(MapControl mc) {
82 103
		this.mapCtrl = mc;
83 104
	}
84 105

  
85
	/* (non-Javadoc)
106
	/*
107
	 * (non-Javadoc)
86 108
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.PointListener#point(com.iver.cit.gvsig.fmap.tools.Events.PointEvent)
87 109
	 */
88 110
	public void point(PointEvent event) throws BehaviorException {
......
138 160
   		}
139 161
	}
140 162

  
141
	/**
163
	/*
164
	 * (non-Javadoc)
142 165
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor()
143 166
	 */
144 167
	public Cursor getCursor() {
145 168
		return cur;
146 169
	}
147 170

  
148
	/**
171
	/*
172
	 * (non-Javadoc)
149 173
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing()
150 174
	 */
151 175
	public boolean cancelDrawing() {
152 176
		return false;
153 177
	}
154 178

  
179
	/*
180
	 * (non-Javadoc)
181
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.PointListener#pointDoubleClick(com.iver.cit.gvsig.fmap.tools.Events.PointEvent)
182
	 */
155 183
	public void pointDoubleClick(PointEvent event) throws BehaviorException {
156 184
		// TODO Auto-generated method stub
157 185

  
158 186
	}
159

  
160 187
}

Also available in: Unified diff