|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AQColorFactory
This interface provides factory methods for creating AQColor
objects.
An instance of this interface is available via aqua.type.color alias.
Method Summary | |
---|---|
AQColor |
getBlack()
Returns the color black. |
AQColor |
getBlue()
Returns the color blue. |
AQColor |
getCyan()
Returns the color cyan. |
AQColor |
getDarkGray()
Returns the color dark gray. |
AQColor |
getGray()
Returns the color gray. |
AQColor |
getGreen()
Returns the color green. |
AQColor |
getLightGray()
Returns the color light gray. |
AQColor |
getMagenta()
Returns the color magenta. |
AQColor |
getOrange()
Returns the color orange. |
AQColor |
getPink()
Returns the color pink. |
AQColor |
getRed()
Returns the color red. |
AQColor |
getWhite()
Returns the color white. |
AQColor |
getYellow()
Returns the color yellow. |
AQColor |
newColor(int rgb)
Creates an opaque sRGB color with the specified combined RGB value consisting of the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7. |
AQColor |
newColor(int rgba,
boolean hasAlpha)
Creates an sRGB color with the specified combined RGBA value consisting of the alpha component in bits 24-31, the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7. |
AQColor |
newColor(int r,
int g,
int b)
Creates an opaque sRGB color with the specified red, green, and blue values in the range (0 - 255). |
AQColor |
newColor(int r,
int g,
int b,
int a)
Creates an sRGB color with the specified red, green, blue, and alpha values in the range (0 - 255). |
AQColor |
newColorFloat(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). |
AQColor |
newColorFloat(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 Detail |
---|
AQColor newColor(int rgb)
rgb
- the combined RGB componentsAQColor newColor(int rgba, boolean hasAlpha)
rgba
- the combined RGBA componentshasAlpha
- true if the alpha bits are valid; false otherwiseAQColor newColor(int r, int g, int b)
r
- the red componentg
- the green componentb
- the blue componentAQColor newColor(int r, int g, int b, int a)
r
- the red componentg
- the green componentb
- the blue componenta
- the alpha componentAQColor newColorFloat(float r, float g, float b)
r
- the red componentg
- the green componentb
- the blue componentAQColor newColorFloat(float r, float g, float b, float a)
r
- the red componentg
- the green componentb
- the blue componenta
- the alpha componentAQColor getBlack()
AQColor getBlue()
AQColor getCyan()
AQColor getDarkGray()
AQColor getGray()
AQColor getGreen()
AQColor getLightGray()
AQColor getMagenta()
AQColor getOrange()
AQColor getPink()
AQColor getRed()
AQColor getWhite()
AQColor getYellow()
|
OpenAPI 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |