de.erichseifert.gral.plots.colors
Class ContinuousColorMapper
- java.lang.Object
-
- de.erichseifert.gral.plots.colors.AbstractColorMapper<java.lang.Double>
-
- de.erichseifert.gral.plots.colors.ContinuousColorMapper
-
- All Implemented Interfaces:
- ColorMapper, java.io.Serializable
- Direct Known Subclasses:
- ScaledContinuousColorMapper
public abstract class ContinuousColorMapper extends AbstractColorMapper<java.lang.Double>
Class that maps floating point numbers to Paint objects. This can be used to generate colors or gradients for various elements in a plot, e.g. lines, areas, etc.- 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 ContinuousColorMapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract java.awt.Paintget(double value)Returns the Paint object according to the specified value.java.awt.Paintget(java.lang.Number value)Returns the Paint object according to the specified value.-
Methods inherited from class de.erichseifert.gral.plots.colors.AbstractColorMapper
getMode
-
-
-
-
Method Detail
-
get
public abstract java.awt.Paint get(double value)
Returns the Paint object according to the specified value.- Parameters:
value- Numeric value.- Returns:
- Paint object.
-
get
public java.awt.Paint get(java.lang.Number value)
Returns the Paint object according to the specified value. The specified value will be handled like a double value.- Parameters:
value- Numeric value object.- Returns:
- Paint object.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG