Revision 22103 trunk/extensions/extRasterTools-SE/src/org/gvsig/raster/beans/canvas/GCanvas.java

View differences:

GCanvas.java
191 191
	public void paint(Graphics g) {
192 192
		if (g == null) return;
193 193
		g.setColor(backgroundColor);
194
		g.fillRect(getVisibleRect().x, getVisibleRect().y, getVisibleRect().width, getVisibleRect().height);
194
		g.fillRect(0, 0, getWidth(), getHeight());
195 195
		for (int i = 0; i < drawableElements.size(); i++) 
196 196
			((DrawableElement)drawableElements.get(i)).draw(g);
197 197
	}
......
210 210
	 * @return
211 211
	 */
212 212
	public int getCanvasMinX() {
213
		return getVisibleRect().x  + borderX1;
213
		return borderX1;
214 214
	}
215 215
	
216 216
	/**
......
218 218
	 * @return
219 219
	 */
220 220
	public int getCanvasMinY() {
221
		return getVisibleRect().y + borderY1;
221
		return borderY1;
222 222
	}
223 223
	
224 224
	/**
......
226 226
	 * @return
227 227
	 */
228 228
	public int getCanvasMaxX() {
229
		return getVisibleRect().width - borderX2;
229
		return getWidth() - borderX2;
230 230
	}
231 231
	
232 232
	/**
......
234 234
	 * @return
235 235
	 */
236 236
	public int getCanvasMaxY() {
237
		return getVisibleRect().height - borderY2;
237
		return getHeight() - borderY2;
238 238
	}
239 239
	
240 240
	/**
......
242 242
	 * @return
243 243
	 */
244 244
	public int getCanvasWidth() {
245
		return getVisibleRect().width - (borderX1 + borderX2);
245
		return getWidth() - (borderX1 + borderX2);
246 246
	}
247 247
	
248 248
	/**
......
250 250
	 * @return
251 251
	 */
252 252
	public int getCanvasHeight() {
253
		return getVisibleRect().height - (borderY1 + borderY2);
253
		return getHeight() - (borderY1 + borderY2);
254 254
	}
255 255

  
256 256
	/*

Also available in: Unified diff