| Modifier and Type | Field and Description |
|---|---|
| private byte | alpha
Color components, publicly accessible |
| private byte | blue
Color components, publicly accessible |
| private byte | green
Color components, publicly accessible |
| private byte | red
Color components, publicly accessible |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public void | fromHSB(float
(0..1.0f) hue, float (0..1.0f) saturation, float (0..1.0f) brightness)HSB to RGB conversion, pinched from java.awt.Color. |
| public int | |
| public byte | |
| public int | |
| public byte | |
| public int | |
| public byte | |
| public int | |
| public byte | |
| public int | |
| public void | readABGR(ByteBuffer
The source buffer src)Implements org. |
| public void | readARGB(ByteBuffer
The source buffer src)Implements org. |
| public void | readBGR(ByteBuffer
The source buffer src)Implements org. |
| public void | readBGRA(ByteBuffer
The source buffer src)Implements org. |
| public void | readRGB(ByteBuffer
The source buffer src)Implements org. |
| public void | readRGBA(ByteBuffer
The source buffer src)Implements org. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setColor(ReadableColor
The source color src)Implements org. |
| public void | |
| public void | |
| public void | |
| public void | |
| public float[] | Returns: dest, or a new float arrayDestination floats, or null dest)RGB to HSB conversion, pinched from java.awt.Color. |
| public String | |
| public void | writeABGR(ByteBuffer
the buffer to write to dest)Implements org. |
| public void | writeARGB(ByteBuffer
the buffer to write to dest)Implements org. |
| public void | writeBGR(ByteBuffer
the buffer to write to dest)Implements org. |
| public void | writeBGRA(ByteBuffer
the buffer to write to dest)Implements org. |
| public void | writeRGB(ByteBuffer
the buffer to write to dest)Implements org. |
| public void | writeRGBA(ByteBuffer
the buffer to write to dest)Implements org. |
| alpha | back to summary |
|---|---|
| private byte alpha Color components, publicly accessible | |
| blue | back to summary |
|---|---|
| private byte blue Color components, publicly accessible | |
| green | back to summary |
|---|---|
| private byte green Color components, publicly accessible | |
| red | back to summary |
|---|---|
| private byte red Color components, publicly accessible | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| Color | back to summary |
|---|---|
| public Color() Constructor for Color. | |
| Color | back to summary |
|---|---|
| public Color(int r, int g, int b) Constructor for Color. Alpha defaults to 255. | |
| Color | back to summary |
|---|---|
| public Color(byte r, byte g, byte b) Constructor for Color. Alpha defaults to 255. | |
| Color | back to summary |
|---|---|
| public Color(int r, int g, int b, int a) Constructor for Color. | |
| Color | back to summary |
|---|---|
| public Color(byte r, byte g, byte b, byte a) Constructor for Color. | |
| Color | back to summary |
|---|---|
| public Color(ReadableColor c) Constructor for Color | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Equals
| |
| fromHSB | back to summary |
|---|---|
| public void fromHSB(float hue, float saturation, float brightness) HSB to RGB conversion, pinched from java.awt.Color.
| |
| getAlpha | back to summary |
|---|---|
| public int getAlpha() Implements org. Accessor
| |
| getAlphaByte | back to summary |
|---|---|
| public byte getAlphaByte() Implements org. Doc from org. Return the red component
| |
| getBlue | back to summary |
|---|---|
| public int getBlue() Implements org. Accessor
| |
| getBlueByte | back to summary |
|---|---|
| public byte getBlueByte() Implements org. Doc from org. Return the red component
| |
| getGreen | back to summary |
|---|---|
| public int getGreen() Implements org. Accessor
| |
| getGreenByte | back to summary |
|---|---|
| public byte getGreenByte() Implements org. Doc from org. Return the red component
| |
| getRed | back to summary |
|---|---|
| public int getRed() Implements org. Accessor
| |
| getRedByte | back to summary |
|---|---|
| public byte getRedByte() Implements org. Doc from org. Return the red component
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Hashcode
| |
| readABGR | back to summary |
|---|---|
| public void readABGR(ByteBuffer src) Implements org. Read a color from a byte buffer
| |
| readARGB | back to summary |
|---|---|
| public void readARGB(ByteBuffer src) Implements org. Read a color from a byte buffer
| |
| readBGR | back to summary |
|---|---|
| public void readBGR(ByteBuffer src) Implements org. Read a color from a byte buffer
| |
| readBGRA | back to summary |
|---|---|
| public void readBGRA(ByteBuffer src) Implements org. Read a color from a byte buffer
| |
| readRGB | back to summary |
|---|---|
| public void readRGB(ByteBuffer src) Implements org. Read a color from a byte buffer
| |
| readRGBA | back to summary |
|---|---|
| public void readRGBA(ByteBuffer src) Implements org. Read a color from a byte buffer
| |
| set | back to summary |
|---|---|
| public void set(int r, int g, int b, int a) Implements org. Set a color | |
| set | back to summary |
|---|---|
| public void set(byte r, byte g, byte b, byte a) Implements org. Set a color | |
| set | back to summary |
|---|---|
| public void set(int r, int g, int b) Implements org. Set a color | |
| set | back to summary |
|---|---|
| public void set(byte r, byte g, byte b) Implements org. Set a color | |
| setAlpha | back to summary |
|---|---|
| public void setAlpha(int alpha) Implements org. Set the Alpha component | |
| setAlpha | back to summary |
|---|---|
| public void setAlpha(byte alpha) Implements org. Set the Alpha component | |
| setBlue | back to summary |
|---|---|
| public void setBlue(int blue) Implements org. Set the Blue component | |
| setBlue | back to summary |
|---|---|
| public void setBlue(byte blue) Implements org. Set the Blue component | |
| setColor | back to summary |
|---|---|
| public void setColor(ReadableColor src) Implements org. Set this color's color by copying another color
| |
| setGreen | back to summary |
|---|---|
| public void setGreen(int green) Implements org. Set the Green component | |
| setGreen | back to summary |
|---|---|
| public void setGreen(byte green) Implements org. Set the Green component | |
| setRed | back to summary |
|---|---|
| public void setRed(int red) Implements org. Set the Red component | |
| setRed | back to summary |
|---|---|
| public void setRed(byte red) Implements org. Set the Red component | |
| toHSB | back to summary |
|---|---|
| public float[] toHSB(float[] dest) RGB to HSB conversion, pinched from java.awt.Color. The HSB value is returned in dest[] if dest[] is supplied. Values range from 0..1
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Stringify
| |
| writeABGR | back to summary |
|---|---|
| public void writeABGR(ByteBuffer dest) Implements org. Doc from org. Write the ABGR color directly out to a ByteBuffer
| |
| writeARGB | back to summary |
|---|---|
| public void writeARGB(ByteBuffer dest) Implements org. Doc from org. Write the ARGB color directly out to a ByteBuffer
| |
| writeBGR | back to summary |
|---|---|
| public void writeBGR(ByteBuffer dest) Implements org. Doc from org. Write the BGR color directly out to a ByteBuffer
| |
| writeBGRA | back to summary |
|---|---|
| public void writeBGRA(ByteBuffer dest) Implements org. Doc from org. Write the BGRA color directly out to a ByteBuffer
| |
| writeRGB | back to summary |
|---|---|
| public void writeRGB(ByteBuffer dest) Implements org. Doc from org. Write the RGB color directly out to a ByteBuffer
| |
| writeRGBA | back to summary |
|---|---|
| public void writeRGBA(ByteBuffer dest) Implements org. Doc from org. Write the RGBA color directly out to a ByteBuffer
| |