Revision 21144 branches/v2_0_0_prep/libraries/libFMap/src/org/gvsig/fmap/mapcontext/rendering/legend/FGraphic.java
FGraphic.java | ||
---|---|---|
46 | 46 |
import java.awt.Graphics2D; |
47 | 47 |
|
48 | 48 |
import org.gvsig.fmap.geom.Geometry; |
49 |
import org.gvsig.fmap.geom.operation.Draw; |
|
50 |
import org.gvsig.fmap.geom.operation.DrawOperationContext; |
|
51 |
import org.gvsig.fmap.geom.operation.GeometryOperationException; |
|
52 |
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException; |
|
49 | 53 |
import org.gvsig.fmap.mapcontext.ViewPort; |
50 | 54 |
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol; |
51 | 55 |
|
... | ... | |
182 | 186 |
if (theSymbol.isShapeVisible()) |
183 | 187 |
{ |
184 | 188 |
Geometry cloneGeom = geom.cloneGeometry(); |
185 |
cloneGeom.draw(g,viewPort,theSymbol, null); |
|
189 |
DrawOperationContext doc=new DrawOperationContext(); |
|
190 |
doc.setGraphics(g); |
|
191 |
doc.setViewPort(viewPort); |
|
192 |
doc.setSymbol(theSymbol); |
|
193 |
try { |
|
194 |
cloneGeom.invokeOperation(Draw.CODE,doc); |
|
195 |
} catch (GeometryOperationNotSupportedException e) { |
|
196 |
// TODO Auto-generated catch block |
|
197 |
e.printStackTrace(); |
|
198 |
} catch (GeometryOperationException e) { |
|
199 |
// TODO Auto-generated catch block |
|
200 |
e.printStackTrace(); |
|
201 |
} |
|
202 |
// cloneGeom.draw(g,viewPort,theSymbol, null); |
|
186 | 203 |
} |
187 | 204 |
} |
188 | 205 |
|
Also available in: Unified diff