|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lowagie.text.pdf.PdfContentByte
com.lowagie.text.pdf.PdfTemplate
com.lowagie.text.pdf.PdfPatternPainter
Implements the pattern.
| Nested Class Summary |
| Nested classes inherited from class com.lowagie.text.pdf.PdfContentByte |
PdfContentByte.GraphicState |
| Field Summary | |
protected Color |
defaultColor
|
protected boolean |
stencil
|
protected float |
xstep
|
protected float |
ystep
|
| Fields inherited from class com.lowagie.text.pdf.PdfTemplate |
bBox, group, matrix, pageResources, thisReference, type, TYPE_IMPORTED, TYPE_PATTERN, TYPE_TEMPLATE |
| Fields inherited from class com.lowagie.text.pdf.PdfContentByte |
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, content, LINE_CAP_BUTT, LINE_CAP_PROJECTING_SQUARE, LINE_CAP_ROUND, pdf, separator, state, stateList, TEXT_RENDER_MODE_CLIP, TEXT_RENDER_MODE_FILL, TEXT_RENDER_MODE_FILL_CLIP, TEXT_RENDER_MODE_FILL_STROKE, TEXT_RENDER_MODE_FILL_STROKE_CLIP, TEXT_RENDER_MODE_INVISIBLE, TEXT_RENDER_MODE_STROKE, TEXT_RENDER_MODE_STROKE_CLIP, writer |
| Constructor Summary | |
private |
PdfPatternPainter()
Creates a PdfPattern. |
(package private) |
PdfPatternPainter(PdfWriter wr)
Creates new PdfPattern |
(package private) |
PdfPatternPainter(PdfWriter wr,
Color defaultColor)
|
| Method Summary | |
void |
addImage(Image image,
float a,
float b,
float c,
float d,
float e,
float f)
Adds an Image to the page. |
(package private) void |
checkNoColor()
|
Color |
getDefaultColor()
|
PdfContentByte |
getDuplicate()
Gets a duplicate of this PdfPatternPainter. |
(package private) PdfPattern |
getPattern()
Gets the stream representing this pattern |
float |
getXStep()
|
float |
getYStep()
|
boolean |
isStencil()
|
void |
resetCMYKColorFill()
Changes the current color for filling paths to black. |
void |
resetCMYKColorStroke()
Changes the current color for stroking paths to black. |
void |
resetGrayFill()
Changes the current gray tint for filling paths to black. |
void |
resetGrayStroke()
Changes the current gray tint for stroking paths to black. |
void |
resetRGBColorFill()
Changes the current color for filling paths to black. |
void |
resetRGBColorStroke()
Changes the current color for stroking paths to black. |
void |
setCMYKColorFill(int cyan,
int magenta,
int yellow,
int black)
Changes the current color for filling paths (device dependent colors!). |
void |
setCMYKColorFillF(float cyan,
float magenta,
float yellow,
float black)
Changes the current color for filling paths (device dependent colors!). |
void |
setCMYKColorStroke(int cyan,
int magenta,
int yellow,
int black)
Changes the current color for stroking paths (device dependent colors!). |
void |
setCMYKColorStrokeF(float cyan,
float magenta,
float yellow,
float black)
Changes the current color for stroking paths (device dependent colors!). |
void |
setColorFill(Color color)
Sets the fill color. |
void |
setColorFill(PdfSpotColor sp,
float tint)
Sets the fill color to a spot color. |
void |
setColorStroke(Color color)
Sets the stroke color. |
void |
setColorStroke(PdfSpotColor sp,
float tint)
Sets the stroke color to a spot color. |
void |
setGrayFill(float gray)
Changes the currentgray tint for filling paths (device dependent colors!). |
void |
setGrayStroke(float gray)
Changes the currentgray tint for stroking paths (device dependent colors!). |
void |
setPatternFill(PdfPatternPainter p)
Sets the fill color to a pattern. |
void |
setPatternFill(PdfPatternPainter p,
Color color,
float tint)
Sets the fill color to an uncolored pattern. |
void |
setPatternMatrix(float a,
float b,
float c,
float d,
float e,
float f)
|
void |
setPatternStroke(PdfPatternPainter p)
Sets the stroke color to a pattern. |
void |
setPatternStroke(PdfPatternPainter p,
Color color,
float tint)
Sets the stroke color to an uncolored pattern. |
void |
setRGBColorFill(int red,
int green,
int blue)
Changes the current color for filling paths (device dependent colors!). |
void |
setRGBColorFillF(float red,
float green,
float blue)
Changes the current color for filling paths (device dependent colors!). |
void |
setRGBColorStroke(int red,
int green,
int blue)
Changes the current color for stroking paths (device dependent colors!). |
void |
setRGBColorStrokeF(float red,
float green,
float blue)
Changes the current color for stroking paths (device dependent colors!). |
void |
setXStep(float xstep)
Sets the xstep of this pattern. |
void |
setYStep(float ystep)
Sets the ystep of this pattern. |
| Methods inherited from class com.lowagie.text.pdf.PdfTemplate |
beginVariableText, endVariableText, getBoundingBox, getFormXObject, getGroup, getHeight, getIndirectReference, getMatrix, getPageResources, getResources, getType, getWidth, setBoundingBox, setGroup, setHeight, setMatrix, setWidth |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected float xstep
protected float ystep
protected boolean stencil
protected Color defaultColor
| Constructor Detail |
private PdfPatternPainter()
PdfPattern.
PdfPatternPainter(PdfWriter wr)
wr - the PdfWriter
PdfPatternPainter(PdfWriter wr,
Color defaultColor)
| Method Detail |
public void setXStep(float xstep)
xstep - the xstep in horizontal paintingpublic void setYStep(float ystep)
ystep - in vertical paintingpublic float getXStep()
public float getYStep()
public boolean isStencil()
public void setPatternMatrix(float a,
float b,
float c,
float d,
float e,
float f)
PdfPattern getPattern()
public PdfContentByte getDuplicate()
PdfPatternPainter. All
the members are copied by reference but the buffer stays different.
getDuplicate in class PdfTemplatePdfPatternPainterpublic Color getDefaultColor()
public void setGrayFill(float gray)
PdfContentByteSets the color space to DeviceGray (or the DefaultGray color space), and sets the gray tint to use for filling paths.
setGrayFill in class PdfContentBytegray - a value between 0 (black) and 1 (white)public void resetGrayFill()
PdfContentByte
resetGrayFill in class PdfContentBytepublic void setGrayStroke(float gray)
PdfContentByteSets the color space to DeviceGray (or the DefaultGray color space), and sets the gray tint to use for stroking paths.
setGrayStroke in class PdfContentBytegray - a value between 0 (black) and 1 (white)public void resetGrayStroke()
PdfContentByte
resetGrayStroke in class PdfContentByte
public void setRGBColorFillF(float red,
float green,
float blue)
PdfContentByteSets the color space to DeviceRGB (or the DefaultRGB color space), and sets the color to use for filling paths.
Following the PDF manual, each operand must be a number between 0 (minimum intensity) and 1 (maximum intensity).
setRGBColorFillF in class PdfContentBytered - the intensity of red. A value between 0 and 1green - the intensity of green. A value between 0 and 1blue - the intensity of blue. A value between 0 and 1public void resetRGBColorFill()
PdfContentByte
resetRGBColorFill in class PdfContentByte
public void setRGBColorStrokeF(float red,
float green,
float blue)
PdfContentByteSets the color space to DeviceRGB (or the DefaultRGB color space), and sets the color to use for stroking paths.
Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and 1 (maximum intensity).
setRGBColorStrokeF in class PdfContentBytered - the intensity of red. A value between 0 and 1green - the intensity of green. A value between 0 and 1blue - the intensity of blue. A value between 0 and 1public void resetRGBColorStroke()
PdfContentByte
resetRGBColorStroke in class PdfContentByte
public void setCMYKColorFillF(float cyan,
float magenta,
float yellow,
float black)
PdfContentByteSets the color space to DeviceCMYK (or the DefaultCMYK color space), and sets the color to use for filling paths.
Following the PDF manual, each operand must be a number between 0 (no ink) and 1 (maximum ink).
setCMYKColorFillF in class PdfContentBytecyan - the intensity of cyan. A value between 0 and 1magenta - the intensity of magenta. A value between 0 and 1yellow - the intensity of yellow. A value between 0 and 1black - the intensity of black. A value between 0 and 1public void resetCMYKColorFill()
PdfContentByte
resetCMYKColorFill in class PdfContentByte
public void setCMYKColorStrokeF(float cyan,
float magenta,
float yellow,
float black)
PdfContentByteSets the color space to DeviceCMYK (or the DefaultCMYK color space), and sets the color to use for stroking paths.
Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and 1 (maximum intensity).
setCMYKColorStrokeF in class PdfContentBytecyan - the intensity of cyan. A value between 0 and 1magenta - the intensity of magenta. A value between 0 and 1yellow - the intensity of yellow. A value between 0 and 1black - the intensity of black. A value between 0 and 1public void resetCMYKColorStroke()
PdfContentByte
resetCMYKColorStroke in class PdfContentByte
public void addImage(Image image,
float a,
float b,
float c,
float d,
float e,
float f)
throws DocumentException
PdfContentByteImage to the page. The positioning of the Image
is done with the transformation matrix. To position an image at (x,y)
use addImage(image, image_width, 0, 0, image_height, x, y).
addImage in class PdfContentByteimage - the Image objecta - an element of the transformation matrixb - an element of the transformation matrixc - an element of the transformation matrixd - an element of the transformation matrixe - an element of the transformation matrixf - an element of the transformation matrix
DocumentException - on error
public void setCMYKColorFill(int cyan,
int magenta,
int yellow,
int black)
PdfContentByteSets the color space to DeviceCMYK (or the DefaultCMYK color space), and sets the color to use for filling paths.
This method is described in the 'Portable Document Format Reference Manual version 1.3' section 8.5.2.1 (page 331).
Following the PDF manual, each operand must be a number between 0 (no ink) and 1 (maximum ink). This method however accepts only integers between 0x00 and 0xFF.
setCMYKColorFill in class PdfContentBytecyan - the intensity of cyanmagenta - the intensity of magentayellow - the intensity of yellowblack - the intensity of black
public void setCMYKColorStroke(int cyan,
int magenta,
int yellow,
int black)
PdfContentByteSets the color space to DeviceCMYK (or the DefaultCMYK color space), and sets the color to use for stroking paths.
This method is described in the 'Portable Document Format Reference Manual version 1.3' section 8.5.2.1 (page 331).
Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and 1 (maximum intensity). This method however accepts only integers between 0x00 and 0xFF.
setCMYKColorStroke in class PdfContentBytecyan - the intensity of redmagenta - the intensity of greenyellow - the intensity of blueblack - the intensity of black
public void setRGBColorFill(int red,
int green,
int blue)
PdfContentByteSets the color space to DeviceRGB (or the DefaultRGB color space), and sets the color to use for filling paths.
This method is described in the 'Portable Document Format Reference Manual version 1.3' section 8.5.2.1 (page 331).
Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and 1 (maximum intensity). This method however accepts only integers between 0x00 and 0xFF.
setRGBColorFill in class PdfContentBytered - the intensity of redgreen - the intensity of greenblue - the intensity of blue
public void setRGBColorStroke(int red,
int green,
int blue)
PdfContentByteSets the color space to DeviceRGB (or the DefaultRGB color space), and sets the color to use for stroking paths.
This method is described in the 'Portable Document Format Reference Manual version 1.3' section 8.5.2.1 (page 331).
Following the PDF manual, each operand must be a number between 0 (miniumum intensity) and 1 (maximum intensity). This method however accepts only integers between 0x00 and 0xFF.
setRGBColorStroke in class PdfContentBytered - the intensity of redgreen - the intensity of greenblue - the intensity of bluepublic void setColorStroke(Color color)
PdfContentBytecolor can be an
ExtendedColor.
setColorStroke in class PdfContentBytecolor - the colorpublic void setColorFill(Color color)
PdfContentBytecolor can be an
ExtendedColor.
setColorFill in class PdfContentBytecolor - the color
public void setColorFill(PdfSpotColor sp,
float tint)
PdfContentByte
setColorFill in class PdfContentBytesp - the spot colortint - the tint for the spot color. 0 is no color and 1
is 100% color
public void setColorStroke(PdfSpotColor sp,
float tint)
PdfContentByte
setColorStroke in class PdfContentBytesp - the spot colortint - the tint for the spot color. 0 is no color and 1
is 100% colorpublic void setPatternFill(PdfPatternPainter p)
PdfContentByte
setPatternFill in class PdfContentBytep - the pattern
public void setPatternFill(PdfPatternPainter p,
Color color,
float tint)
PdfContentByte
setPatternFill in class PdfContentBytep - the patterncolor - the color of the patterntint - the tint if the color is a spot color, ignored otherwise
public void setPatternStroke(PdfPatternPainter p,
Color color,
float tint)
PdfContentByte
setPatternStroke in class PdfContentBytep - the patterncolor - the color of the patterntint - the tint if the color is a spot color, ignored otherwisepublic void setPatternStroke(PdfPatternPainter p)
PdfContentByte
setPatternStroke in class PdfContentBytep - the patternvoid checkNoColor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||