|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Color
org.scilab.forge.scirenderer.shapes.appearance.Color
public final class Color
| Field Summary |
|---|
| Fields inherited from class java.awt.Color |
|---|
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW |
| Fields inherited from interface java.awt.Transparency |
|---|
BITMASK, OPAQUE, TRANSLUCENT |
| Constructor Summary | |
|---|---|
Color()
Default constructor. |
|
Color(Color c)
Copy constructor |
|
Color(float r,
float g,
float b)
Creates an opaque sRGB color with the specified red, green, and blue values in the range [0.0; 1.0]. |
|
Color(float r,
float g,
float b,
float a)
Creates an sRGB color with the specified red, green, blue, and alpha values in the range [0.0; 1.0]. |
|
| Method Summary | |
|---|---|
float |
getAlphaAsFloat()
Return alpha component value. |
float |
getBlueAsFloat()
Return blue component value. |
float |
getGreenAsFloat()
Return green component value. |
float |
getRedAsFloat()
Return red component value. |
| Methods inherited from class java.awt.Color |
|---|
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Color()
public Color(Color c)
c - the color to copy.
public Color(float r,
float g,
float b,
float a)
r - the red componentg - the green componentb - the blue componenta - the alpha component
public Color(float r,
float g,
float b)
r - the red componentg - the green componentb - the blue component| Method Detail |
|---|
public float getRedAsFloat()
public float getGreenAsFloat()
public float getBlueAsFloat()
public float getAlphaAsFloat()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||