Class AbstractSLDSymbolizer
- java.lang.Object
-
- uk.ac.rdg.resc.edal.graphics.style.sld.AbstractSLDSymbolizer
-
- All Implemented Interfaces:
SLDSymbolizer
- Direct Known Subclasses:
AbstractSLDSymbolizer1D
,AbstractSLDSymbolizer2D
public abstract class AbstractSLDSymbolizer extends Object implements SLDSymbolizer
-
-
Field Summary
Fields Modifier and Type Field Description protected ImageLayer
imageLayer
protected Node
symbolizerNode
protected List<String>
varNames
protected XPath
xPath
-
Constructor Summary
Constructors Constructor Description AbstractSLDSymbolizer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ImageLayer
getImageLayer(List<String> varNames, Node symbolizerNode)
Parse the node of the SLD XML document when given as a parameter as well as the name of the SLD layer and return an image layer object.protected abstract ImageLayer
parseSymbolizer()
This method must be implemented by any symbolizer classes extending this class.protected abstract void
setVarNames(List<String> varNames)
-
-
-
Field Detail
-
symbolizerNode
protected Node symbolizerNode
-
imageLayer
protected ImageLayer imageLayer
-
xPath
protected XPath xPath
-
-
Method Detail
-
parseSymbolizer
protected abstract ImageLayer parseSymbolizer() throws Exception
This method must be implemented by any symbolizer classes extending this class. New subclasses should use the xPath field to parse the symbolizerNode field, which will contain the symbolizer node of the SLD XML document on execution. The SLD layer name is also provided in the layerName field. The resulting image layer should be returned. New symbolizers must also be registered using the registerSymbolizer method of the StyleSLDParser class at runtime, either in the static initializer of that class or elsewhere before the createImage method of StyleSLDParser is executed.- Returns:
- ImageLayer
- Throws:
Exception
-
getImageLayer
public ImageLayer getImageLayer(List<String> varNames, Node symbolizerNode) throws SLDException
Parse the node of the SLD XML document when given as a parameter as well as the name of the SLD layer and return an image layer object.- Specified by:
getImageLayer
in interfaceSLDSymbolizer
- Parameters:
varNames
-symbolizerNode
-- Returns:
- ImageLayer
- Throws:
SLDException
-
setVarNames
protected abstract void setVarNames(List<String> varNames) throws SLDException
- Throws:
SLDException
-
-