de.erichseifert.gral.plots.colors
Class QuasiRandomColors

java.lang.Object
  extended by de.erichseifert.gral.plots.colors.QuasiRandomColors
All Implemented Interfaces:
ColorMapper

public class QuasiRandomColors
extends Object
implements ColorMapper

Class that generates seemingly random colors.


Constructor Summary
QuasiRandomColors()
          Creates a new QuasiRandomColors object with default color variance.
 
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

QuasiRandomColors

public QuasiRandomColors()
Creates a new QuasiRandomColors object with default color variance.

Method Detail

get

public Color get(double value)
Description copied from interface: ColorMapper
Returns the Color according to the specified value.

Specified by:
get in interface ColorMapper
Parameters:
value - Value of color.
Returns:
Color.

getColorVariance

public float[] getColorVariance()
Returns the current color variance.

Returns:
Range of hue, saturation and brightness a color can have.

setColorVariance

public void setColorVariance(float[] colorVariance)
Sets the current color variance.

Parameters:
colorVariance - Range of hue, saturation and brightness a color can have.


Copyright © 2009-2010. All Rights Reserved.