|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectj2d.color.WavelengthUtils
public class WavelengthUtils
User: lyon Date: May 29, 2006 Time: 7:27:25 AM Copyright DocJava, Inc. 2005.
Constructor Summary | |
---|---|
WavelengthUtils()
|
Method Summary | |
---|---|
static double |
getBlue(double lambda)
assume that the lambda is ranging from 400 to 800 nm, so don't bother with light below 110 nm. |
static java.awt.Color |
getColor(int lambda)
|
static java.awt.Color[] |
getColors(int n)
return an array that contains colors in the 400 to 800 nm band. |
static double |
getGreen(double lambda)
|
static int[][] |
getLambdaMap(java.awt.Image img)
|
static java.awt.Image |
getRainbow(int w,
int h)
|
static double |
getRed(double lambda)
|
static int |
getScaledColor(double d)
|
static FloatImageBean |
getYiqWavelengthMap()
The Yiq wavelength map is a float image bean that contains a 400 wide line of Yiq coordinates. |
static void |
main(java.lang.String[] args)
|
static void |
testGetBlue()
|
static void |
testGetColors()
|
static void |
testGetGreen()
|
static void |
testGetLambdaMap()
|
static void |
testGetRainbow()
|
static void |
testGetRed()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WavelengthUtils()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static void testGetLambdaMap()
public static int[][] getLambdaMap(java.awt.Image img)
public static FloatImageBean getYiqWavelengthMap()
public static void testGetRainbow()
public static java.awt.Image getRainbow(int w, int h)
public static void testGetColors()
public static java.awt.Color[] getColors(int n)
n
- number of colors
public static java.awt.Color getColor(int lambda)
public static int getScaledColor(double d)
public static void testGetGreen()
public static void testGetRed()
public static void testGetBlue()
public static double getGreen(double lambda)
lambda
- wavelength of light
public static double getBlue(double lambda)
lambda
- wavelength of light
public static double getRed(double lambda)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |