de.erichseifert.gral.plots.colors
Class AbstractColorMapper<T extends java.lang.Number>
- java.lang.Object
-
- de.erichseifert.gral.plots.colors.AbstractColorMapper<T>
-
- Type Parameters:
T- Data type of input values.
- All Implemented Interfaces:
- ColorMapper, java.io.Serializable
- Direct Known Subclasses:
- ContinuousColorMapper, IndexedColorMapper
public abstract class AbstractColorMapper<T extends java.lang.Number> extends java.lang.Object implements ColorMapper, java.io.Serializable
Interface that maps 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 AbstractColorMapper()Initializes a new instance with default values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description ColorMapper.ModegetMode()Returns how values outside of the mapping range will be handled.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.erichseifert.gral.plots.colors.ColorMapper
get
-
-
-
-
Constructor Detail
-
AbstractColorMapper
public AbstractColorMapper()
Initializes a new instance with default values.
-
-
Method Detail
-
getMode
public ColorMapper.Mode getMode()
Returns how values outside of the mapping range will be handled.- Specified by:
getModein interfaceColorMapper- Returns:
- Handling of values outside of the mapping range.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG