Revision 13022 trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/imagenavigator/ImageNavigator.java
ImageNavigator.java | ||
---|---|---|
361 | 361 |
updateWidth = getWidgetImage().getWidth(this); |
362 | 362 |
updateHeight = getWidgetImage().getHeight(this); |
363 | 363 |
|
364 |
for (int i = 0; (i * 4) <= width; i++) { |
|
365 |
for (int j = 0; (j * 4) <= height; j++) { |
|
366 |
if ((i + j) % 2 == 0) |
|
367 |
getCacheGraphics().setColor(Color.white); |
|
368 |
else |
|
369 |
getCacheGraphics().setColor(new Color(204, 204, 204)); |
|
370 |
getCacheGraphics().fillRect(i * 4, j * 4, 4, 4); |
|
371 |
} |
|
372 |
} |
|
373 |
/* |
|
364 | 374 |
getCacheGraphics().setColor(Color.WHITE); |
365 | 375 |
getCacheGraphics().fillRect(0, 0, width, height); |
376 |
*/ |
|
366 | 377 |
|
367 | 378 |
double newY1 = 0.0; |
368 | 379 |
double newY2 = 0.0; |
... | ... | |
425 | 436 |
* Redibujar el componente en el graphics temporal |
426 | 437 |
*/ |
427 | 438 |
private void redrawBuffer(int x, int y) { |
428 |
getWidgetGraphics().setColor(Color.white); |
|
439 |
for (int i = -2; ((i - 2) * 4) <= width; i++) { |
|
440 |
for (int j = -2; ((j - 2) * 4) <= height; j++) { |
|
441 |
if ((i + j) % 2 == 0) |
|
442 |
getWidgetGraphics().setColor(Color.white); |
|
443 |
else |
|
444 |
getWidgetGraphics().setColor(new Color(204, 204, 204)); |
|
445 |
getWidgetGraphics().fillRect((i * 4) + (x % 8), (j * 4) + (y % 8), 4, 4); |
|
446 |
} |
|
447 |
} |
|
448 |
/* |
|
449 |
getWidgetGraphics().setColor(new Color(204, 204, 204)); |
|
429 | 450 |
getWidgetGraphics().fillRect(0, 0, width, height); |
451 |
*/ |
|
430 | 452 |
|
431 | 453 |
getWidgetGraphics().drawImage(imageCache, x, y, null); |
432 | 454 |
|
Also available in: Unified diff