|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.plots.colors.RandomColors
public class RandomColors
Class that generates pseudo-random colors.
Constructor Summary | |
---|---|
RandomColors()
Creates a new RandomColors object with default seed. |
|
RandomColors(long seed)
Creates a new instances with the specified seed. |
Method Summary | |
---|---|
Color |
get(double value)
Returns the Color according to the specified value. |
float[] |
getColorVariance()
Returns the current color variance. |
void |
setColorVariance(float[] colorVariance)
Sets the current color variance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomColors()
public RandomColors(long seed)
seed
- Random number seed.Method Detail |
---|
public Color get(double value)
ColorMapper
get
in interface ColorMapper
value
- Value of color.
public float[] getColorVariance()
public void setColorVariance(float[] colorVariance)
colorVariance
- Range of hue, saturation and brightness a color can have.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |