de.erichseifert.gral.plots.colors
Class IndexedColorMapper
- java.lang.Object
-
- de.erichseifert.gral.plots.colors.AbstractColorMapper<java.lang.Integer>
-
- de.erichseifert.gral.plots.colors.IndexedColorMapper
-
- All Implemented Interfaces:
- ColorMapper, java.io.Serializable
- Direct Known Subclasses:
- IndexedColors, QuasiRandomColors, RandomColors, SingleColor
public abstract class IndexedColorMapper extends AbstractColorMapper<java.lang.Integer>
Class that maps integer 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 IndexedColorMapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract java.awt.Paintget(int value)Returns the Paint object according to the specified index.java.awt.Paintget(java.lang.Number index)Returns the Paint object according to the specified index.-
Methods inherited from class de.erichseifert.gral.plots.colors.AbstractColorMapper
getMode
-
-
-
-
Method Detail
-
get
public abstract java.awt.Paint get(int value)
Returns the Paint object according to the specified index.- Parameters:
value- Numeric index.- Returns:
- Paint object.
-
get
public java.awt.Paint get(java.lang.Number index)
Returns the Paint object according to the specified index. The specified value will be handled like an integer index.- Parameters:
index- Numeric index object.- Returns:
- Paint object.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG