Uses of Class
com.itextpdf.kernel.colors.Color
-
-
Uses of Color in com.itextpdf.barcodes
Methods in com.itextpdf.barcodes with parameters of type Color Modifier and Type Method Description PdfFormXObject
Barcode1D. createFormXObject(Color barColor, Color textColor, PdfDocument document)
Creates a PdfFormXObject with the barcode.abstract PdfFormXObject
Barcode2D. createFormXObject(Color foreground, PdfDocument document)
Creates a PdfFormXObject with the barcode.PdfFormXObject
BarcodeDataMatrix. createFormXObject(Color foreground, float moduleSide, PdfDocument document)
Creates a PdfFormXObject with the barcode with given module width and module height.PdfFormXObject
BarcodeDataMatrix. createFormXObject(Color foreground, PdfDocument document)
Creates a PdfFormXObject with the barcode.PdfFormXObject
BarcodePDF417. createFormXObject(Color foreground, float moduleWidth, float moduleHeight, PdfDocument document)
Creates a PdfFormXObject with the barcode with given module width and module height.PdfFormXObject
BarcodePDF417. createFormXObject(Color foreground, PdfDocument document)
Creates a PdfFormXObject with the barcode.PdfFormXObject
BarcodeQRCode. createFormXObject(Color foreground, float moduleSize, PdfDocument document)
Creates a PdfFormXObject with the barcode.PdfFormXObject
BarcodeQRCode. createFormXObject(Color foreground, PdfDocument document)
Creates a PdfFormXObject with the barcode.Rectangle
Barcode128. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.abstract Rectangle
Barcode1D. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.abstract Rectangle
Barcode2D. placeBarcode(PdfCanvas canvas, Color foreground)
Places the barcode in aPdfCanvas
.Rectangle
Barcode39. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeCodabar. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeDataMatrix. placeBarcode(PdfCanvas canvas, Color foreground)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeDataMatrix. placeBarcode(PdfCanvas canvas, Color foreground, float moduleSide)
Places the barcode in a PdfCanvasRectangle
BarcodeEAN. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeEANSUPP. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeInter25. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodeMSI. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Places the barcode in aPdfCanvas
.Rectangle
BarcodePDF417. placeBarcode(PdfCanvas canvas, Color foreground)
Places the barcode in aPdfCanvas
.Rectangle
BarcodePDF417. placeBarcode(PdfCanvas canvas, Color foreground, float moduleWidth, float moduleHeight)
Places the barcode in aPdfCanvas
.Rectangle
BarcodePostnet. placeBarcode(PdfCanvas canvas, Color barColor, Color textColor)
Rectangle
BarcodeQRCode. placeBarcode(PdfCanvas canvas, Color foreground)
Rectangle
BarcodeQRCode. placeBarcode(PdfCanvas canvas, Color foreground, float moduleSide)
* Places the barcode in aPdfCanvas
. -
Uses of Color in com.itextpdf.forms.fields
Fields in com.itextpdf.forms.fields declared as Color Modifier and Type Field Description protected Color
PdfFormAnnotation. backgroundColor
protected Color
PdfFormAnnotation. borderColor
protected Color
AbstractPdfFormField. color
Methods in com.itextpdf.forms.fields that return Color Modifier and Type Method Description private static Color
PdfFormAnnotation. appearancePropToColor(PdfDictionary appearanceCharacteristics, PdfName property)
Color
AbstractPdfFormField. getColor()
Gets the current color of the form field.Methods in com.itextpdf.forms.fields with parameters of type Color Modifier and Type Method Description private static PdfString
PdfFormField. generateDefaultAppearance(PdfName font, float fontSize, Color textColor)
PdfFormAnnotation
PdfFormAnnotation. setBackgroundColor(Color backgroundColor)
Basic setter for thebackgroundColor
property.PdfFormAnnotation
PdfFormAnnotation. setBorderColor(Color color)
Sets the Border Color.AbstractPdfFormField
AbstractPdfFormField. setColor(Color color)
Sets the text color and regenerates appearance stream.AbstractPdfFormField
PdfFormField. setColor(Color color)
Sets the text color and regenerates appearance stream.(package private) void
AbstractPdfFormField. setColorNoRegenerate(Color color)
Sets the text color and does not regenerate appearance stream. -
Uses of Color in com.itextpdf.forms.fields.borders
Fields in com.itextpdf.forms.fields.borders declared as Color Modifier and Type Field Description private Color
BeveledBorder. backgroundColor
Methods in com.itextpdf.forms.fields.borders that return Color Modifier and Type Method Description private Color
BeveledBorder. getDarkerColor(Color color)
Methods in com.itextpdf.forms.fields.borders with parameters of type Color Modifier and Type Method Description static Border
FormBorderFactory. getBorder(PdfDictionary borderStyle, float borderWidth, Color borderColor, Color backgroundColor)
ReturnsBorder
for specific borderStyle.private Color
BeveledBorder. getDarkerColor(Color color)
Constructors in com.itextpdf.forms.fields.borders with parameters of type Color Constructor Description AbstractFormBorder(Color color, float width)
BeveledBorder(Color color, float width, Color backgroundColor)
InsetBorder(Color color, float width)
UnderlineBorder(Color color, float width)
-
Uses of Color in com.itextpdf.forms.form.element
Fields in com.itextpdf.forms.form.element declared as Color Modifier and Type Field Description private static Color
Button. DEFAULT_BACKGROUND_COLOR
-
Uses of Color in com.itextpdf.forms.form.renderer
Fields in com.itextpdf.forms.form.renderer declared as Color Modifier and Type Field Description private static Color
RadioRenderer. DEFAULT_CHECKED_COLOR
-
Uses of Color in com.itextpdf.forms.xfdf
Methods in com.itextpdf.forms.xfdf that return Color Modifier and Type Method Description (package private) static Color
XfdfObjectUtils. convertColorFromString(java.lang.String hexColor)
Converts string containing hex color code to Color object.Methods in com.itextpdf.forms.xfdf with parameters of type Color Modifier and Type Method Description (package private) static java.lang.String
XfdfObjectUtils. convertColorToString(Color color)
Converts a Color object into a hex string representing the rgb color. -
Uses of Color in com.itextpdf.kernel.colors
Subclasses of Color in com.itextpdf.kernel.colors Modifier and Type Class Description class
CalGray
Representation of a CalGray color space.class
CalRgb
Representation of a CalRgb color space.class
DeviceCmyk
Color space to specify colors according to CMYK color model.class
DeviceGray
Color space to specify shades of gray color.class
DeviceN
Representation of a DeviceN color space.class
DeviceRgb
Color space to specify colors according to RGB color model.class
IccBased
Representation on an ICC Based color space.class
Indexed
Representation of an indexed color space.class
Lab
Representation of a lab color space.class
PatternColor
Representation of a Pattern Color.class
Separation
Representation of a separation color space.Fields in com.itextpdf.kernel.colors declared as Color Modifier and Type Field Description static Color
ColorConstants. BLACK
Predefined black DeviceRgb colorstatic Color
DeviceRgb. BLACK
Predefined black DeviceRgb colorstatic Color
ColorConstants. BLUE
Predefined blue DeviceRgb colorstatic Color
DeviceRgb. BLUE
Predefined blue DeviceRgb colorstatic Color
ColorConstants. CYAN
Predefined cyan DeviceRgb colorstatic Color
ColorConstants. DARK_GRAY
Predefined dark gray DeviceRgb colorstatic Color
ColorConstants. GRAY
Predefined gray DeviceRgb colorstatic Color
ColorConstants. GREEN
Predefined green DeviceRgb colorstatic Color
DeviceRgb. GREEN
Predefined green DeviceRgb colorstatic Color
ColorConstants. LIGHT_GRAY
Predefined light gray DeviceRgb colorstatic Color
ColorConstants. MAGENTA
Predefined magenta DeviceRgb colorstatic Color
ColorConstants. ORANGE
Predefined orange DeviceRgb colorstatic Color
ColorConstants. PINK
Predefined pink DeviceRgb colorstatic Color
ColorConstants. RED
Predefined red DeviceRgb colorstatic Color
DeviceRgb. RED
Predefined red DeviceRgb colorprivate Color
PatternColor. underlyingColor
static Color
ColorConstants. WHITE
Predefined white DeviceRgb colorstatic Color
DeviceRgb. WHITE
Predefined white DeviceRgb colorstatic Color
ColorConstants. YELLOW
Predefined yellow DeviceRgb colorMethods in com.itextpdf.kernel.colors that return Color Modifier and Type Method Description static Color
Color. createColorWithColorSpace(float[] colorValue)
Creates a color object based on the passed through values.static Color
Color. makeColor(PdfColorSpace colorSpace)
Makes a Color of certain color space.static Color
Color. makeColor(PdfColorSpace colorSpace, float[] colorValue)
Makes a Color of certain color space and color value.Constructors in com.itextpdf.kernel.colors with parameters of type Color Constructor Description PatternColor(PdfPattern.Tiling uncoloredPattern, Color color)
Creates a pattern color using the given uncolored pattern object and color. -
Uses of Color in com.itextpdf.kernel.colors.gradients
Methods in com.itextpdf.kernel.colors.gradients that return Color Modifier and Type Method Description Color
AbstractLinearGradientBuilder. buildColor(Rectangle targetBoundingBox, AffineTransform contextTransform, PdfDocument document)
Builds theColor
object representing the linear gradient with specified configuration that fills the target bounding box. -
Uses of Color in com.itextpdf.kernel.pdf
Methods in com.itextpdf.kernel.pdf that return Color Modifier and Type Method Description Color
PdfOutline. getColor()
Gets color for the outline entry's text,C
key.Methods in com.itextpdf.kernel.pdf with parameters of type Color Modifier and Type Method Description void
PdfOutline. setColor(Color color)
Sets color for the outline entry’s text,C
key. -
Uses of Color in com.itextpdf.kernel.pdf.annot
Methods in com.itextpdf.kernel.pdf.annot that return Color Modifier and Type Method Description Color
PdfCircleAnnotation. getInteriorColor()
The interior color which is used to fill the annotation's ellipse.Color
PdfLineAnnotation. getInteriorColor()
The interior color which is used to fill the annotation's line endings.Color
PdfPolyGeomAnnotation. getInteriorColor()
The interior color which is used to fill the annotation's line endings.Color
PdfRedactAnnotation. getInteriorColor()
The interior color which is used to fill the redacted region after the affected content has been removed.Color
PdfSquareAnnotation. getInteriorColor()
The interior color which is used to fill the annotation's rectangle.static Color
InteriorColorUtil. parseInteriorColor(PdfArray color)
The interior color which is used to fill areas specific for different types of annotation.Methods in com.itextpdf.kernel.pdf.annot with parameters of type Color Modifier and Type Method Description PdfAnnotation
PdfAnnotation. setColor(Color color)
Sets an annotation color. -
Uses of Color in com.itextpdf.kernel.pdf.canvas
Fields in com.itextpdf.kernel.pdf.canvas declared as Color Modifier and Type Field Description private Color
CanvasGraphicsState. fillColor
private Color
CanvasGraphicsState. strokeColor
Methods in com.itextpdf.kernel.pdf.canvas that return Color Modifier and Type Method Description private Color
PdfCanvas. createColor(PdfColorSpace colorSpace, float[] colorValue, PdfPattern pattern)
Color
CanvasGraphicsState. getFillColor()
Gets the current fill color.Color
CanvasGraphicsState. getStrokeColor()
Gets the current stroke color.Methods in com.itextpdf.kernel.pdf.canvas with parameters of type Color Modifier and Type Method Description PdfCanvas
PdfCanvas. setColor(Color color, boolean fill)
Changes the current color for paths.void
CanvasGraphicsState. setFillColor(Color fillColor)
Sets the current fillcolor
.PdfCanvas
PdfCanvas. setFillColor(Color color)
Changes the current color for filling paths.void
CanvasGraphicsState. setStrokeColor(Color strokeColor)
Sets the current strokecolor
.PdfCanvas
PdfCanvas. setStrokeColor(Color color)
Changes the current color for stroking paths. -
Uses of Color in com.itextpdf.kernel.pdf.canvas.draw
Fields in com.itextpdf.kernel.pdf.canvas.draw declared as Color Modifier and Type Field Description private Color
DashedLine. color
private Color
DottedLine. color
private Color
SolidLine. color
Methods in com.itextpdf.kernel.pdf.canvas.draw that return Color Modifier and Type Method Description Color
DashedLine. getColor()
Color
DottedLine. getColor()
Color
ILineDrawer. getColor()
Gets the color of the lineColor
SolidLine. getColor()
Methods in com.itextpdf.kernel.pdf.canvas.draw with parameters of type Color Modifier and Type Method Description void
DashedLine. setColor(Color color)
void
DottedLine. setColor(Color color)
void
ILineDrawer. setColor(Color color)
Sets line colorvoid
SolidLine. setColor(Color color)
-
Uses of Color in com.itextpdf.kernel.pdf.canvas.parser
Methods in com.itextpdf.kernel.pdf.canvas.parser that return Color Modifier and Type Method Description private static Color
PdfCanvasProcessor. getColor(int nOperands, java.util.List<PdfObject> operands)
Gets a color based on a list of operands.private static Color
PdfCanvasProcessor. getColor(PdfColorSpace pdfColorSpace, java.util.List<PdfObject> operands, PdfResources resources)
Gets a color based on a list of operands and Color space. -
Uses of Color in com.itextpdf.kernel.pdf.canvas.parser.data
Methods in com.itextpdf.kernel.pdf.canvas.parser.data that return Color Modifier and Type Method Description Color
PathRenderInfo. getFillColor()
Gets the path's fill color.Color
TextRenderInfo. getFillColor()
Color
PathRenderInfo. getStrokeColor()
Gets the path's stroke color.Color
TextRenderInfo. getStrokeColor()
-
Uses of Color in com.itextpdf.kernel.pdf.canvas.wmf
Fields in com.itextpdf.kernel.pdf.canvas.wmf declared as Color Modifier and Type Field Description (package private) Color
MetaBrush. color
(package private) Color
MetaPen. color
private Color
MetaState. currentBackgroundColor
The current background color.private Color
MetaState. currentTextColor
Current text color.Methods in com.itextpdf.kernel.pdf.canvas.wmf that return Color Modifier and Type Method Description Color
MetaBrush. getColor()
Get the color of the MetaBrush.Color
MetaPen. getColor()
Get the color of the MetaPen.Color
MetaState. getCurrentBackgroundColor()
Getter for property currentBackgroundColor.Color
MetaState. getCurrentTextColor()
Getter for property currentTextColor.Color
InputMeta. readColor()
Read the nextColor
from the InputStream.Methods in com.itextpdf.kernel.pdf.canvas.wmf with parameters of type Color Modifier and Type Method Description void
MetaState. setCurrentBackgroundColor(Color currentBackgroundColor)
Setter for property currentBackgroundColor.void
MetaState. setCurrentTextColor(Color currentTextColor)
Setter for property currentTextColor. -
Uses of Color in com.itextpdf.kernel.utils.annotationsflattening
Methods in com.itextpdf.kernel.utils.annotationsflattening that return Color Modifier and Type Method Description protected Color
AbstractTextMarkupAnnotationFlattener. getColor(PdfAnnotation annotation)
-
Uses of Color in com.itextpdf.layout
Methods in com.itextpdf.layout that return Color Modifier and Type Method Description Color
ElementPropertyContainer. getStrokeColor()
Gets the stroke color for the current element.Methods in com.itextpdf.layout with parameters of type Color Modifier and Type Method Description T
ElementPropertyContainer. setBackgroundColor(Color backgroundColor)
Specifies a background color for the Element.T
ElementPropertyContainer. setBackgroundColor(Color backgroundColor, float opacity)
Specifies a background color for the Element.T
ElementPropertyContainer. setBackgroundColor(Color backgroundColor, float extraLeft, float extraTop, float extraRight, float extraBottom)
Specifies a background color for the Element, and extra space that must be counted as part of the background and therefore colored.T
ElementPropertyContainer. setBackgroundColor(Color backgroundColor, float opacity, float extraLeft, float extraTop, float extraRight, float extraBottom)
Specifies a background color for the Element, and extra space that must be counted as part of the background and therefore colored.T
ElementPropertyContainer. setFontColor(Color fontColor)
Sets the font color of this Element.T
ElementPropertyContainer. setFontColor(Color fontColor, float opacity)
Sets the font color of this Element and the opacity of the text.T
ElementPropertyContainer. setStrokeColor(Color strokeColor)
Sets the stroke color for the current element.T
ElementPropertyContainer. setUnderline(Color color, float opacity, float thickness, float thicknessMul, float yPosition, float yPositionMul, int lineCapStyle)
Sets an horizontal line that can be an underline or a strikethrough.T
ElementPropertyContainer. setUnderline(Color color, float thickness, float thicknessMul, float yPosition, float yPositionMul, int lineCapStyle)
Sets an horizontal line that can be an underline or a strikethrough. -
Uses of Color in com.itextpdf.layout.borders
Methods in com.itextpdf.layout.borders that return Color Modifier and Type Method Description Color
Border. getColor()
protected Color
Border3D. getDarkerColor()
Makes theBorder.transparentColor
color of the border darker and returns the resultMethods in com.itextpdf.layout.borders with parameters of type Color Modifier and Type Method Description void
Border. setColor(Color color)
Constructors in com.itextpdf.layout.borders with parameters of type Color Constructor Description Border(Color color, float width)
Border(Color color, float width, float opacity)
DashedBorder(Color color, float width)
Creates a DashedBorder with the specified width and the specified color.DashedBorder(Color color, float width, float opacity)
Creates a DashedBorder with the specified width, color and opacity.DottedBorder(Color color, float width)
Creates a DottedBorder instance with the specified width and color.DottedBorder(Color color, float width, float opacity)
Creates a DottedBorder with the specified width, color and opacity.DoubleBorder(Color color, float width)
Creates a DoubleBorder with the specified width for both the two borders as the space in between them and the specified color for the two borders.DoubleBorder(Color color, float width, float opacity)
Creates a DoubleBorder with the specified width for both the two borders as the space in between them and the specified color for the two borders.FixedDashedBorder(Color color, float width)
Creates a FixedDashedBorder with the specified width and the specified color.FixedDashedBorder(Color color, float width, float opacity)
Creates a FixedDashedBorder with the specified width, color and opacity.FixedDashedBorder(Color color, float width, float unitsOn, float unitsOff, float phase)
Creates a FixedDashedBorder with the specified width, color, unitsOn, unitsOff and phase.FixedDashedBorder(Color color, float width, float opacity, float unitsOn, float unitsOff, float phase)
Creates a FixedDashedBorder with the specified width, color, opacity, unitsOn, unitsOff and phase.RoundDotsBorder(Color color, float width)
Creates a RoundDotsBorder with the specified wit?dth and the specified color.RoundDotsBorder(Color color, float width, float opacity)
Creates a RoundDotsBorder with the specified width, color and opacity.SolidBorder(Color color, float width)
Creates a SolidBorder with the specified width and the specified color.SolidBorder(Color color, float width, float opacity)
Creates a SolidBorder with the specified width, color and opacity. -
Uses of Color in com.itextpdf.layout.properties
Fields in com.itextpdf.layout.properties declared as Color Modifier and Type Field Description private Color
TransparentColor. color
Methods in com.itextpdf.layout.properties that return Color Modifier and Type Method Description Color
Background. getColor()
Gets the background's color.Color
TransparentColor. getColor()
Gets the color.Color
Underline. getColor()
Gets the color of the underline.Constructors in com.itextpdf.layout.properties with parameters of type Color Constructor Description Background(Color color)
Creates a background with a specified color.Background(Color color, float opacity)
Creates a background with a specified color and opacity.Background(Color color, float extraLeft, float extraTop, float extraRight, float extraBottom)
Creates a background with a specified color, and extra space that must be counted as part of the background and therefore colored.Background(Color color, float opacity, float extraLeft, float extraTop, float extraRight, float extraBottom)
Creates a background with a specified color, and extra space that must be counted as part of the background and therefore colored.Background(Color color, float opacity, BackgroundBox clip)
Creates a background with a specified color, opacity and clip value.TransparentColor(Color color)
Creates a newTransparentColor
instance of certain fully opaque color.TransparentColor(Color color, float opacity)
Creates a newTransparentColor
.Underline(Color color, float opacity, float thickness, float thicknessMul, float yPosition, float yPositionMul, int lineCapStyle)
Creates an Underline.Underline(Color color, float thickness, float thicknessMul, float yPosition, float yPositionMul, int lineCapStyle)
Creates an Underline. -
Uses of Color in com.itextpdf.layout.renderer
Methods in com.itextpdf.layout.renderer that return Color Modifier and Type Method Description Color
AbstractRenderer. getPropertyAsColor(int property)
Returns a property with a certain key, as a color. -
Uses of Color in com.itextpdf.pdfa.checker
Methods in com.itextpdf.pdfa.checker with parameters of type Color Modifier and Type Method Description void
PdfA1Checker. checkColor(CanvasGraphicsState graphicsState, Color color, PdfDictionary currentColorSpaces, java.lang.Boolean fill, PdfStream stream)
This method checks compliance with the color restrictions imposed by the available color spaces in the document.void
PdfA2Checker. checkColor(CanvasGraphicsState gState, Color color, PdfDictionary currentColorSpaces, java.lang.Boolean fill, PdfStream contentStream)
This method checks compliance with the color restrictions imposed by the available color spaces in the document.abstract void
PdfAChecker. checkColor(CanvasGraphicsState gState, Color color, PdfDictionary currentColorSpaces, java.lang.Boolean fill, PdfStream contentStream)
This method checks compliance with the color restrictions imposed by the available color spaces in the document. -
Uses of Color in com.itextpdf.svg.renderers
Methods in com.itextpdf.svg.renderers that return Color Modifier and Type Method Description Color
ISvgPaintServer. createColor(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity)
Creates theColor
that represents the corresponding paint server for specified object box. -
Uses of Color in com.itextpdf.svg.renderers.impl
Methods in com.itextpdf.svg.renderers.impl that return Color Modifier and Type Method Description Color
LinearGradientSvgNodeRenderer. createColor(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity)
Color
PatternSvgNodeRenderer. createColor(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity)
-