Uses of Class
com.itextpdf.text.BaseColor
Packages that use BaseColor
Package
Description
XMLWorker package provides a framework to parse XML to PDF with iText.
Contains classes that can apply css rules on certain
Element
s.TagProcessor implementations for
table
tags.-
Uses of BaseColor in com.itextpdf.awt
Methods in com.itextpdf.awt that return BaseColor -
Uses of BaseColor in com.itextpdf.text
Fields in com.itextpdf.text declared as BaseColorModifier and TypeFieldDescriptionprotected BaseColor
Rectangle.backgroundColor
This is the color of the background of this rectangle.static final BaseColor
BaseColor.BLACK
static final BaseColor
BaseColor.BLUE
protected BaseColor
Rectangle.borderColor
The color of the border of this rectangle.protected BaseColor
Rectangle.borderColorBottom
The color of the bottom border of this rectangle.protected BaseColor
Rectangle.borderColorLeft
The color of the left border of this rectangle.protected BaseColor
Rectangle.borderColorRight
The color of the right border of this rectangle.protected BaseColor
Rectangle.borderColorTop
The color of the top border of this rectangle.private BaseColor
Font.color
the value of the color.static final BaseColor
BaseColor.CYAN
static final BaseColor
BaseColor.DARK_GRAY
static final BaseColor
BaseColor.GRAY
static final BaseColor
BaseColor.GREEN
static final BaseColor
BaseColor.LIGHT_GRAY
static final BaseColor
BaseColor.MAGENTA
static final BaseColor
BaseColor.ORANGE
static final BaseColor
BaseColor.PINK
static final BaseColor
BaseColor.RED
static final BaseColor
BaseColor.WHITE
static final BaseColor
BaseColor.YELLOW
Methods in com.itextpdf.text that return BaseColorModifier and TypeMethodDescriptionBaseColor.brighter()
Make this BaseColor brighter.BaseColor.darker()
Make this color darker.Rectangle.getBackgroundColor()
Gets the backgroundcolor.Rectangle.getBorderColor()
Gets the color of the border.Rectangle.getBorderColorBottom()
Gets the color of the bottom border.Rectangle.getBorderColorLeft()
Gets the color of the left border.Rectangle.getBorderColorRight()
Gets the color of the right border.Rectangle.getBorderColorTop()
Gets the color of the top border.Font.getColor()
Gets the color of this font.Methods in com.itextpdf.text with parameters of type BaseColorModifier and TypeMethodDescriptionstatic Font
Constructs aFont
-object.static Font
Constructs aFont
-object.static Font
FontFactory.getFont
(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color) Constructs aFont
-object.static Font
FontFactory.getFont
(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color, boolean cached) Constructs aFont
-object.static Font
Constructs aFont
-object.Constructs aFont
-object.Constructs aFont
-object.FontFactoryImp.getFont
(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color) Constructs aFont
-object.FontFactoryImp.getFont
(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color, boolean cached) Constructs aFont
-object.Constructs aFont
-object.FontProvider.getFont
(String fontname, String encoding, boolean embedded, float size, int style, BaseColor color) Constructs aFont
-object.Chunk.setBackground
(BaseColor color) Sets the color of the backgroundChunk
.Chunk.setBackground
(BaseColor color, float extraLeft, float extraBottom, float extraRight, float extraTop) Sets the color and the size of the backgroundChunk
.void
Rectangle.setBackgroundColor
(BaseColor backgroundColor) Sets the backgroundcolor of the rectangle.void
RectangleReadOnly.setBackgroundColor
(BaseColor value) Sets the backgroundcolor of the rectangle.void
Rectangle.setBorderColor
(BaseColor borderColor) Sets the color of the border.void
RectangleReadOnly.setBorderColor
(BaseColor borderColor) Sets the color of the border.void
Rectangle.setBorderColorBottom
(BaseColor borderColorBottom) Sets the color of the bottom border.void
RectangleReadOnly.setBorderColorBottom
(BaseColor borderColorBottom) Sets the color of the bottom border.void
Rectangle.setBorderColorLeft
(BaseColor borderColorLeft) Sets the color of the left border.void
RectangleReadOnly.setBorderColorLeft
(BaseColor borderColorLeft) Sets the color of the left border.void
Rectangle.setBorderColorRight
(BaseColor borderColorRight) Sets the color of the right border.void
RectangleReadOnly.setBorderColorRight
(BaseColor borderColorRight) Sets the color of the right bordervoid
Rectangle.setBorderColorTop
(BaseColor borderColorTop) Sets the color of the top border.void
RectangleReadOnly.setBorderColorTop
(BaseColor borderColorTop) Sets the color of the top border.void
Sets the color.void
ZapfDingbatsList.setDingbatColor
(BaseColor zapfDingbatColor) Sets the dingbat's color.Chunk.setTextRenderMode
(int mode, float strokeWidth, BaseColor strokeColor) Sets the text rendering mode.Chunk.setUnderline
(BaseColor color, float thickness, float thicknessMul, float yPosition, float yPositionMul, int cap) Sets an horizontal line that can be an underline or a strikethrough.Constructors in com.itextpdf.text with parameters of type BaseColorModifierConstructorDescriptionFont
(Font.FontFamily family, float size, int style, BaseColor color) Constructs a Font.Constructs a Font.ZapfDingbatsList
(int zn, int symbolIndent, BaseColor zapfDingbatColor) Creates a ZapfDingbatList with a colored symbol -
Uses of BaseColor in com.itextpdf.text.html
Methods in com.itextpdf.text.html that return BaseColorModifier and TypeMethodDescriptionstatic BaseColor
HtmlUtilities.decodeColor
(String s) Deprecated.Converts aBaseColor
into a HTML representation of thisBaseColor
.static BaseColor
WebColors.getRGBColor
(String name) Deprecated.Gives you a BaseColor based on a name.Methods in com.itextpdf.text.html with parameters of type BaseColor -
Uses of BaseColor in com.itextpdf.text.pdf
Subclasses of BaseColor in com.itextpdf.text.pdfModifier and TypeClassDescriptionclass
class
class
class
class
class
Represents a pattern.(package private) static class
class
Implements a shading pattern as aColor
.class
Fields in com.itextpdf.text.pdf declared as BaseColorModifier and TypeFieldDescriptionPdfSpotColor.altcs
The alternative color spaceprotected BaseColor
BaseField.backgroundColor
private BaseColor
PdfDiv.backgroundColor
protected BaseColor
BaseField.borderColor
protected BaseColor
PdfContentByte.UncoloredPattern.color
private BaseColor
PdfOutline.color
Holds value of property color.protected BaseColor
PdfContentByte.GraphicState.colorFill
protected BaseColor
PdfContentByte.GraphicState.colorStroke
private BaseColor
PdfShading.cspace
(package private) BaseColor
PdfPatternPainter.defaultColor
protected BaseColor
BaseField.textColor
Methods in com.itextpdf.text.pdf that return BaseColorModifier and TypeMethodDescription(package private) BaseColor
PdfChunk.color()
Returns the color of thisChunk
.PdfSpotColor.getAlternativeCS()
Gets the alternative ColorSpace.BaseField.getBackgroundColor()
Gets the background color.PdfDiv.getBackgroundColor()
BaseField.getBorderColor()
Gets the border color.PdfOutline.getColor()
Getter for property color.PdfShading.getColorSpace()
PdfPatternPainter.getDefaultColor()
Returns the default color of the pattern.(package private) BaseColor
AcroFields.getMKColor
(PdfArray ar) BaseField.getTextColor()
Gets the text color.PdfLabColor.lab2Rgb
(float l, float a, float b) LabColor.toRgb()
Methods in com.itextpdf.text.pdf with parameters of type BaseColorModifier and TypeMethodDescription(package private) ColorDetails
PdfWriter.addSimplePatternColorspace
(BaseColor color) static void
PdfShading.checkCompatibleColors
(BaseColor c1, BaseColor c2) private boolean
PdfContentByte.compareColors
(BaseColor c1, BaseColor c2) private Phrase
TextField.composePhrase
(String text, BaseFont ufont, BaseColor color, float fontSize) Barcode.createImageWithBarcode
(PdfContentByte cb, BaseColor barColor, BaseColor textColor) Creates anImage
with the barcode.PdfContentByte.createPattern
(float width, float height, float xstep, float ystep, BaseColor color) Create a new uncolored tiling pattern.PdfContentByte.createPattern
(float width, float height, BaseColor color) Create a new uncolored tiling pattern.Barcode.createTemplateWithBarcode
(PdfContentByte cb, BaseColor barColor, BaseColor textColor) Creates a template with the barcode.static float[]
PdfShading.getColorArray
(BaseColor color) static PdfArray
PdfAnnotation.getMKColor
(BaseColor color) static int
Gets the type of a given color.(package private) void
PdfContentByte.outputColorNumbers
(BaseColor color, float tint) Outputs the color values to the content.abstract Rectangle
Barcode.placeBarcode
(PdfContentByte cb, BaseColor barColor, BaseColor textColor) Places the barcode in aPdfContentByte
.Barcode128.placeBarcode
(PdfContentByte cb, BaseColor barColor, BaseColor textColor) Places the barcode in aPdfContentByte
.Barcode39.placeBarcode
(PdfContentByte cb, BaseColor barColor, BaseColor textColor) Places the barcode in aPdfContentByte
.BarcodeCodabar.placeBarcode
(PdfContentByte cb, BaseColor barColor, BaseColor textColor) Places the barcode in aPdfContentByte
.void
BarcodeDatamatrix.placeBarcode
(PdfContentByte cb, BaseColor foreground, float moduleHeight, float moduleWidth) BarcodeEAN.placeBarcode
(PdfContentByte cb, BaseColor barColor, BaseColor textColor) Places the barcode in aPdfContentByte
.BarcodeEANSUPP.placeBarcode
(PdfContentByte cb, BaseColor barColor, BaseColor textColor) Places the barcode in aPdfContentByte
.BarcodeInter25.placeBarcode
(PdfContentByte cb, BaseColor barColor, BaseColor textColor) Places the barcode in aPdfContentByte
.void
BarcodePDF417.placeBarcode
(PdfContentByte cb, BaseColor foreground, float moduleHeight, float moduleWidth) BarcodePostnet.placeBarcode
(PdfContentByte cb, BaseColor barColor, BaseColor textColor) Places the barcode in aPdfContentByte
.void
BarcodeQRCode.placeBarcode
(PdfContentByte cb, BaseColor foreground, float moduleSide) private void
void
BaseField.setBackgroundColor
(BaseColor backgroundColor) Sets the background color.void
PdfDiv.setBackgroundColor
(BaseColor backgroundColor) void
BaseField.setBorderColor
(BaseColor borderColor) Sets the border color.void
void
Setter for property color.private void
PdfStructureElement.setColorAttribute
(BaseColor newColor, PdfObject oldColor, PdfName attributeName) void
PdfContentByte.setColorFill
(BaseColor color) Sets the fill color.void
PdfPatternPainter.setColorFill
(BaseColor color) protected void
PdfShading.setColorSpace
(BaseColor color) void
PdfContentByte.setColorStroke
(BaseColor color) Sets the stroke color.void
PdfPatternPainter.setColorStroke
(BaseColor color) void
PdfAnnotation.setMKBackgroundColor
(BaseColor color) void
PdfAnnotation.setMKBorderColor
(BaseColor color) void
PdfContentByte.setPatternFill
(PdfPatternPainter p, BaseColor color) Sets the fill color to an uncolored pattern.void
PdfContentByte.setPatternFill
(PdfPatternPainter p, BaseColor color, float tint) Sets the fill color to an uncolored pattern.void
PdfPatternPainter.setPatternFill
(PdfPatternPainter p, BaseColor color, float tint) void
PdfContentByte.setPatternStroke
(PdfPatternPainter p, BaseColor color) Sets the stroke color to an uncolored pattern.void
PdfContentByte.setPatternStroke
(PdfPatternPainter p, BaseColor color, float tint) Sets the stroke color to an uncolored pattern.void
PdfPatternPainter.setPatternStroke
(PdfPatternPainter p, BaseColor color, float tint) void
BaseField.setTextColor
(BaseColor textColor) Sets the text color.static PdfShading
PdfShading.simpleAxial
(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor) static PdfShading
PdfShading.simpleAxial
(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor, boolean extendStart, boolean extendEnd) static PdfShading
PdfShading.simpleRadial
(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor) static PdfShading
PdfShading.simpleRadial
(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor, boolean extendStart, boolean extendEnd) static PdfShading
PdfShading.type1
(PdfWriter writer, BaseColor colorSpace, float[] domain, float[] tMatrix, PdfFunction function) static PdfShading
PdfShading.type2
(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) static PdfShading
PdfShading.type3
(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) Constructors in com.itextpdf.text.pdf with parameters of type BaseColorModifierConstructorDescription(package private)
(package private)
PdfPatternPainter
(PdfWriter wr, BaseColor defaultColor) PdfSpotColor
(String name, BaseColor altcs) Constructs a newPdfSpotColor
.protected
UncoloredPattern
(PdfPatternPainter p, BaseColor color, float tint) -
Uses of BaseColor in com.itextpdf.text.pdf.codec.wmf
Fields in com.itextpdf.text.pdf.codec.wmf declared as BaseColorModifier and TypeFieldDescription(package private) BaseColor
MetaBrush.color
(package private) BaseColor
MetaPen.color
MetaState.currentBackgroundColor
MetaState.currentTextColor
Methods in com.itextpdf.text.pdf.codec.wmf that return BaseColorModifier and TypeMethodDescriptionMetaBrush.getColor()
MetaPen.getColor()
MetaState.getCurrentBackgroundColor()
Getter for property currentBackgroundColor.MetaState.getCurrentTextColor()
Getter for property currentTextColor.InputMeta.readColor()
Methods in com.itextpdf.text.pdf.codec.wmf with parameters of type BaseColorModifier and TypeMethodDescriptionvoid
MetaState.setCurrentBackgroundColor
(BaseColor currentBackgroundColor) Setter for property currentBackgroundColor.void
MetaState.setCurrentTextColor
(BaseColor currentTextColor) Setter for property currentTextColor. -
Uses of BaseColor in com.itextpdf.text.pdf.draw
Fields in com.itextpdf.text.pdf.draw declared as BaseColorModifier and TypeFieldDescriptionprotected BaseColor
LineSeparator.lineColor
The color of the line.Methods in com.itextpdf.text.pdf.draw that return BaseColorModifier and TypeMethodDescriptionLineSeparator.getLineColor()
Getter for the color of the line that will be drawn.Methods in com.itextpdf.text.pdf.draw with parameters of type BaseColorModifier and TypeMethodDescriptionvoid
LineSeparator.setLineColor
(BaseColor color) Setter for the color of the line that will be drawn.Constructors in com.itextpdf.text.pdf.draw with parameters of type BaseColorModifierConstructorDescriptionLineSeparator
(float lineWidth, float percentage, BaseColor lineColor, int align, float offset) Creates a new instance of the LineSeparator class. -
Uses of BaseColor in com.itextpdf.text.pdf.parser
Fields in com.itextpdf.text.pdf.parser declared as BaseColorModifier and TypeFieldDescription(package private) BaseColor
GraphicsState.fillColor
The current fill color.(package private) BaseColor
GraphicsState.strokeColor
The current stroke color.Methods in com.itextpdf.text.pdf.parser that return BaseColorModifier and TypeMethodDescriptionprivate static BaseColor
Gets a color based on a list of operands.private static BaseColor
Gets a color based on a list of operands.ImageRenderInfo.getCurrentFillColor()
GraphicsState.getFillColor()
Gets the current fill colorTextRenderInfo.getFillColor()
GraphicsState.getStrokeColor()
Gets the current stroke colorTextRenderInfo.getStrokeColor()
-
Uses of BaseColor in com.itextpdf.text.pdf.pdfcleanup
Fields in com.itextpdf.text.pdf.pdfcleanup declared as BaseColorMethods in com.itextpdf.text.pdf.pdfcleanup that return BaseColorModifier and TypeMethodDescriptionPdfCleanUpLocation.getCleanUpColor()
Returns a color used to fill the area after erasing it.Constructors in com.itextpdf.text.pdf.pdfcleanup with parameters of type BaseColorModifierConstructorDescriptionPdfCleanUpLocation
(int page, Rectangle region, BaseColor cleanUpColor) Constructs aPdfCleanUpLocation
object. -
Uses of BaseColor in com.itextpdf.tool.xml
Methods in com.itextpdf.tool.xml with parameters of type BaseColor -
Uses of BaseColor in com.itextpdf.tool.xml.css.apply
Methods in com.itextpdf.tool.xml.css.apply with parameters of type BaseColorModifier and TypeMethodDescriptionprivate void
ListStyleTypeCssApplier.shrinkSymbol
(List lst, float fontSize, BaseColor color) private void
ListStyleTypeCssApplier.synchronizeSymbol
(float fontSize, List lst, BaseColor color) -
Uses of BaseColor in com.itextpdf.tool.xml.html.table
Fields in com.itextpdf.tool.xml.html.table declared as BaseColorModifier and TypeFieldDescriptionprivate BaseColor
TableStyleValues.background
private BaseColor
TableStyleValues.borderBottomColor
private BaseColor
TableStyleValues.borderLeftColor
private BaseColor
TableStyleValues.borderRightColor
private BaseColor
TableStyleValues.borderTopColor
Methods in com.itextpdf.tool.xml.html.table that return BaseColorModifier and TypeMethodDescriptionTableStyleValues.getBackground()
Get background color.TableStyleValues.getBorderColorBottom()
TableStyleValues.getBorderColorLeft()
TableStyleValues.getBorderColorRight()
TableStyleValues.getBorderColorTop()
Methods in com.itextpdf.tool.xml.html.table with parameters of type BaseColorModifier and TypeMethodDescriptionvoid
TableStyleValues.setBackground
(BaseColor background) Sets background color.void
TableStyleValues.setBorderColor
(BaseColor color) Sets the border color for the entire table or cell.void
TableStyleValues.setBorderColorBottom
(BaseColor borderBottomColor) void
TableStyleValues.setBorderColorLeft
(BaseColor borderLeftColor) void
TableStyleValues.setBorderColorRight
(BaseColor borderRightColor) void
TableStyleValues.setBorderColorTop
(BaseColor borderTopColor)