Class ThresholdColourScheme
- 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.ThresholdColourScheme
-
public class ThresholdColourScheme extends EnumeratedColourScheme
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Color
getColor(Number value)
Returns the colour associated with the given valueList<Float>
getEnumeratedPoints()
Float
getScaleMax()
Float
getScaleMin()
-
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:ColourScheme
Returns the colour associated with the given value- Specified by:
getColor
in classColourScheme
- Parameters:
value
- The value to get a colour for- Returns:
- The
Color
according to thisColourScheme
-
getScaleMin
public Float getScaleMin()
- Specified by:
getScaleMin
in classColourScheme
- Returns:
- The minimum value of this colour scale
-
getScaleMax
public Float getScaleMax()
- Specified by:
getScaleMax
in classColourScheme
- Returns:
- The maximum value of this colour scale
-
getEnumeratedPoints
public List<Float> getEnumeratedPoints()
- Specified by:
getEnumeratedPoints
in classEnumeratedColourScheme
- Returns:
- The points where this
ColourScheme
is defined to undergo a specific change.
-
-