public final class JsonStyleParserHelper
extends java.lang.Object
| Constructor and Description |
|---|
JsonStyleParserHelper(Configuration configuration,
org.geotools.styling.StyleBuilder styleBuilder,
boolean allowNullSymbolizer,
org.mapfish.print.map.style.json.MapfishJsonStyleParserPlugin.Versions version)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.geotools.styling.LineSymbolizer |
createLineSymbolizer(PJsonObject styleJson)
Add a line symbolizer definition to the rule.
|
org.geotools.styling.PointSymbolizer |
createPointSymbolizer(PJsonObject styleJson)
Add a point symbolizer definition to the rule.
|
protected org.geotools.styling.PolygonSymbolizer |
createPolygonSymbolizer(PJsonObject styleJson)
Add a polygon symbolizer definition to the rule.
|
org.geotools.styling.Style |
createStyle(java.util.List<org.geotools.styling.Rule> styleRules)
Create a style from a list of rules.
|
protected org.geotools.styling.TextSymbolizer |
createTextSymbolizer(PJsonObject styleJson)
Add a text symbolizer definition to the rule.
|
void |
setVersion(org.mapfish.print.map.style.json.MapfishJsonStyleParserPlugin.Versions version) |
public JsonStyleParserHelper(@Nonnull
Configuration configuration,
@Nonnull
org.geotools.styling.StyleBuilder styleBuilder,
boolean allowNullSymbolizer,
org.mapfish.print.map.style.json.MapfishJsonStyleParserPlugin.Versions version)
configuration - the configuration to use for resolving relative files or other settings.styleBuilder - a style builder to use for creating the style objects.allowNullSymbolizer - If true then create*Symbolizer() methods can return null if expected params are missing.version - the version being parsed.public org.geotools.styling.Style createStyle(java.util.List<org.geotools.styling.Rule> styleRules)
styleRules - the rules@Nullable public org.geotools.styling.PointSymbolizer createPointSymbolizer(PJsonObject styleJson)
styleJson - The old style.@Nullable protected org.geotools.styling.LineSymbolizer createLineSymbolizer(PJsonObject styleJson)
styleJson - The old style.@Nullable protected org.geotools.styling.PolygonSymbolizer createPolygonSymbolizer(PJsonObject styleJson)
styleJson - The old style.protected org.geotools.styling.TextSymbolizer createTextSymbolizer(PJsonObject styleJson)
styleJson - The old style.public void setVersion(org.mapfish.print.map.style.json.MapfishJsonStyleParserPlugin.Versions version)