Revision 38210 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java
FLyrVect.java | ||
---|---|---|
332 | 332 |
} |
333 | 333 |
// Si existe reproyecci?n, reproyectar el extent |
334 | 334 |
ICoordTrans ct = getCoordTrans(); |
335 |
try { |
|
336 |
if (ct != null) { |
|
337 |
Point2D pt1 = |
|
338 |
new Point2D.Double(rAux.getMinimum(0), rAux.getMinimum(1)); |
|
339 |
Point2D pt2 = |
|
340 |
new Point2D.Double(rAux.getMaximum(0), rAux.getMaximum(1)); |
|
341 |
pt1 = ct.convert(pt1, null); |
|
342 |
pt2 = ct.convert(pt2, null); |
|
343 |
try { |
|
344 |
rAux = |
|
345 |
geomManager.createEnvelope(pt1.getX(), |
|
346 |
pt1.getY(), |
|
347 |
pt2.getX(), |
|
348 |
pt2.getY(), |
|
349 |
SUBTYPES.GEOM2D); |
|
350 |
} catch (CreateEnvelopeException e) { |
|
351 |
logger.error("Error creating the envelope", e); |
|
352 |
e.printStackTrace(); |
|
353 |
}// new Rectangle2D.Double(); |
|
354 |
} |
|
355 |
} catch (IllegalStateException e) { |
|
356 |
this.setAvailable(false); |
|
357 |
this.addError(new ReprojectLayerException(getName(), e)); |
|
335 |
if (ct != null) { |
|
336 |
rAux = rAux.convert(ct); |
|
358 | 337 |
} |
359 | 338 |
return rAux; |
360 |
|
|
361 | 339 |
} |
362 | 340 |
|
363 | 341 |
/** |
... | ... | |
567 | 545 |
LegendChangedEvent e = |
568 | 546 |
LegendChangedEvent.createLegendChangedEvent(oldLegend, this.legend); |
569 | 547 |
e.setLayer(this); |
548 |
updateDrawVersion(); |
|
570 | 549 |
callLegendChanged(e); |
571 | 550 |
} |
572 | 551 |
|
... | ... | |
1178 | 1157 |
return; |
1179 | 1158 |
} |
1180 | 1159 |
strategy.setLayer(this); |
1160 |
updateDrawVersion(); |
|
1181 | 1161 |
} |
1182 | 1162 |
|
1183 | 1163 |
public void drawLabels(BufferedImage image, |
... | ... | |
1383 | 1363 |
} |
1384 | 1364 |
|
1385 | 1365 |
public void legendCleared(LegendClearEvent event) { |
1386 |
// this.updateDrawVersion(); TODO
|
|
1366 |
this.updateDrawVersion();
|
|
1387 | 1367 |
LegendChangedEvent e = |
1388 | 1368 |
LegendChangedEvent.createLegendChangedEvent(legend, legend); |
1389 | 1369 |
this.callLegendChanged(e); |
1390 | 1370 |
} |
1391 | 1371 |
|
1392 | 1372 |
public boolean symbolChanged(SymbolLegendEvent e) { |
1373 |
this.updateDrawVersion(); |
|
1393 | 1374 |
LegendChangedEvent ev = |
1394 | 1375 |
LegendChangedEvent.createLegendChangedEvent(legend, legend); |
1395 | 1376 |
this.callLegendChanged(ev); |
Also available in: Unified diff