|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.asu.cri.MirkE.gui.DataSetColorModel
Constructor Summary | |
DataSetColorModel()
Default constructor |
Method Summary | |
static java.util.Map |
getWavelengthToCIE_XYZ()
|
static java.awt.Color |
observableToMeanValueMapToColor(java.util.Map observableToMeanValueMap)
|
static java.awt.Color |
toColor(MirkE mirke,
java.util.Map observableToMinValueMap,
java.util.Map observableToMeanValueMap,
java.util.Map observableToMaxValueMap)
|
static java.awt.Color |
toColor(MirkE mirke,
java.lang.String query)
|
static java.util.Vector |
toVector(float[] values)
Simple conversion from an array of floats to a Vector |
static float[] |
wavelengthToCIE_XYZcomponents(java.lang.Integer wavelength)
|
static java.awt.Color |
wavelengthToColor(double wavelength,
double alpha)
Convert from a wavelength of monochromatic light to an approximate Color |
static java.awt.Color |
wavelengthToColor(java.lang.Integer wavelength,
double alpha)
Convert from a wavelength of monochromatic light to an approximate Color |
static java.awt.Color |
wavelengthToColor(java.lang.Integer wavelength,
float alpha)
Convert from a wavelength of monochromatic light to an approximate Color |
static java.awt.Color |
xyzToColor(float[] xyzValues)
Convert from XYZ values to a Color |
static java.awt.Color |
xyzToColor(float[] xyzValues,
float alpha)
Convert from XYZ values to a Color |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DataSetColorModel()
Method Detail |
public static java.awt.Color toColor(MirkE mirke, java.lang.String query)
mirke
- query
- HQL query
public static java.awt.Color toColor(MirkE mirke, java.util.Map observableToMinValueMap, java.util.Map observableToMeanValueMap, java.util.Map observableToMaxValueMap) throws MirkESystemException
mirke
- observableToMinValueMap
- observableToMeanValueMap
- observableToMaxValueMap
-
MirkEApplicationException
MirkESystemException
public static java.util.Map getWavelengthToCIE_XYZ() throws MirkEFileNotFoundException
Map
from wavelength in nm to a Vector
containing components of a corresponding CIE_XYZ color
MirkEFileNotFoundException
public static float[] wavelengthToCIE_XYZcomponents(java.lang.Integer wavelength) throws MirkEApplicationException, MirkEFileNotFoundException
wavelength
-
wavelength of monochromatic light at a standard intensity
- Throws:
MirkEApplicationException
MirkEFileNotFoundException
public static java.awt.Color wavelengthToColor(double wavelength, double alpha) throws MirkEApplicationException, MirkEFileNotFoundException
wavelength
- an double
wavelength (in nm)alpha
- The alpha channel component of the returned Color
MirkEApplicationException
MirkEFileNotFoundException
public static java.awt.Color wavelengthToColor(java.lang.Integer wavelength, double alpha) throws MirkEApplicationException, MirkEFileNotFoundException
wavelength
- an Integer
wavelength (in nm)alpha
- The alpha channel component of the returned Color
MirkEApplicationException
MirkEFileNotFoundException
public static java.awt.Color xyzToColor(float[] xyzValues) throws MirkEApplicationException
xyzValues
-
MirkEApplicationException
public static java.awt.Color xyzToColor(float[] xyzValues, float alpha) throws MirkEApplicationException
xyzValues
- alpha
-
MirkEApplicationException
public static java.awt.Color wavelengthToColor(java.lang.Integer wavelength, float alpha) throws MirkEApplicationException, MirkEFileNotFoundException
wavelength
- an Integer
wavelength (in nm)alpha
- The alpha channel component of the returned Color
MirkEApplicationException
MirkEFileNotFoundException
public static java.awt.Color observableToMeanValueMapToColor(java.util.Map observableToMeanValueMap) throws MirkEApplicationException, MirkEFileNotFoundException
observableToMeanValueMap
-
Color
for the observable
MirkEApplicationException
MirkEFileNotFoundException
public static java.util.Vector toVector(float[] values)
values
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |