Class AbstractSLDSegmentFunction<T>
- java.lang.Object
-
- uk.ac.rdg.resc.edal.graphics.style.sld.AbstractSLDFunction<T>
-
- uk.ac.rdg.resc.edal.graphics.style.sld.AbstractSLDSegmentFunction<T>
-
- All Implemented Interfaces:
SLDFunction<T>
- Direct Known Subclasses:
ColorSLDSegmentFunction
,FloatSLDSegmentFunction
public abstract class AbstractSLDSegmentFunction<T> extends AbstractSLDFunction<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected T
aboveMaxValue
protected T
belowMinValue
protected Integer
numberOfSegments
protected String
paletteName
protected SLDRange
range
protected List<T>
valueList
-
Constructor Summary
Constructors Constructor Description AbstractSLDSegmentFunction(XPath xPath, Node function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getAboveMaxValue()
T
getBelowMinValue()
Integer
getNumberOfSegments()
String
getPaletteName()
SLDRange
getRange()
List<T>
getValueList()
protected void
parseNumberOfSegments()
Parse in the number of segments.protected void
parseRange()
Parse in the range (minimum, maximum and spacing).protected NodeList
parseValueList()
Parse the value list.-
Methods inherited from class uk.ac.rdg.resc.edal.graphics.style.sld.AbstractSLDFunction
getFallbackValue, parseColorFallbackValue, parseFloatFallbackValue, parseLookupValue
-
-
-
-
Method Detail
-
getPaletteName
public String getPaletteName()
-
getAboveMaxValue
public T getAboveMaxValue()
-
getBelowMinValue
public T getBelowMinValue()
-
getNumberOfSegments
public Integer getNumberOfSegments()
-
getRange
public SLDRange getRange()
-
parseValueList
protected NodeList parseValueList() throws XPathExpressionException, SLDException
Parse the value list. If a name is present put it in paletteName else get the list of values or return an error if not present.- Returns:
- NodeList of values
- Throws:
XPathExpressionException
SLDException
-
parseNumberOfSegments
protected void parseNumberOfSegments() throws XPathExpressionException
Parse in the number of segments.- Throws:
XPathExpressionException
-
parseRange
protected void parseRange() throws SLDException
Parse in the range (minimum, maximum and spacing).- Throws:
XPathExpressionException
SLDException
-
-