public final class FontColor extends Object
Class representing color of the text.
Constructor and Description |
---|
FontColor()
Initializes color.
|
FontColor(int r,
int g,
int b)
Initializes color with specified color components.
|
Modifier and Type | Method and Description |
---|---|
int |
getBlue()
Gets blue component of color.
|
int |
getGreen()
Gets green component of color.
|
int |
getRed()
Gets red component of color.
|
void |
setBlue(int value)
Sets blue component of color.
|
void |
setGreen(int value)
Sets green component of color.
|
void |
setRed(int value)
Sets red component of color.
|
public FontColor(int r, int g, int b)
Initializes color with specified color components.
r
- Red component.g
- Green component.b
- Blue component.public FontColor()
Initializes color.
public int getGreen()
Gets green component of color.
public void setGreen(int value)
Sets green component of color.
value
- green component of color.public int getRed()
Gets red component of color.
public void setRed(int value)
Sets red component of color.
value
- red component of color.public int getBlue()
Gets blue component of color.
public void setBlue(int value)
Sets blue component of color.
value
- blue component of color.