FontColor
Contents
[
Hide
]Inheritance: java.lang.Object
public final class FontColor
Class representing color of the text.
Constructors
Constructor | Description |
---|---|
FontColor(int r, int g, int b) | Initializes color with specified color components. |
FontColor() | Initializes color. |
Methods
Method | Description |
---|---|
getGreen() | Gets green component of color. |
setGreen(int value) | Sets green component of color. |
getRed() | Gets red component of color. |
setRed(int value) | Sets red component of color. |
getBlue() | Gets blue component of color. |
setBlue(int value) | Sets blue component of color. |
FontColor(int r, int g, int b)
public FontColor(int r, int g, int b)
Initializes color with specified color components.
Parameters:
Parameter | Type | Description |
---|---|---|
r | int | Red component. |
g | int | Green component. |
b | int | Blue component. |
FontColor()
public FontColor()
Initializes color.
getGreen()
public int getGreen()
Gets green component of color.
Returns: int - green component of color.
setGreen(int value)
public void setGreen(int value)
Sets green component of color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | green component of color. |
getRed()
public int getRed()
Gets red component of color.
Returns: int - red component of color.
setRed(int value)
public void setRed(int value)
Sets red component of color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | red component of color. |
getBlue()
public int getBlue()
Gets blue component of color.
Returns: int - blue component of color.
setBlue(int value)
public void setBlue(int value)
Sets blue component of color.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | blue component of color. |