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 PdfFormXObjectBarcode2D.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 RectangleBarcode1D.placeBarcode(PdfCanvas canvas, Color barColor, Color textColor) Places the barcode in aPdfCanvas.abstract RectangleBarcode2D.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 ColorPdfFormAnnotation.backgroundColorprotected ColorPdfFormAnnotation.borderColorprotected ColorAbstractPdfFormField.colorMethods in com.itextpdf.forms.fields that return ColorModifier and TypeMethodDescriptionprivate static ColorPdfFormAnnotation.appearancePropToColor(PdfDictionary appearanceCharacteristics, PdfName property) AbstractPdfFormField.getColor()Gets the current color of the form field.Methods in com.itextpdf.forms.fields with parameters of type ColorModifier and TypeMethodDescriptionprivate static PdfStringPdfFormField.generateDefaultAppearance(PdfName font, float fontSize, Color textColor) PdfFormAnnotation.setBackgroundColor(Color backgroundColor) Basic setter for thebackgroundColorproperty.PdfFormAnnotation.setBorderColor(Color color) Sets the Border Color.Sets the text color and regenerates appearance stream.Sets the text color and regenerates appearance stream.(package private) voidAbstractPdfFormField.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 ColorMethods in com.itextpdf.forms.fields.borders that return ColorMethods in com.itextpdf.forms.fields.borders with parameters of type ColorModifier and TypeMethodDescriptionstatic BorderFormBorderFactory.getBorder(PdfDictionary borderStyle, float borderWidth, Color borderColor, Color backgroundColor) ReturnsBorderfor specific borderStyle.private ColorBeveledBorder.getDarkerColor(Color color) Constructors in com.itextpdf.forms.fields.borders with parameters of type ColorModifierConstructorDescriptionprotectedAbstractFormBorder(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 -
Uses of Color in com.itextpdf.forms.form.renderer
Fields in com.itextpdf.forms.form.renderer declared as Color -
Uses of Color in com.itextpdf.forms.xfdf
Methods in com.itextpdf.forms.xfdf that return ColorModifier and TypeMethodDescription(package private) static ColorXfdfObjectUtils.convertColorFromString(String hexColor) Converts string containing hex color code to Color object.Methods in com.itextpdf.forms.xfdf with parameters of type ColorModifier and TypeMethodDescription(package private) static StringXfdfObjectUtils.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.colorsModifier and TypeClassDescriptionclassRepresentation of a CalGray color space.classRepresentation of a CalRgb color space.classColor space to specify colors according to CMYK color model.classColor space to specify shades of gray color.classRepresentation of a DeviceN color space.classColor space to specify colors according to RGB color model.classRepresentation on an ICC Based color space.classRepresentation of an indexed color space.classRepresentation of a lab color space.classRepresentation of a Pattern Color.classRepresentation of a separation color space.Fields in com.itextpdf.kernel.colors declared as ColorModifier and TypeFieldDescriptionstatic final ColorColorConstants.BLACKPredefined black DeviceRgb colorstatic final ColorDeviceRgb.BLACKPredefined black DeviceRgb colorstatic final ColorColorConstants.BLUEPredefined blue DeviceRgb colorstatic final ColorDeviceRgb.BLUEPredefined blue DeviceRgb colorstatic final ColorColorConstants.CYANPredefined cyan DeviceRgb colorstatic final ColorColorConstants.DARK_GRAYPredefined dark gray DeviceRgb colorstatic final ColorColorConstants.GRAYPredefined gray DeviceRgb colorstatic final ColorColorConstants.GREENPredefined green DeviceRgb colorstatic final ColorDeviceRgb.GREENPredefined green DeviceRgb colorstatic final ColorColorConstants.LIGHT_GRAYPredefined light gray DeviceRgb colorstatic final ColorColorConstants.MAGENTAPredefined magenta DeviceRgb colorstatic final ColorColorConstants.ORANGEPredefined orange DeviceRgb colorstatic final ColorColorConstants.PINKPredefined pink DeviceRgb colorstatic final ColorColorConstants.REDPredefined red DeviceRgb colorstatic final ColorDeviceRgb.REDPredefined red DeviceRgb colorprivate ColorPatternColor.underlyingColorstatic final ColorColorConstants.WHITEPredefined white DeviceRgb colorstatic final ColorDeviceRgb.WHITEPredefined white DeviceRgb colorstatic final ColorColorConstants.YELLOWPredefined yellow DeviceRgb colorMethods in com.itextpdf.kernel.colors that return ColorModifier and TypeMethodDescriptionstatic ColorColor.createColorWithColorSpace(float[] colorValue) Creates a color object based on the passed through values.static ColorColor.makeColor(PdfColorSpace colorSpace) Makes a Color of certain color space.static ColorColor.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 ColorModifierConstructorDescriptionPatternColor(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 ColorModifier and TypeMethodDescriptionAbstractLinearGradientBuilder.buildColor(Rectangle targetBoundingBox, AffineTransform contextTransform, PdfDocument document) Builds theColorobject 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,Ckey.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.static ColorInteriorColorUtil.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 ColorModifier and TypeMethodDescriptionSets an annotation color. -
Uses of Color in com.itextpdf.kernel.pdf.canvas
Fields in com.itextpdf.kernel.pdf.canvas declared as ColorModifier and TypeFieldDescriptionprivate ColorCanvasGraphicsState.fillColorprivate ColorCanvasGraphicsState.strokeColorMethods in com.itextpdf.kernel.pdf.canvas that return ColorModifier and TypeMethodDescriptionprivate ColorPdfCanvas.createColor(PdfColorSpace colorSpace, float[] colorValue, PdfPattern pattern) CanvasGraphicsState.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.voidCanvasGraphicsState.setFillColor(Color fillColor) Sets the current fillcolor.PdfCanvas.setFillColor(Color color) Changes the current color for filling paths.voidCanvasGraphicsState.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
Fields in com.itextpdf.kernel.pdf.canvas.draw declared as ColorModifier and TypeFieldDescriptionprivate ColorDashedLine.colorprivate ColorDottedLine.colorprivate ColorSolidLine.colorMethods 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
Methods in com.itextpdf.kernel.pdf.canvas.parser that return ColorModifier and TypeMethodDescriptionprivate static ColorGets a color based on a list of operands.private static ColorPdfCanvasProcessor.getColor(PdfColorSpace pdfColorSpace, 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 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 TypeFieldDescription(package private) ColorMetaBrush.color(package private) ColorMetaPen.colorprivate ColorMetaState.currentBackgroundColorThe current background color.private ColorMetaState.currentTextColorCurrent 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 nextColorfrom the InputStream.Methods in com.itextpdf.kernel.pdf.canvas.wmf with parameters of type ColorModifier and TypeMethodDescriptionvoidMetaState.setCurrentBackgroundColor(Color currentBackgroundColor) Setter for property currentBackgroundColor.voidMetaState.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 ColorAbstractTextMarkupAnnotationFlattener.getColor(PdfAnnotation annotation) -
Uses of Color in com.itextpdf.layout
Methods in com.itextpdf.layout that return ColorMethods 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.setStrokeColor(Color strokeColor, float opacity) 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 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 ColorBorder3D.getDarkerColor()Makes theBorder.transparentColorcolor 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 ColorModifierConstructorDescriptionprotectedprotectedDashedBorder(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 ColorMethods 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 newTransparentColorinstance 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 TypeMethodDescriptionvoidPdfA1Checker.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.voidPdfA2Checker.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 voidPdfAChecker.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. -
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 theColorthat represents the corresponding paint server for specified object box. -
Uses of Color in com.itextpdf.svg.renderers.impl
Fields in com.itextpdf.svg.renderers.impl declared as ColorModifier and TypeFieldDescription(package private) final ColorAbstractSvgNodeRenderer.FillProperties.color(package private) final ColorAbstractSvgNodeRenderer.StrokeProperties.colorMethods 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) AbstractSvgNodeRenderer.FillProperties.getColor()AbstractSvgNodeRenderer.StrokeProperties.getColor()Constructors in com.itextpdf.svg.renderers.impl with parameters of type ColorModifierConstructorDescriptionFillProperties(float opacity, Color color) StrokeProperties(Color color, float width, float opacity, SvgStrokeParameterConverter.PdfLineDashParameters lineDashParameters) -
Uses of Color in com.itextpdf.svg.utils
Fields in com.itextpdf.svg.utils declared as ColorModifier and TypeFieldDescriptionprivate ColorSvgTextProperties.fillColorprivate ColorSvgTextProperties.strokeColorMethods in com.itextpdf.svg.utils that return ColorModifier and TypeMethodDescriptionSvgTextProperties.getFillColor()Gets text fill color.SvgTextProperties.getStrokeColor()Gets text stroke color.Methods in com.itextpdf.svg.utils with parameters of type ColorModifier and TypeMethodDescriptionprivate static voidSvgTextUtil.addUnderline(SvgDrawContext context, List<Underline> underlineList, Color strokeColor, float strokeOpacity, Color fillColor, float fillOpacity, float textDecorationLine, boolean doFill, boolean doStroke) SvgTextProperties.setFillColor(Color fillColor) Sets text fill color.SvgTextProperties.setStrokeColor(Color strokeColor) Sets text stroke color.
ElementPropertyContainer.getTransparentStrokeColor()which should be renamed togetStrokeColorafter this method will be removed