Revision 43867 branches/org.gvsig.desktop-2018a/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.impl/src/main/java/org/gvsig/raster/lib/legend/impl/DefaultRasterLegend.java
DefaultRasterLegend.java | ||
---|---|---|
134 | 134 |
* @param filters |
135 | 135 |
* Filters of legend |
136 | 136 |
*/ |
137 |
@SuppressWarnings("OverridableMethodCallInConstructor") |
|
137 | 138 |
public DefaultRasterLegend(ColorInterpretation colorInterpretation, |
138 | 139 |
Transparency transparency, OperationList filters) { |
139 | 140 |
this.transparency = transparency; |
... | ... | |
291 | 292 |
getFilters().setDefaultParameters(defaultParameters); |
292 | 293 |
|
293 | 294 |
Object oColorInterpretation = null; |
294 |
filteredBuffer = getFilters().execute(null, bufferToDraw);
|
|
295 |
filteredBuffer = getFilters().execute(taskStatus, bufferToDraw);
|
|
295 | 296 |
oColorInterpretation = getFilters().getParameterValue(ColoredOperation.OUTPUT_COLOR_INTERPRETATION_PARAM); |
296 | 297 |
ColorInterpretation colorInterpretationAfterFilters = null; |
297 | 298 |
if (oColorInterpretation != null) { |
... | ... | |
309 | 310 |
// colorTableOperationParameters.setDynValue(ColoredOperation.COPY_UNPROCESSED_BANDS_PARAM, |
310 | 311 |
// true); |
311 | 312 |
Buffer rgbBuffer = |
312 |
operationManager.execute(null, ColoredOperation.COLOR_TABLE_OPERATION_NAME, filteredBuffer,
|
|
313 |
operationManager.execute(taskStatus, ColoredOperation.COLOR_TABLE_OPERATION_NAME, filteredBuffer,
|
|
313 | 314 |
colorTableOperationParameters); |
314 | 315 |
image = |
315 | 316 |
drawRGBBuffer(graphics, rgbBuffer, |
... | ... | |
373 | 374 |
// // Draw YCBCR buffer without color table |
374 | 375 |
// image = drawYCBCRBuffer(graphics, bufferToDraw, colorInterpretation, transparency, filters); |
375 | 376 |
} |
376 |
} catch (BufferOperationException e) {
|
|
377 |
} catch (Exception e) { |
|
377 | 378 |
LOG.warn("Error drawing legend", e); |
378 | 379 |
taskStatus.abort(); |
379 | 380 |
return; |
Also available in: Unified diff