Package com.evopdf
Class RgbColor
java.lang.Object
com.evopdf.RgbColor
Represents a RGB color
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RgbColor
The predefined alice blue colorstatic final RgbColor
The predefined antique white colorstatic final RgbColor
The predefined beige colorstatic final RgbColor
The predefined black colorstatic final RgbColor
The predefined blue colorstatic final RgbColor
The predefined coral colorstatic final RgbColor
The predefined dark green colorstatic final RgbColor
The predefined null colorstatic final RgbColor
The predefined gray colorstatic final RgbColor
The predefined green colorstatic final RgbColor
The predefined indigo colorstatic final RgbColor
The predefined light cyan colorstatic final RgbColor
The predefined light gray colorstatic final RgbColor
The predefined light green colorstatic final RgbColor
The predefined misty rose colorstatic final RgbColor
The predefined navy colorstatic final RgbColor
The predefined orange colorstatic final RgbColor
The predefined pink colorstatic final RgbColor
The predefined purple colorstatic final RgbColor
The predefined red colorstatic final RgbColor
The predefined violet colorstatic final RgbColor
The predefined white colorstatic final RgbColor
The predefined white smoke colorstatic final RgbColor
The predefined yellow color -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
b()
Gets the blue component of the colorint
g()
Gets the green component of the colorint
r()
Gets the red component of the colorvoid
setB
(int blue) Sets the blue component of the colorvoid
setG
(int green) Sets the green component of the colorvoid
setR
(int red) Sets the red component of the color
-
Field Details
-
RED
The predefined red color -
GREEN
The predefined green color -
BLUE
The predefined blue color -
WHITE
The predefined white color -
BLACK
The predefined black color -
YELLOW
The predefined yellow color -
ORANGE
The predefined orange color -
INDIGO
The predefined indigo color -
VIOLET
The predefined violet color -
PINK
The predefined pink color -
PURPLE
The predefined purple color -
GRAY
The predefined gray color -
WHITE_SMOKE
The predefined white smoke color -
ALICE_BLUE
The predefined alice blue color -
NAVY
The predefined navy color -
BEIGE
The predefined beige color -
MISTY_ROSE
The predefined misty rose color -
ANTIQUE_WHITE
The predefined antique white color -
LIGHT_CYAN
The predefined light cyan color -
DARK_GREEN
The predefined dark green color -
CORAL
The predefined coral color -
LIGHT_GREEN
The predefined light green color -
LIGHT_GRAY
The predefined light gray color -
EMPTY
The predefined null color
-
-
Constructor Details
-
RgbColor
public RgbColor(int r, int g, int b) Constructs a RGB color from components- Parameters:
r
- the red component of the colorg
- the green component of the colorb
- the blue component of the color
-
-
Method Details
-
r
public int r()Gets the red component of the color- Returns:
- the red component of the color
-
setR
public void setR(int red) Sets the red component of the color- Parameters:
red
- the red component of the color
-
g
public int g()Gets the green component of the color- Returns:
- the green component of the color
-
setG
public void setG(int green) Sets the green component of the color- Parameters:
green
- the green component of the color
-
b
public int b()Gets the blue component of the color- Returns:
- the blue component of the color
-
setB
public void setB(int blue) Sets the blue component of the color- Parameters:
blue
- the blue component of the color
-