public abstract class PDFGraphicsStreamEngine extends PDFStreamEngine
| Modifier | Constructor and Description |
|---|---|
protected |
PDFGraphicsStreamEngine(PDPage page)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
appendRectangle(Point2D p0,
Point2D p1,
Point2D p2,
Point2D p3)
Append a rectangle to the current path.
|
abstract void |
clip(int windingRule)
Modify the current clipping path by intersecting it with the current path.
|
abstract void |
closePath()
Closes the current path.
|
abstract void |
curveTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
Draws a curve from the current point to (x3,y3) using (x1,y1) and (x2,y2) as control points.
|
abstract void |
drawImage(PDImage pdImage)
Draw the image.
|
abstract void |
endPath()
Ends the current path without filling or stroking it.
|
abstract void |
fillAndStrokePath(int windingRule)
Fills and then strokes the path.
|
abstract void |
fillPath(int windingRule)
Fill the path.
|
abstract Point2D |
getCurrentPoint()
Returns the current point of the current path.
|
protected PDPage |
getPage()
Returns the page.
|
abstract void |
lineTo(float x,
float y)
Draws a line from the current point to (x,y).
|
abstract void |
moveTo(float x,
float y)
Starts a new path at (x,y).
|
abstract void |
shadingFill(COSName shadingName)
Fill with Shading.
|
abstract void |
strokePath()
Stroke the path.
|
addOperator, applyTextAdjustment, beginMarkedContentSequence, beginText, decreaseLevel, endMarkedContentSequence, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getLevel, getResources, getTextLineMatrix, getTextMatrix, increaseLevel, operatorException, processAnnotation, processChildStream, processOperator, processOperator, processPage, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showGlyph, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperatorprotected PDFGraphicsStreamEngine(PDPage page)
page - the page the content stream belongs toprotected final PDPage getPage()
public abstract void appendRectangle(Point2D p0, Point2D p1, Point2D p2, Point2D p3) throws IOException
p0 - starting coordinate of the rectanglep1 - second coordinate of the rectanglep2 - third coordinate of the rectanglep3 - last coordinate of the rectangleIOException - if the rectangle could not be appendedpublic abstract void drawImage(PDImage pdImage) throws IOException
pdImage - The image to draw.IOException - if the image could not be drawnpublic abstract void clip(int windingRule)
throws IOException
windingRule - The winding rule which will be used for clipping.IOException - if the clipping path could not be modifiedpublic abstract void moveTo(float x,
float y)
throws IOException
x - the x-coordinate to move toy - the y-coordinate to move toIOException - if the something went wrong when moving to the given coordinatepublic abstract void lineTo(float x,
float y)
throws IOException
x - the X-coordinate of the ending-point of the line to be drawny - the Y-coordinate of the ending-point of the line to be drawnIOException - if the line could not be drawnpublic abstract void curveTo(float x1,
float y1,
float x2,
float y2,
float x3,
float y3)
throws IOException
x1 - the X coordinate of the first Bézier control pointy1 - the Y coordinate of the first Bézier control pointx2 - the X coordinate of the second Bézier control pointy2 - the Y coordinate of the second Bézier control pointx3 - the X coordinate of the final end pointy3 - the Y coordinate of the final end pointIOException - if the curve could not be drawnpublic abstract Point2D getCurrentPoint() throws IOException
IOException - if the something went wrong when providing the current pointpublic abstract void closePath()
throws IOException
IOException - if the current path could not be closedpublic abstract void endPath()
throws IOException
IOException - if the current path could not be endedpublic abstract void strokePath()
throws IOException
IOException - If there is an IO error while stroking the path.public abstract void fillPath(int windingRule)
throws IOException
windingRule - The winding rule this path will use.IOException - if the path could not be filledpublic abstract void fillAndStrokePath(int windingRule)
throws IOException
windingRule - The winding rule this path will use.IOException - if the path could not be filled and strokepublic abstract void shadingFill(COSName shadingName) throws IOException
shadingName - The name of the Shading Dictionary to use for this fill instruction.IOException - if the path could not be filled using the given shadingCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.