public interface Shape
stroke or
fill the path of the shape, or simply
add the
path of the shape to the drawing context.| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
float width,
float height)
Adds (the path of) the shape without drawing anything.
|
void |
draw(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
float width,
float height,
Color color,
Stroke stroke,
DrawListener drawListener)
Draws (strokes) the shape.
|
void |
fill(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
float width,
float height,
Color color,
DrawListener drawListener)
Fills the shape.
|
void draw(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
float width,
float height,
Color color,
Stroke stroke,
DrawListener drawListener)
throws IOException
pdDocument - the underlying pdfbox document.contentStream - the stream to draw to.upperLeft - the upper left position to start drawing.width - the width of the bounding box.height - the height of the bounding box.color - the color to use.stroke - the stroke to use.drawListener - the listener to
notify on drawn objects.IOException - by pdfboxvoid fill(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
float width,
float height,
Color color,
DrawListener drawListener)
throws IOException
pdDocument - the underlying pdfbox document.contentStream - the stream to draw to.upperLeft - the upper left position to start drawing.width - the width of the bounding box.height - the height of the bounding box.color - the color to use.drawListener - the listener to
notify on drawn objects.IOException - by pdfboxvoid add(org.apache.pdfbox.pdmodel.PDDocument pdDocument,
org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
Position upperLeft,
float width,
float height)
throws IOException
pdDocument - the underlying pdfbox document.contentStream - the stream to draw to.upperLeft - the upper left position to start drawing.width - the width of the bounding box.height - the height of the bounding box.IOException - by pdfboxCopyright © 2022. All rights reserved.