|
The Physiologist's Friend Simulation API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.unizh.ini.friend.graphics.LMSColor
public class LMSColor
Represents a color in the LMS color space. The Color
class
itself supports color spaces, however, this class does not use this feature.
It's merely a convenience class to keep things simple.
Constructor Summary | |
---|---|
LMSColor(Color color)
Creates a new color instance in the LMS color space. |
Method Summary | |
---|---|
Color |
getColor()
Returns the color in the sRGB color space. |
float |
getL()
Returns the long-wavelength (red) component. |
float |
getM()
Returns the middle-wavelength (green) component. |
float |
getS()
Returns the short-wavelength (blue) component. |
String |
toString()
Returns a string representation of this LMSColor . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LMSColor(Color color)
color
- the color in the sRGB color spaceMethod Detail |
---|
public float getL()
public float getM()
public float getS()
public Color getColor()
public String toString()
LMSColor
. This
method is intended to be used only for debugging purposes. The
content and format of the returned string might vary between
implementations. The returned string might be empty but cannot
be null
.
toString
in class Object
LMSColor
.
|
http://www.ini.unizh.ch/~tobi/friend | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |