|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iastate.metnet.birdseyeview.GeneColor
public class GeneColor
The GeneColor Class determines the color of a gene panel based on the experimental variance of the gene product. It only has static methods. Remember that the variance is given as a percentage which could be positive or negative. The HSVtoRGB and RGBtoHSV methods work reasonably well. HSVtoRGB is sometimes off by 1 w/respect to blue, and RGBtoHSV sometimes is off by 1 w/respect to the hue. Regardless, none of the methods will return an invalid values.
| Constructor Summary | |
|---|---|
GeneColor()
|
|
| Method Summary | |
|---|---|
static java.awt.Color |
determineColor(double variance)
This method determines the color of a gene panel based on the given variance. |
static java.awt.Color |
directdetermineColor(double variance)
This method determines the color of a gene panel based on the given variance. |
static java.util.ArrayList |
HSVtoRGB(double hue,
double saturation,
double brightness)
This method determines the RGB values of the given color in HSV values. |
static void |
main(java.lang.String[] args)
This method tests the GeneColor class. |
static java.util.ArrayList |
RGBtoHSV(int red,
int green,
int blue)
This method determines the HSV values of the given color in RGB values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneColor()
| Method Detail |
|---|
public static java.awt.Color determineColor(double variance)
variance - Experimental variance, as a percentage
public static java.awt.Color directdetermineColor(double variance)
variance - Experimental variance, as a percentage
public static java.util.ArrayList RGBtoHSV(int red,
int green,
int blue)
red - green - blue -
public static java.util.ArrayList HSVtoRGB(double hue,
double saturation,
double brightness)
hue - saturation - brightness -
public static void main(java.lang.String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||