FontColor

Inheritance: java.lang.Object

public final class FontColor

Class representing color of the text.

Constructors

ConstructorDescription
FontColor(int r, int g, int b)Initializes color with specified color components.
FontColor()Initializes color.

Methods

MethodDescription
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:

ParameterTypeDescription
rintRed component.
gintGreen component.
bintBlue 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:

ParameterTypeDescription
valueintgreen 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:

ParameterTypeDescription
valueintred 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:

ParameterTypeDescription
valueintblue component of color.