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 TaboveMaxValueprotected TbelowMinValueprotected IntegernumberOfSegmentsprotected StringpaletteNameprotected SLDRangerangeprotected 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 TgetAboveMaxValue()TgetBelowMinValue()IntegergetNumberOfSegments()StringgetPaletteName()SLDRangegetRange()List<T>getValueList()protected voidparseNumberOfSegments()Parse in the number of segments.protected voidparseRange()Parse in the range (minimum, maximum and spacing).protected NodeListparseValueList()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:
XPathExpressionExceptionSLDException
-
parseNumberOfSegments
protected void parseNumberOfSegments() throws XPathExpressionExceptionParse in the number of segments.- Throws:
XPathExpressionException
-
parseRange
protected void parseRange() throws SLDExceptionParse in the range (minimum, maximum and spacing).- Throws:
XPathExpressionExceptionSLDException
-
-