de.erichseifert.gral.plots.colors
Interface ColorMapper
-
- All Known Implementing Classes:
- AbstractColorMapper, ContinuousColorMapper, Grayscale, HeatMap, IndexedColorMapper, IndexedColors, LinearGradient, QuasiRandomColors, RainbowColors, RandomColors, ScaledContinuousColorMapper, SingleColor
public interface ColorMapperBasic interface for classes that map numbers to Paint objects. This can be used to generate colors or gradients for various elements in a plot, e.g. points, lines, areas, etc.ContinuousColorMapperorIndexedColorMappershould be used as base classes in most cases.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static classColorMapper.ModeData type to define how values outside of the mapping range will be handled.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.awt.Paintget(java.lang.Number value)Returns the Paint object according to the specified value.ColorMapper.ModegetMode()Returns how values outside of the mapping range will be handled.
-
-
-
Method Detail
-
get
java.awt.Paint get(java.lang.Number value)
Returns the Paint object according to the specified value.- Parameters:
value- Numeric value.- Returns:
- Paint object.
-
getMode
ColorMapper.Mode getMode()
Returns how values outside of the mapping range will be handled.- Returns:
- Handling of values outside of the mapping range.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG