Package com.itextpdf.text.pdf
Class PatternColor
- java.lang.Object
-
- com.itextpdf.text.BaseColor
-
- com.itextpdf.text.pdf.ExtendedColor
-
- com.itextpdf.text.pdf.PatternColor
-
- Direct Known Subclasses:
PdfContentByte.UncoloredPattern
public class PatternColor extends ExtendedColor
Represents a pattern. Can be used in high-level constructs (Paragraph, Cell, etc.).
-
-
Field Summary
Fields Modifier and Type Field Description (package private) PdfPatternPainter
painter
The actual pattern.private static long
serialVersionUID
-
Fields inherited from class com.itextpdf.text.pdf.ExtendedColor
type, TYPE_CMYK, TYPE_DEVICEN, TYPE_GRAY, TYPE_LAB, TYPE_PATTERN, TYPE_RGB, TYPE_SEPARATION, TYPE_SHADING
-
-
Constructor Summary
Constructors Constructor Description PatternColor(PdfPatternPainter painter)
Creates a color representing a pattern.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
PdfPatternPainter
getPainter()
Gets the pattern.int
hashCode()
-
Methods inherited from class com.itextpdf.text.pdf.ExtendedColor
getType, getType, normalize
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
painter
PdfPatternPainter painter
The actual pattern.
-
-
Constructor Detail
-
PatternColor
public PatternColor(PdfPatternPainter painter)
Creates a color representing a pattern.- Parameters:
painter
- the actual pattern
-
-
Method Detail
-
getPainter
public PdfPatternPainter getPainter()
Gets the pattern.- Returns:
- the pattern
-
-