Package com.evopdf
Class RgbColor
java.lang.Object
com.evopdf.RgbColor
Represents a RGB color
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RgbColorThe predefined alice blue colorstatic final RgbColorThe predefined antique white colorstatic final RgbColorThe predefined beige colorstatic final RgbColorThe predefined black colorstatic final RgbColorThe predefined blue colorstatic final RgbColorThe predefined coral colorstatic final RgbColorThe predefined dark green colorstatic final RgbColorThe predefined null colorstatic final RgbColorThe predefined gray colorstatic final RgbColorThe predefined green colorstatic final RgbColorThe predefined indigo colorstatic final RgbColorThe predefined light cyan colorstatic final RgbColorThe predefined light gray colorstatic final RgbColorThe predefined light green colorstatic final RgbColorThe predefined misty rose colorstatic final RgbColorThe predefined navy colorstatic final RgbColorThe predefined orange colorstatic final RgbColorThe predefined pink colorstatic final RgbColorThe predefined purple colorstatic final RgbColorThe predefined red colorstatic final RgbColorThe predefined violet colorstatic final RgbColorThe predefined white colorstatic final RgbColorThe predefined white smoke colorstatic final RgbColorThe predefined yellow color -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintb()Gets the blue component of the colorintg()Gets the green component of the colorintr()Gets the red component of the colorvoidsetB(int blue) Sets the blue component of the colorvoidsetG(int green) Sets the green component of the colorvoidsetR(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
-