VeaR/JEllipse

pl.krakow.cmuj.bioinformatics.jellipse
Class RedGreen

java.lang.Object
  extended by pl.krakow.cmuj.bioinformatics.jellipse.RedGreen
All Implemented Interfaces:
ColorScheme

 class RedGreen
extends java.lang.Object
implements ColorScheme

Fresh or even garish color scheme.


Field Summary
(package private)  float[] color
          values of red, green, blue calculated by getColor
 
Constructor Summary
RedGreen()
          create new instance of ColorScheme due to the ColorScheme scheme
 
Method Summary
 float[] getColor(float value)
          This function should be overriden by implementing classes, providing a recipe for color components calculations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

float[] color
values of red, green, blue calculated by getColor

Constructor Detail

RedGreen

RedGreen()
create new instance of ColorScheme due to the ColorScheme scheme

Method Detail

getColor

public float[] getColor(float value)
Description copied from interface: ColorScheme
This function should be overriden by implementing classes, providing a recipe for color components calculations.

Specified by:
getColor in interface ColorScheme
Parameters:
value - value for which the color components are to be calculated
Returns:
3-element array containing color components in the order: r,g,b according to ColorScheme coloring scheme

VeaR/JEllipse