de.erichseifert.gral.plots.colors
Class RainbowColors
- java.lang.Object
-
- de.erichseifert.gral.plots.colors.AbstractColorMapper<java.lang.Double>
-
- de.erichseifert.gral.plots.colors.ContinuousColorMapper
-
- de.erichseifert.gral.plots.colors.ScaledContinuousColorMapper
-
- de.erichseifert.gral.plots.colors.RainbowColors
-
- All Implemented Interfaces:
- ColorMapper, java.io.Serializable
public class RainbowColors extends ScaledContinuousColorMapper
Class that generates the colors of a rainbow.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.erichseifert.gral.plots.colors.ColorMapper
ColorMapper.Mode
-
-
Constructor Summary
Constructors Constructor and Description RainbowColors()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.Paintget(double value)Returns the Paint according to the specified value.voidsetMode(ColorMapper.Mode mode)Sets how values outside of the mapping range will be handled.-
Methods inherited from class de.erichseifert.gral.plots.colors.ScaledContinuousColorMapper
equals, getOffset, getScale, hashCode, setOffset, setRange, setScale
-
Methods inherited from class de.erichseifert.gral.plots.colors.ContinuousColorMapper
get
-
Methods inherited from class de.erichseifert.gral.plots.colors.AbstractColorMapper
getMode
-
-
-
-
Method Detail
-
get
public java.awt.Paint get(double value)
Returns the Paint according to the specified value.- Specified by:
getin classContinuousColorMapper- Parameters:
value- Value of color.- Returns:
- Paint.
-
setMode
public void setMode(ColorMapper.Mode mode)
Description copied from class:AbstractColorMapperSets how values outside of the mapping range will be handled.- Parameters:
mode- Handling of values outside of the mapping range.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG