com.lowagie.text.pdf
public final class PdfPatternPainter extends PdfTemplate
| Field Summary | |
|---|---|
| Color | defaultColor |
| boolean | stencil |
| float | xstep |
| float | ystep |
| Constructor Summary | |
|---|---|
| PdfPatternPainter()
Creates a PdfPattern. | |
| PdfPatternPainter(PdfWriter wr)
Creates new PdfPattern
| |
| PdfPatternPainter(PdfWriter wr, Color defaultColor) | |
| Method Summary | |
|---|---|
| void | addImage(Image image, float a, float b, float c, float d, float e, float f) |
| void | checkNoColor() |
| Color | getDefaultColor()
Returns the default color of the pattern. |
| PdfContentByte | getDuplicate()
Gets a duplicate of this PdfPatternPainter. |
| PdfPattern | getPattern()
Gets the stream representing this pattern |
| PdfPattern | getPattern(int compressionLevel)
Gets the stream representing this pattern |
| float | getXStep()
Returns the horizontal interval when repeating the pattern. |
| float | getYStep()
Returns the vertical interval when repeating the pattern. |
| boolean | isStencil()
Tells you if this pattern is colored/uncolored (stencil = uncolored, you need to set a default color). |
| void | resetCMYKColorFill() |
| void | resetCMYKColorStroke() |
| void | resetGrayFill() |
| void | resetGrayStroke() |
| void | resetRGBColorFill() |
| void | resetRGBColorStroke() |
| void | setCMYKColorFill(int cyan, int magenta, int yellow, int black) |
| void | setCMYKColorFillF(float cyan, float magenta, float yellow, float black) |
| void | setCMYKColorStroke(int cyan, int magenta, int yellow, int black) |
| void | setCMYKColorStrokeF(float cyan, float magenta, float yellow, float black) |
| void | setColorFill(Color color) |
| void | setColorFill(PdfSpotColor sp, float tint) |
| void | setColorStroke(Color color) |
| void | setColorStroke(PdfSpotColor sp, float tint) |
| void | setGrayFill(float gray) |
| void | setGrayStroke(float gray) |
| void | setPatternFill(PdfPatternPainter p) |
| void | setPatternFill(PdfPatternPainter p, Color color, float tint) |
| void | setPatternMatrix(float a, float b, float c, float d, float e, float f)
Sets the transformation matrix for the pattern. |
| void | setPatternStroke(PdfPatternPainter p, Color color, float tint) |
| void | setPatternStroke(PdfPatternPainter p) |
| void | setRGBColorFill(int red, int green, int blue) |
| void | setRGBColorFillF(float red, float green, float blue) |
| void | setRGBColorStroke(int red, int green, int blue) |
| void | setRGBColorStrokeF(float red, float green, float blue) |
| void | setXStep(float xstep)
Sets the horizontal interval of this pattern.
|
| void | setYStep(float ystep)
Sets the vertical interval of this pattern.
|
PdfPattern.Parameters: wr the PdfWriter
See Also: PdfContentByte
Returns: a Color
PdfPatternPainter. All
the members are copied by reference but the buffer stays different.Returns: a copy of this PdfPatternPainter
Returns: the stream representing this pattern
Parameters: compressionLevel the compression level of the stream
Returns: the stream representing this pattern
Since: 2.1.3
Returns: a value
Returns: a value
Returns: true if the pattern is an uncolored tiling pattern (stencil).
See Also: resetCMYKColorFill
See Also: resetCMYKColorStroke
See Also: resetGrayFill
See Also: resetGrayStroke
See Also: resetRGBColorFill
See Also: resetRGBColorStroke
See Also: PdfContentByte
See Also: PdfContentByte
See Also: PdfContentByte
See Also: PdfContentByte
See Also: setColorFill
See Also: PdfContentByte
See Also: setColorStroke
See Also: PdfContentByte
See Also: PdfContentByte
See Also: PdfContentByte
See Also: setPatternFill
See Also: PdfContentByte
Parameters: a b c d e f
See Also: PdfContentByte
See Also: setPatternStroke
See Also: PdfContentByte
See Also: PdfContentByte
See Also: PdfContentByte
See Also: PdfContentByte
Parameters: xstep the xstep in horizontal painting
Parameters: ystep in vertical painting