Revision 13245
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/styles/SVGStyle.java | ||
---|---|---|
46 | 46 |
import java.awt.geom.Rectangle2D; |
47 | 47 |
import java.io.File; |
48 | 48 |
import java.io.IOException; |
49 |
import java.util.Map; |
|
49 | 50 |
|
50 | 51 |
import org.apache.batik.bridge.BridgeContext; |
51 | 52 |
import org.apache.batik.bridge.DocumentLoader; |
... | ... | |
59 | 60 |
import org.w3c.dom.svg.SVGDocument; |
60 | 61 |
|
61 | 62 |
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol; |
62 |
import com.iver.utiles.XMLEntity; |
|
63 | 63 |
/** |
64 | 64 |
* Style for a SVG files.This is a XML specification and file format for |
65 | 65 |
* describing two-dimensional vector graphics, both static and animated. |
... | ... | |
80 | 80 |
private BridgeContext ctx; |
81 | 81 |
private Element elt; |
82 | 82 |
|
83 |
protected static RenderingHints defaultRenderingHints;
|
|
83 |
protected static Map defaultRenderingHints;
|
|
84 | 84 |
static { |
85 | 85 |
defaultRenderingHints = new RenderingHints(null); |
86 | 86 |
defaultRenderingHints.put(RenderingHints.KEY_ANTIALIASING, |
... | ... | |
108 | 108 |
ataux.concatenate(ViewBox.getViewTransform(null, elt, |
109 | 109 |
(float) rect.getWidth(), (float) rect.getHeight())); |
110 | 110 |
|
111 |
RenderingHints renderingHints = new RenderingHints(defaultRenderingHints); |
|
111 |
RenderingHints renderingHints = new RenderingHints((Map<RenderingHints.Key,?>)defaultRenderingHints);
|
|
112 | 112 |
g.setRenderingHints(renderingHints); |
113 | 113 |
gvtRoot.setTransform(ataux); |
114 | 114 |
gvtRoot.paint(g); |
Also available in: Unified diff