public class SingleColor extends IndexedColorMapper
ColorMapper.Mode
Constructor and Description |
---|
SingleColor(java.awt.Paint color)
Creates a new instance with the specified color.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.awt.Paint |
get(int value)
Returns the Paint according to the specified value.
|
java.awt.Paint |
getColor()
Returns the color of this ColorMapper.
|
int |
hashCode() |
void |
setColor(java.awt.Paint color)
Sets the color of this ColorMapper.
|
applyMode, get
getMode, setMode
public SingleColor(java.awt.Paint color)
color
- Color to use.public java.awt.Paint get(int value)
get
in class IndexedColorMapper
value
- Numeric index.public java.awt.Paint getColor()
public void setColor(java.awt.Paint color)
color
- Color to be set.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object