public abstract class AbstractShape extends Object implements Shape
fill(PDDocument, PDPageContentStream, Position, float, float, Color, DrawListener)
and (@link
draw(PDDocument, PDPageContentStream, Position, float, float, Color, Stroke, DrawListener)
.| Constructor and Description |
|---|
AbstractShape() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public 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
Shapedraw in interface ShapepdDocument - 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 pdfboxpublic void 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
Shapefill in interface ShapepdDocument - 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 pdfboxCopyright © 2021. All rights reserved.