|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtgl.core.JTGLColor
public final class JTGLColor
Manages Color info (TODO: Color conversion via JTGLColorManager) ColorSpace is sRGB with alpha or opacity information and default 8bits per component
Field Summary | |
---|---|
static JTGLColor |
BLACK
The color black. |
static JTGLColor |
BLUE
The color blue. |
static JTGLColor |
CYAN
The color cyan. |
static JTGLColor |
DARK_GRAY
The color dark gray. |
static JTGLColor |
GRAY
The color gray. |
static JTGLColor |
GREEN
The color green. |
static JTGLColor |
LIGHT_GRAY
The color light gray. |
static JTGLColor |
MAGENTA
The color magenta. |
static int |
MAX_LEVEL
Defines maximun component level |
static int |
OPAQUE
|
static JTGLColor |
ORANGE
The color orange. |
static JTGLColor |
PINK
The color pink. |
static JTGLColor |
RED
The color red. |
static int |
TRANSLUCENT
|
static int |
TRANSPARENT
|
static JTGLColor |
WHITE
The color white. |
static JTGLColor |
YELLOW
The color yellow. |
Constructor Summary | |
---|---|
JTGLColor(byte red,
byte green,
byte blue)
|
|
JTGLColor(int red,
int green,
int blue)
|
|
JTGLColor(int alpha,
int red,
int green,
int blue)
Creates a new instance of JTGLColor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getAlpha()
Returns the alpha value of the color. |
int |
getARGB()
Returns the argb value of the color. |
int |
getBlue()
Returns the blue value of the color. |
int |
getGray()
|
int |
getGreen()
Returns the green value of the color. |
int |
getRed()
Returns the red value of the color. |
int |
getRGB()
Returns the rgb value of the color. |
int |
hashCode()
|
java.lang.String |
toString()
|
JTGLColor |
translucent()
|
JTGLColor |
translucent(int level)
|
JTGLColor |
transparent()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_LEVEL
public static final int OPAQUE
public static final int TRANSLUCENT
public static final int TRANSPARENT
public static final JTGLColor WHITE
public static final JTGLColor LIGHT_GRAY
public static final JTGLColor GRAY
public static final JTGLColor DARK_GRAY
public static final JTGLColor BLACK
public static final JTGLColor RED
public static final JTGLColor PINK
public static final JTGLColor ORANGE
public static final JTGLColor YELLOW
public static final JTGLColor MAGENTA
public static final JTGLColor CYAN
public static final JTGLColor BLUE
public static final JTGLColor GREEN
Constructor Detail |
---|
public JTGLColor(int alpha, int red, int green, int blue)
public JTGLColor(int red, int green, int blue)
public JTGLColor(byte red, byte green, byte blue)
Method Detail |
---|
public int getAlpha()
public int getRed()
public int getGreen()
public int getBlue()
public int getARGB()
public int getRGB()
public int getGray()
public JTGLColor translucent(int level)
public JTGLColor translucent()
public JTGLColor transparent()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |