|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.plots.colors.SingleColor
public class SingleColor
Class that represents a ColorMapper with a single color.
Constructor Summary | |
---|---|
SingleColor(Color color)
Creates a new instance with the specified color. |
Method Summary | |
---|---|
Color |
get(double value)
Returns the Color according to the specified value. |
Color |
getColor()
Returns the color of this ColorMapper. |
void |
setColor(Color color)
Sets the color of this ColorMapper. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SingleColor(Color color)
color
- Color to use.Method Detail |
---|
public Color get(double value)
ColorMapper
get
in interface ColorMapper
value
- Value of color.
public Color getColor()
public void setColor(Color color)
color
- Color to be set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |