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

View differences:

CircleMeasureListener.java
60 60

  
61 61

  
62 62
/**
63
 * Implementaci?n de la interfaz CircleListener como herramienta para
64
 * realizar una medicion circular
63
 * <p>Listener for tools that measure using a circular area, displaying
64
 *   its radius at the status bar of the application's main frame.</p>
65 65
 *
66
 * @see CircleListener
67
 *
66 68
 * @author Laura
67 69
 */
68 70
public class CircleMeasureListener implements CircleListener {
71
	/**
72
	 * The image to display when the cursor is active.
73
	 */
69 74
	private final Image img = new ImageIcon(MapControl.class.getResource(
70 75
				"images/RulerCursor.gif")).getImage();
76

  
77
	/**
78
	 * The cursor used to work with this tool listener.
79
	 * 
80
	 * @see #getCursor()
81
	 */
71 82
	private Cursor cur = Toolkit.getDefaultToolkit().createCustomCursor(img,
72 83
			new Point(16, 16), "");
84

  
85
	/**
86
	 * Reference to the <code>MapControl</code> object that uses.
87
	 */
73 88
	private MapControl mapCtrl;
74 89

  
75 90
	/**
76
	 * Crea un nuevo AreaListenerImpl.
91
	 * <p>Creates a new listener for measure circular areas.</p>
77 92
	 *
78
	 * @param mc MapControl.
93
	 * @param mc the <code>MapControl</code> object where the measures are made 
79 94
	 */
80 95
	public CircleMeasureListener(MapControl mc) {
81 96
		this.mapCtrl = mc;
82 97
	}
83 98

  
84
	/**
99
	/*
100
	 * (non-Javadoc)
85 101
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.CircleListener#circle(com.iver.cit.gvsig.fmap.tools.Events.MeasureEvent)
86 102
	 */
87 103
	public void circle(MeasureEvent event) throws BehaviorException {
......
115 131
        }
116 132
	}
117 133

  
118

  
119
	/**
134
	/*
135
	 * (non-Javadoc)
120 136
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#getCursor()
121 137
	 */
122 138
	public Cursor getCursor() {
123 139
		return cur;
124 140
	}
125 141

  
126
	/**
142
	/*
143
	 * (non-Javadoc)
127 144
	 * @see com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener#cancelDrawing()
128 145
	 */
129 146
	public boolean cancelDrawing() {

Also available in: Unified diff