Class SegmentColourScheme
- java.lang.Object
-
- uk.ac.rdg.resc.edal.graphics.style.ColourScheme
-
- uk.ac.rdg.resc.edal.graphics.style.SegmentColourScheme
-
public class SegmentColourScheme extends ColourScheme
-
-
Constructor Summary
Constructors Constructor Description SegmentColourScheme(ScaleRange scaleRange, Color belowMinColour, Color aboveMaxColour, Color noDataColour, Color[] palette, Integer nColourBands)SegmentColourScheme(ScaleRange scaleRange, Color belowMinColour, Color aboveMaxColour, Color noDataColour, String paletteString, Integer nColourBands)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetColor(Number value)Returns the colour associated with the given valueFloatgetScaleMax()FloatgetScaleMin()-
Methods inherited from class uk.ac.rdg.resc.edal.graphics.style.ColourScheme
getScaleBar, getScaleBar
-
-
-
-
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
-
-