public class IndexedColors extends IndexedColorMapper
ColorMapper.Mode
Constructor and Description |
---|
IndexedColors(Color color1,
Color... colors)
Creates a new instance with at least one color.
|
Modifier and Type | Method and Description |
---|---|
Paint |
get(int index)
Returns the Paint object associated to the specified index value.
|
List<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 Paint get(int index)
get
in class IndexedColorMapper
index
- Numeric index.public List<Color> getColors()
public void setMode(ColorMapper.Mode mode)
AbstractColorMapper
setMode
in class AbstractColorMapper<Integer>
mode
- Handling of values outside of the mapping range.Copyright © 2009-2013. All Rights Reserved.