- java.lang.Object
-
- java.awt.Color
-
- com.lowagie.text.pdf.ExtendedColor
-
- All Implemented Interfaces:
Paint,Transparency,Serializable
- Direct Known Subclasses:
CMYKColor,GrayColor,PatternColor,RGBColor,ShadingColor,SpotColor
public abstract class ExtendedColor extends Color
- Author:
- Paulo Soares (psoares@consiste.pt)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_COLOR_VALUEthe max int color value (255) expressed in intstatic floatMAX_FLOAT_COLOR_VALUEthe max float color value (1) expressed in floatstatic floatMAX_INT_COLOR_VALUEthe max int color value (255) expressed in floatprotected inttypestatic intTYPE_CMYKa type of extended color.static intTYPE_GRAYa type of extended color.static intTYPE_PATTERNa type of extended color.static intTYPE_RGBa type of extended color.static intTYPE_SEPARATIONa type of extended color.static intTYPE_SHADINGa type of extended color.-
Fields inherited from class java.awt.Color
black, BLACK, blue, BLUE, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, white, WHITE, yellow, YELLOW
-
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
-
-
Constructor Summary
Constructors Constructor Description ExtendedColor(int type)Constructs an extended color of a certain type.ExtendedColor(int type, float red, float green, float blue)Constructs an extended color of a certain type and a certain color.ExtendedColor(int type, float red, float green, float blue, float alpha)Constructs an extended color of a certain type and a certain color.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetType()Gets the type of this color.static intgetType(Color color)Gets the type of a given color.-
Methods inherited from class java.awt.Color
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB, toString
-
-
-
-
Field Detail
-
TYPE_RGB
public static final int TYPE_RGB
a type of extended color.- See Also:
- Constant Field Values
-
TYPE_GRAY
public static final int TYPE_GRAY
a type of extended color.- See Also:
- Constant Field Values
-
TYPE_CMYK
public static final int TYPE_CMYK
a type of extended color.- See Also:
- Constant Field Values
-
TYPE_SEPARATION
public static final int TYPE_SEPARATION
a type of extended color.- See Also:
- Constant Field Values
-
TYPE_PATTERN
public static final int TYPE_PATTERN
a type of extended color.- See Also:
- Constant Field Values
-
TYPE_SHADING
public static final int TYPE_SHADING
a type of extended color.- See Also:
- Constant Field Values
-
MAX_COLOR_VALUE
public static final int MAX_COLOR_VALUE
the max int color value (255) expressed in int- See Also:
- Constant Field Values
-
MAX_INT_COLOR_VALUE
public static final float MAX_INT_COLOR_VALUE
the max int color value (255) expressed in float- See Also:
- Constant Field Values
-
MAX_FLOAT_COLOR_VALUE
public static final float MAX_FLOAT_COLOR_VALUE
the max float color value (1) expressed in float- See Also:
- Constant Field Values
-
type
protected int type
-
-
Constructor Detail
-
ExtendedColor
public ExtendedColor(int type)
Constructs an extended color of a certain type.- Parameters:
type-type
-
ExtendedColor
public ExtendedColor(int type, float red, float green, float blue)Constructs an extended color of a certain type and a certain color.- Parameters:
type-typered- red quotientgreen- green quotientblue- blue quotient
-
ExtendedColor
public ExtendedColor(int type, float red, float green, float blue, float alpha)Constructs an extended color of a certain type and a certain color.- Parameters:
type-typered- red quotientgreen- green quotientblue- blue quotientalpha- alpha quotient
-
-