Uses of Class
com.itextpdf.kernel.colors.Color
Packages that use Color
Package
Description
-
Uses of Color in com.itextpdf.barcodes
Methods in com.itextpdf.barcodes with parameters of type ColorModifier and TypeMethodDescriptionBarcode1D.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.BarcodeDataMatrix.createFormXObject
(Color foreground, float moduleSide, PdfDocument document) Creates a PdfFormXObject with the barcode with given module width and module height.BarcodeDataMatrix.createFormXObject
(Color foreground, PdfDocument document) Creates a PdfFormXObject with the barcode.BarcodePDF417.createFormXObject
(Color foreground, float moduleWidth, float moduleHeight, PdfDocument document) Creates a PdfFormXObject with the barcode with given module width and module height.BarcodePDF417.createFormXObject
(Color foreground, PdfDocument document) Creates a PdfFormXObject with the barcode.BarcodeQRCode.createFormXObject
(Color foreground, float moduleSize, PdfDocument document) Creates a PdfFormXObject with the barcode.BarcodeQRCode.createFormXObject
(Color foreground, PdfDocument document) Creates a PdfFormXObject with the barcode.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
.Barcode39.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodeCodabar.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodeDataMatrix.placeBarcode
(PdfCanvas canvas, Color foreground) Places the barcode in aPdfCanvas
.BarcodeDataMatrix.placeBarcode
(PdfCanvas canvas, Color foreground, float moduleSide) Places the barcode in a PdfCanvasBarcodeEAN.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodeEANSUPP.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodeInter25.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodeMSI.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas
.BarcodePDF417.placeBarcode
(PdfCanvas canvas, Color foreground) Places the barcode in aPdfCanvas
.BarcodePDF417.placeBarcode
(PdfCanvas canvas, Color foreground, float moduleWidth, float moduleHeight) Places the barcode in aPdfCanvas
.BarcodePostnet.placeBarcode
(PdfCanvas canvas, Color barColor, Color textColor) BarcodeQRCode.placeBarcode
(PdfCanvas canvas, Color foreground) 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 ColorModifier and TypeFieldDescriptionprotected Color
PdfFormAnnotation.backgroundColor
protected Color
PdfFormAnnotation.borderColor
protected Color
AbstractPdfFormField.color
Methods in com.itextpdf.forms.fields that return ColorModifier and TypeMethodDescriptionAbstractPdfFormField.getColor()
Gets the current color of the form field.Methods in com.itextpdf.forms.fields with parameters of type ColorModifier and TypeMethodDescriptionPdfFormAnnotation.setBackgroundColor
(Color backgroundColor) Basic setter for thebackgroundColor
property.PdfFormAnnotation.setBorderColor
(Color color) Sets the Border Color.Sets the text color and regenerates appearance stream.Sets the text color and regenerates appearance stream. -
Uses of Color in com.itextpdf.forms.fields.borders
Methods in com.itextpdf.forms.fields.borders with parameters of type Color -
Uses of Color in com.itextpdf.kernel.colors
Subclasses of Color in com.itextpdf.kernel.colorsModifier and TypeClassDescriptionclass
class
class
Color space to specify colors according to CMYK color model.class
Color space to specify shades of gray color.class
class
Color space to specify colors according to RGB color model.class
class
class
class
class
Fields in com.itextpdf.kernel.colors declared as ColorModifier and TypeFieldDescriptionstatic final Color
ColorConstants.BLACK
Predefined black DeviceRgb colorstatic final Color
DeviceRgb.BLACK
Predefined black DeviceRgb colorstatic final Color
ColorConstants.BLUE
Predefined blue DeviceRgb colorstatic final Color
DeviceRgb.BLUE
Predefined blue DeviceRgb colorstatic final Color
ColorConstants.CYAN
Predefined cyan DeviceRgb colorstatic final Color
ColorConstants.DARK_GRAY
Predefined dark gray DeviceRgb colorstatic final Color
ColorConstants.GRAY
Predefined gray DeviceRgb colorstatic final Color
ColorConstants.GREEN
Predefined green DeviceRgb colorstatic final Color
DeviceRgb.GREEN
Predefined green DeviceRgb colorstatic final Color
ColorConstants.LIGHT_GRAY
Predefined light gray DeviceRgb colorstatic final Color
ColorConstants.MAGENTA
Predefined magenta DeviceRgb colorstatic final Color
ColorConstants.ORANGE
Predefined orange DeviceRgb colorstatic final Color
ColorConstants.PINK
Predefined pink DeviceRgb colorstatic final Color
ColorConstants.RED
Predefined red DeviceRgb colorstatic final Color
DeviceRgb.RED
Predefined red DeviceRgb colorstatic final Color
ColorConstants.WHITE
Predefined white DeviceRgb colorstatic final Color
DeviceRgb.WHITE
Predefined white DeviceRgb colorstatic final Color
ColorConstants.YELLOW
Predefined yellow DeviceRgb colorMethods in com.itextpdf.kernel.colors that return ColorModifier and TypeMethodDescriptionstatic 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 -
Uses of Color in com.itextpdf.kernel.colors.gradients
Methods in com.itextpdf.kernel.colors.gradients that return ColorModifier and TypeMethodDescriptionAbstractLinearGradientBuilder.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 ColorModifier and TypeMethodDescriptionPdfOutline.getColor()
Gets color for the outline entry's text,C
key.Methods in com.itextpdf.kernel.pdf with parameters of type Color -
Uses of Color in com.itextpdf.kernel.pdf.annot
Methods in com.itextpdf.kernel.pdf.annot that return ColorModifier and TypeMethodDescriptionPdfCircleAnnotation.getInteriorColor()
The interior color which is used to fill the annotation's ellipse.PdfLineAnnotation.getInteriorColor()
The interior color which is used to fill the annotation's line endings.PdfPolyGeomAnnotation.getInteriorColor()
The interior color which is used to fill the annotation's line endings.PdfRedactAnnotation.getInteriorColor()
The interior color which is used to fill the redacted region after the affected content has been removed.PdfSquareAnnotation.getInteriorColor()
The interior color which is used to fill the annotation's rectangle.Methods in com.itextpdf.kernel.pdf.annot with parameters of type ColorModifier and TypeMethodDescriptionSets an annotation color. -
Uses of Color in com.itextpdf.kernel.pdf.canvas
Methods in com.itextpdf.kernel.pdf.canvas that return ColorModifier and TypeMethodDescriptionCanvasGraphicsState.getFillColor()
Gets the current fill color.CanvasGraphicsState.getStrokeColor()
Gets the current stroke color.Methods in com.itextpdf.kernel.pdf.canvas with parameters of type ColorModifier and TypeMethodDescriptionChanges the current color for paths.void
CanvasGraphicsState.setFillColor
(Color fillColor) Sets the current fillcolor
.PdfCanvas.setFillColor
(Color color) Changes the current color for filling paths.void
CanvasGraphicsState.setStrokeColor
(Color strokeColor) Sets the current strokecolor
.PdfCanvas.setStrokeColor
(Color color) Changes the current color for stroking paths. -
Uses of Color in com.itextpdf.kernel.pdf.canvas.draw
Methods in com.itextpdf.kernel.pdf.canvas.draw that return ColorModifier and TypeMethodDescriptionDashedLine.getColor()
DottedLine.getColor()
ILineDrawer.getColor()
Gets the color of the lineSolidLine.getColor()
Methods in com.itextpdf.kernel.pdf.canvas.draw with parameters of type Color -
Uses of Color in com.itextpdf.kernel.pdf.canvas.parser.data
Methods in com.itextpdf.kernel.pdf.canvas.parser.data that return ColorModifier and TypeMethodDescriptionPathRenderInfo.getFillColor()
Gets the path's fill color.TextRenderInfo.getFillColor()
PathRenderInfo.getStrokeColor()
Gets the path's stroke color.TextRenderInfo.getStrokeColor()
-
Uses of Color in com.itextpdf.kernel.pdf.canvas.wmf
Fields in com.itextpdf.kernel.pdf.canvas.wmf declared as ColorModifier and TypeFieldDescriptionMetaState.currentBackgroundColor
The current background color.MetaState.currentTextColor
Current text color.Methods in com.itextpdf.kernel.pdf.canvas.wmf that return ColorModifier and TypeMethodDescriptionMetaBrush.getColor()
Get the color of the MetaBrush.MetaPen.getColor()
Get the color of the MetaPen.MetaState.getCurrentBackgroundColor()
Getter for property currentBackgroundColor.MetaState.getCurrentTextColor()
Getter for property currentTextColor.InputMeta.readColor()
Read the nextColor
from the InputStream.Methods in com.itextpdf.kernel.pdf.canvas.wmf with parameters of type ColorModifier and TypeMethodDescriptionvoid
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 ColorModifier and TypeMethodDescriptionprotected Color
AbstractTextMarkupAnnotationFlattener.getColor
(PdfAnnotation annotation) -
Uses of Color in com.itextpdf.layout
Methods in com.itextpdf.layout that return ColorModifier and TypeMethodDescriptionElementPropertyContainer.getStrokeColor()
Gets the stroke color for the current element.Methods in com.itextpdf.layout with parameters of type ColorModifier and TypeMethodDescriptionElementPropertyContainer.setBackgroundColor
(Color backgroundColor) Specifies a background color for the Element.ElementPropertyContainer.setBackgroundColor
(Color backgroundColor, float opacity) Specifies a background color for the Element.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.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.ElementPropertyContainer.setFontColor
(Color fontColor) Sets the font color of this Element.ElementPropertyContainer.setFontColor
(Color fontColor, float opacity) Sets the font color of this Element and the opacity of the text.ElementPropertyContainer.setStrokeColor
(Color strokeColor) Sets the stroke color for the current element.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.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 ColorModifier and TypeMethodDescriptionBorder.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 ColorConstructors in com.itextpdf.layout.borders with parameters of type ColorModifierConstructorDescriptionprotected
protected
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
Methods in com.itextpdf.layout.properties that return ColorModifier and TypeMethodDescriptionBackground.getColor()
Gets the background's color.TransparentColor.getColor()
Gets the color.Underline.getColor()
Gets the color of the underline.Constructors in com.itextpdf.layout.properties with parameters of type ColorModifierConstructorDescriptionBackground
(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 ColorModifier and TypeMethodDescriptionAbstractRenderer.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 ColorModifier and TypeMethodDescriptionvoid
PdfA1Checker.checkColor
(Color color, PdfDictionary currentColorSpaces, Boolean fill, PdfStream stream) Deprecated.void
PdfA1Checker.checkColor
(CanvasGraphicsState graphicsState, Color color, PdfDictionary currentColorSpaces, Boolean fill, PdfStream stream) This method checks compliance with the color restrictions imposed by the available color spaces in the document.void
PdfA2Checker.checkColor
(Color color, PdfDictionary currentColorSpaces, Boolean fill, PdfStream contentStream) Deprecated.void
PdfA2Checker.checkColor
(CanvasGraphicsState gState, Color color, PdfDictionary currentColorSpaces, 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
(Color color, PdfDictionary currentColorSpaces, Boolean fill, PdfStream contentStream) Deprecated.void
PdfAChecker.checkColor
(CanvasGraphicsState gState, Color color, PdfDictionary currentColorSpaces, Boolean fill, PdfStream contentStream) Deprecated.This method will be abstract in next major release -
Uses of Color in com.itextpdf.signatures
Methods in com.itextpdf.signatures that return ColorModifier and TypeMethodDescriptionPdfSignatureAppearance.getLayer2FontColor()
Deprecated.in favour ofSignatureFieldAppearance
.Methods in com.itextpdf.signatures with parameters of type ColorModifier and TypeMethodDescriptionPdfSignatureAppearance.setLayer2FontColor
(Color color) Deprecated.in favour ofElementPropertyContainer.setFontColor(Color)
. -
Uses of Color in com.itextpdf.svg.renderers
Methods in com.itextpdf.svg.renderers that return ColorModifier and TypeMethodDescriptionISvgPaintServer.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 ColorModifier and TypeMethodDescriptionLinearGradientSvgNodeRenderer.createColor
(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity) PatternSvgNodeRenderer.createColor
(SvgDrawContext context, Rectangle objectBoundingBox, float objectBoundingBoxMargin, float parentOpacity)
checkColor(CanvasGraphicsState gState, Color color, PdfDictionary currentColorSpaces, Boolean fill, PdfStream contentStream)