Revision 13929 trunk/extensions/extRasterTools-SE/src/org/gvsig/fmap/raster/layers/FLyrRasterSE.java
FLyrRasterSE.java | ||
---|---|---|
231 | 231 |
if(isStopped()) |
232 | 232 |
return; |
233 | 233 |
|
234 |
enableStopped(); //Paramos la capa mientras se hace un load |
|
235 |
|
|
234 | 236 |
String fName = null; |
235 | 237 |
int test = -1; |
236 | 238 |
if (params != null && params instanceof File) { |
... | ... | |
341 | 343 |
if(!isOpen()) |
342 | 344 |
return; |
343 | 345 |
|
346 |
enableStopped(); |
|
347 |
|
|
344 | 348 |
if (isWithinScale(scale)) { |
345 | 349 |
|
346 | 350 |
if (status != null && firstLoad) { |
... | ... | |
419 | 423 |
getVirtualLayers().draw(image, g, vp, cancel, scale); |
420 | 424 |
} |
421 | 425 |
} |
426 |
|
|
427 |
disableStopped(); |
|
422 | 428 |
} |
423 | 429 |
|
424 | 430 |
private void draw(BufferedImage image, Graphics2D g, ViewPort vp, Cancellable cancel) throws ArrayIndexOutOfBoundsException, InvalidSetViewException, InterruptedException { |
... | ... | |
1275 | 1281 |
if (ct2.getColorItems() != null) |
1276 | 1282 |
ct = ct2; |
1277 | 1283 |
} |
1278 |
if (ct == null) |
|
1279 |
ct = this.getDataSource().getColorTables()[0];
|
|
1284 |
if (ct == null && getDataSource() != null && getDataSource().getColorTables() != null)
|
|
1285 |
ct = getDataSource().getColorTables()[0]; |
|
1280 | 1286 |
|
1281 | 1287 |
return ColorTableLegend.createLegend(ct); |
1282 | 1288 |
} |
... | ... | |
1422 | 1428 |
|
1423 | 1429 |
/* |
1424 | 1430 |
* (non-Javadoc) |
1431 |
* @see org.gvsig.raster.hierarchy.IRasterRendering#getLastRenderBuffer() |
|
1432 |
*/ |
|
1433 |
public IBuffer getLastRenderBuffer() { |
|
1434 |
return getRender().getLastRenderBuffer(); |
|
1435 |
} |
|
1436 |
|
|
1437 |
/* |
|
1438 |
* (non-Javadoc) |
|
1425 | 1439 |
* @see com.iver.cit.gvsig.fmap.layers.FLyrDefault#cloneLayer() |
1426 | 1440 |
*/ |
1427 | 1441 |
public FLayer cloneLayer() throws Exception { |
Also available in: Unified diff