public class IndexedColors extends IndexedColorMapper
ColorMapper.Mode
Constructor and Description |
---|
IndexedColors(java.awt.Color color1,
java.awt.Color... colors)
Creates a new instance with at least one color.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Paint |
get(int index)
Returns the Paint object associated to the specified index value.
|
java.util.List<java.awt.Color> |
getColors()
Returns the colors that are used for mapping.
|
void |
setMode(ColorMapper.Mode mode)
Sets how values outside of the mapping range will be handled.
|
applyMode, get
getMode
public IndexedColors(java.awt.Color color1, java.awt.Color... colors)
color1
- First color.colors
- Additional colors.public java.awt.Paint get(int index)
get
in class IndexedColorMapper
index
- Numeric index.public java.util.List<java.awt.Color> getColors()
public void setMode(ColorMapper.Mode mode)
AbstractColorMapper
setMode
in class AbstractColorMapper<java.lang.Integer>
mode
- Handling of values outside of the mapping range.