Revision 43510 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/legend/impl/AbstractVectorialLegend.java
AbstractVectorialLegend.java | ||
---|---|---|
55 | 55 |
import org.gvsig.fmap.geom.aggregate.Aggregate; |
56 | 56 |
import org.gvsig.fmap.geom.exception.CreateGeometryException; |
57 | 57 |
import org.gvsig.fmap.geom.exception.ReprojectionRuntimeException; |
58 |
import org.gvsig.fmap.geom.operation.DrawInts; |
|
59 |
import org.gvsig.fmap.geom.operation.DrawOperationContext; |
|
60 | 58 |
import org.gvsig.fmap.geom.primitive.Envelope; |
61 | 59 |
import org.gvsig.fmap.mapcontext.MapContext; |
62 | 60 |
import org.gvsig.fmap.mapcontext.MapContextException; |
... | ... | |
174 | 172 |
FeatureSet featureSet = null; |
175 | 173 |
DisposableIterator it = null; |
176 | 174 |
try { |
175 |
GeometryManager geomManager = GeometryLocator.getGeometryManager(); |
|
177 | 176 |
ZSort zSort = getZSort(); |
178 | 177 |
boolean useZSort = false; |
179 | 178 |
int mapLevelCount = 1; |
... | ... | |
289 | 288 |
int symbolType = sym.getSymbolType(); |
290 | 289 |
|
291 | 290 |
if (symbolType == Geometry.TYPES.POINT |
292 |
|| symbolType == Geometry.TYPES.CURVE
|
|
291 |
|| geomManager.isSubtype(symbolType, Geometry.TYPES.CURVE)
|
|
293 | 292 |
|| sym instanceof CartographicSupport) { |
294 | 293 |
|
295 | 294 |
csSym = (CartographicSupport) sym; |
296 | 295 |
} |
297 | 296 |
|
298 |
DrawOperationContext doc = new DrawOperationContext(); |
|
299 |
doc.setGraphics(g); |
|
300 |
doc.setViewPort(viewPort); |
|
301 | 297 |
if (csSym == null) { |
302 |
doc.setSymbol(sym);
|
|
298 |
DrawUtils.drawInts(g, viewPort, sym, feat, geom);
|
|
303 | 299 |
} else { |
304 |
doc.setDPI(dpi); |
|
305 |
doc.setCancellable(cancel); |
|
306 |
doc.setSymbol((ISymbol) csSym); |
|
300 |
DrawUtils.drawInts(g, viewPort, cancel, dpi, sym, feat, geom); |
|
307 | 301 |
} |
308 |
geom.invokeOperation(DrawInts.CODE, doc); |
|
302 |
|
|
309 | 303 |
} catch(Exception ex) { |
310 | 304 |
FeatureReference ref = null; |
311 | 305 |
if( feat!=null ) { |
Also available in: Unified diff