Package com.itextpdf.text.pdf
Class ExtendedColor
java.lang.Object
com.itextpdf.text.BaseColor
com.itextpdf.text.pdf.ExtendedColor
- Direct Known Subclasses:
CMYKColor
,DeviceNColor
,GrayColor
,LabColor
,PatternColor
,ShadingColor
,SpotColor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
protected int
static final int
a type of extended color.static final int
a type of extended color.static final int
a type of extended color.static final int
a type of extended color.static final int
a type of extended color.static final int
a type of extended color.static final int
a type of extended color.static final int
a type of extended color. -
Constructor Summary
ConstructorsConstructorDescriptionExtendedColor
(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, int red, int green, int blue, int alpha) Constructs an extended color of a certain type and a certain color. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
TYPE_RGB
public static final int TYPE_RGBa type of extended color.- See Also:
-
TYPE_GRAY
public static final int TYPE_GRAYa type of extended color.- See Also:
-
TYPE_CMYK
public static final int TYPE_CMYKa type of extended color.- See Also:
-
TYPE_SEPARATION
public static final int TYPE_SEPARATIONa type of extended color.- See Also:
-
TYPE_PATTERN
public static final int TYPE_PATTERNa type of extended color.- See Also:
-
TYPE_SHADING
public static final int TYPE_SHADINGa type of extended color.- See Also:
-
TYPE_DEVICEN
public static final int TYPE_DEVICENa type of extended color.- See Also:
-
TYPE_LAB
public static final int TYPE_LABa type of extended color.- See Also:
-
type
protected int type
-
-
Constructor Details
-
ExtendedColor
public ExtendedColor(int type) Constructs an extended color of a certain type.- Parameters:
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
-red
-green
-blue
-
-
ExtendedColor
public ExtendedColor(int type, int red, int green, int blue, int alpha) Constructs an extended color of a certain type and a certain color.- Parameters:
type
-red
-green
-blue
-alpha
-
-
-
Method Details
-
getType
public int getType()Gets the type of this color.- Returns:
- one of the types (see constants)
-
getType
Gets the type of a given color.- Parameters:
color
-- Returns:
- one of the types (see constants)
-
normalize
static final float normalize(float value)
-