Class InterpolateColourScheme
- java.lang.Object
 - 
- uk.ac.rdg.resc.edal.graphics.style.ColourScheme
 - 
- uk.ac.rdg.resc.edal.graphics.style.EnumeratedColourScheme
 - 
- uk.ac.rdg.resc.edal.graphics.style.InterpolateColourScheme
 
 
 
 
- 
public class InterpolateColourScheme extends EnumeratedColourScheme
Takes a list of interpolation points with colours and data points. If a data value is below the first point then the first colour is returned. If it is above the last point then the last colour is returned. If it is in between two points then the colour is interpolated. This provides the functionality required by the Symbology Encoding interpolation function.- Author:
 - Charles Roberts
 
 
- 
- 
Constructor Summary
Constructors Constructor Description InterpolateColourScheme(List<InterpolationPoint<Color>> points, Color noDataColour) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetColor(Number value)Returns the colour associated with the given valueList<Float>getEnumeratedPoints()FloatgetScaleMax()FloatgetScaleMin()- 
Methods inherited from class uk.ac.rdg.resc.edal.graphics.style.ColourScheme
getScaleBar, getScaleBar 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
InterpolateColourScheme
public InterpolateColourScheme(List<InterpolationPoint<Color>> points, Color noDataColour)
 
 - 
 
- 
Method Detail
- 
getColor
public Color getColor(Number value)
Description copied from class:ColourSchemeReturns the colour associated with the given value- Specified by:
 getColorin classColourScheme- Parameters:
 value- The value to get a colour for- Returns:
 - The 
Coloraccording to thisColourScheme 
 
- 
getScaleMin
public Float getScaleMin()
- Specified by:
 getScaleMinin classColourScheme- Returns:
 - The minimum value of this colour scale
 
 
- 
getScaleMax
public Float getScaleMax()
- Specified by:
 getScaleMaxin classColourScheme- Returns:
 - The maximum value of this colour scale
 
 
- 
getEnumeratedPoints
public List<Float> getEnumeratedPoints()
- Specified by:
 getEnumeratedPointsin classEnumeratedColourScheme- Returns:
 - The points where this 
ColourSchemeis defined to undergo a specific change. 
 
 - 
 
 -