Package org.geotools.renderer.style.svg
Class SVGMarkFactory
- Object
-
- SVGMarkFactory
-
- All Implemented Interfaces:
MarkFactory
public class SVGMarkFactory extends Object implements MarkFactory
-
-
Constructor Summary
Constructors Constructor Description SVGMarkFactory()
SVGMarkFactory(Map<RenderingHints.Key,Object> hints)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Shape
getShape(Graphics2D graphics, Expression symbolUrl, Feature feature)
Turns the specified URL into an Shape, eventually using the Feature attributes to evaluate the expression, or returnsnull
if the factory cannot evaluate this symbolUrl.
-
-
-
Constructor Detail
-
SVGMarkFactory
public SVGMarkFactory()
-
SVGMarkFactory
public SVGMarkFactory(Map<RenderingHints.Key,Object> hints)
-
-
Method Detail
-
getShape
public Shape getShape(Graphics2D graphics, Expression symbolUrl, Feature feature) throws Exception
Description copied from interface:MarkFactory
Turns the specified URL into an Shape, eventually using the Feature attributes to evaluate the expression, or returnsnull
if the factory cannot evaluate this symbolUrl.The returned Shape must not exceed the [-0.5, -0.5, 0.5, 0.5] bounds (will be rescaled according to the
parameter given in graphics on the fly - Specified by:
getShape
in interfaceMarkFactory
symbolUrl
- the expression that will return the symbol name. Once evaluated the expression should return something likeplainName
or likeprotocol://path
. See the actual implementations for details on the kind of supported name.feature
- The feature that will be used to evaluate the symbolURL expression (or to extract data from it, think complex attributes, in that case a visit to the expression and some direct attribute value extraction might be needed instead)- Throws:
Exception
-
-