| java.lang.Object org.geotools.renderer.style.SLDStyleFactory
SLDStyleFactory | public class SLDStyleFactory (Code) | | Factory object that converts SLD style into rendered styles.
DJB: I've made a few changes to this.
The old behavior was for this class to convert tags to tags.
(ie. there never was a LinePlacement option)
This is *certainly* not the correct place to do this, and it was doing a very poor job of it too,
and the renderer was not expecting it to be doing it!
I added support in TextStyle3D for this and had this class correctly set Line/Point placement selection.
NOTE: PointPlacement is the default if not present.
author: aaime author: dblasby |
Method Summary | |
Style2D | createDynamicLineStyle(Feature feature, LineSymbolizer symbolizer, Range scaleRange) | Style2D | createDynamicPolygonStyle(Feature feature, PolygonSymbolizer symbolizer, Range scaleRange) | public Style2D | createDynamicStyle(Feature f, Symbolizer symbolizer, Range scaleRange) | Style2D | createLineStyle(Object feature, LineSymbolizer symbolizer, Range scaleRange) | Style2D | createPointStyle(Object feature, PointSymbolizer symbolizer, Range scaleRange) | Style2D | createPolygonStyle(Object feature, PolygonSymbolizer symbolizer, Range scaleRange) | public Style2D | createStyle(Object drawMe, Symbolizer symbolizer, Range scaleRange)
Creates a rendered style
Makes use of a symbolizer cache based on identity to avoid recomputing over and over the
same style object and to reduce memory usage. | Style2D | createTextStyle(Object feature, TextSymbolizer symbolizer, Range scaleRange) | protected Composite | getComposite(Fill fill, Object feature) | public double | getHitRatio() | public long | getHits() | public double | getMapScaleDenominator() Getter for property mapScaleDenominator. | protected Paint | getPaint(Fill fill, Object feature) | public long | getRequests() | public TexturePaint | getTexturePaint(org.geotools.styling.Graphic gr, Object feature) | public static int | lookUpCap(String capType) | public static int | lookUpJoin(String joinType) | public void | setMapScaleDenominator(double mapScaleDenominator) Setter for property mapScaleDenominator. | void | setScaleRange(Style style, Range scaleRange) |
dynamicSymbolizers | Map dynamicSymbolizers(Code) | | Symbolizers that depend on attributes
|
staticSymbolizers | Map staticSymbolizers(Code) | | Symbolizers that do not depend on attributes
|
supportedGraphicFormats | static Set supportedGraphicFormats(Code) | | Holds the of graphic formats supported by the current jdk
|
svgGlyphs | Map svgGlyphs(Code) | | Parsed SVG glyphs
|
wellKnownMarks | static Set wellKnownMarks(Code) | | Holds the set of well-known marks.
|
createDynamicStyle | public Style2D createDynamicStyle(Feature f, Symbolizer symbolizer, Range scaleRange)(Code) | | Creates a rendered style
Parameters: f - The feature Parameters: symbolizer - The SLD symbolizer Parameters: scaleRange - The scale range in which the feature should be painted according to thesymbolizer A rendered style equivalent to the symbolizer throws: UnsupportedOperationException - if an unknown symbolizer is passed to this method |
createStyle | public Style2D createStyle(Object drawMe, Symbolizer symbolizer, Range scaleRange)(Code) | |
Creates a rendered style
Makes use of a symbolizer cache based on identity to avoid recomputing over and over the
same style object and to reduce memory usage. The same Style2D object will be returned by
subsequent calls using the same feature independent symbolizer with the same scaleRange.
Parameters: drawMe - The feature Parameters: symbolizer - The SLD symbolizer Parameters: scaleRange - The scale range in which the feature should be painted according to thesymbolizer A rendered style equivalent to the symbolizer |
getComposite | protected Composite getComposite(Fill fill, Object feature)(Code) | | Computes the Composite equivalent to the opacity in the SLD Fill
Parameters: fill - Parameters: feature - |
getHitRatio | public double getHitRatio()(Code) | | |
getHits | public long getHits()(Code) | | |
getMapScaleDenominator | public double getMapScaleDenominator()(Code) | | Getter for property mapScaleDenominator.
Value of property mapScaleDenominator. |
getRequests | public long getRequests()(Code) | | |
lookUpCap | public static int lookUpCap(String capType)(Code) | | DOCUMENT ME!
Parameters: capType - DOCUMENT ME! DOCUMENT ME! |
lookUpJoin | public static int lookUpJoin(String joinType)(Code) | | DOCUMENT ME!
Parameters: joinType - DOCUMENT ME! DOCUMENT ME! |
setMapScaleDenominator | public void setMapScaleDenominator(double mapScaleDenominator)(Code) | | Setter for property mapScaleDenominator.
Parameters: mapScaleDenominator - New value of property mapScaleDenominator. |
setScaleRange | void setScaleRange(Style style, Range scaleRange)(Code) | | |
|
|