Revision 20098 trunk/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 = PluginServices.getIconTheme().get("cursor-query-distance").getImage();
75

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

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

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

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

  
117

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

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

Also available in: Unified diff