Revision 3071 branches/FMap04/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrRaster.java
FLyrRaster.java | ||
---|---|---|
55 | 55 |
|
56 | 56 |
import org.cresques.cts.IProjection; |
57 | 57 |
import org.cresques.io.raster.RasterFilterStack; |
58 |
import org.cresques.io.raster.RasterStats; |
|
59 |
import org.cresques.io.raster.RasterStats.History; |
|
58 | 60 |
import org.cresques.px.Extent; |
59 | 61 |
|
60 | 62 |
import com.hardcode.driverManager.Driver; |
... | ... | |
441 | 443 |
// del BufferedImage ni caso, cuando se imprime viene con null |
442 | 444 |
Tiling tiles = new Tiling(maxTilePrintWidth, maxTilePrintHeight, g.getClipRect()); |
443 | 445 |
tiles.setAffineTransform((AffineTransform) viewPort.getAffineTransform().clone()); |
446 |
|
|
447 |
//Si es la primera lectura salvamos los valores de m?ximo y m?nimo para la aplicaci?n |
|
448 |
//de realce si la imagen es de 16 bits. |
|
449 |
|
|
450 |
RasterStats stats = getSource().getFilterStack().getStats(); |
|
451 |
if(stats != null) |
|
452 |
stats.history.add(stats.new History(getName(), stats.minBandValue, stats.maxBandValue, stats.secondMinBandValue, stats.secondMaxBandValue)); |
|
453 |
|
|
454 |
|
|
444 | 455 |
for (int tileNr=0; tileNr < tiles.getNumTiles(); tileNr++) { |
445 | 456 |
// Parte que dibuja |
446 | 457 |
try { |
... | ... | |
451 | 462 |
e.printStackTrace(); |
452 | 463 |
} |
453 | 464 |
} |
465 |
|
|
466 |
if(stats != null){ |
|
467 |
getSource().getFilterStack().getStats().history.clear(); |
|
468 |
stats = getSource().getFilterStack().getStats(); |
|
469 |
} |
|
454 | 470 |
} |
455 | 471 |
isPrinting = false; |
456 | 472 |
} |
Also available in: Unified diff