PageDrawer
public abstract class PDFGraphicsStreamEngine extends PDFStreamEngine
Modifier | Constructor | Description |
---|---|---|
protected |
PDFGraphicsStreamEngine(PDPage page) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
abstract void |
appendRectangle(java.awt.geom.Point2D p0,
java.awt.geom.Point2D p1,
java.awt.geom.Point2D p2,
java.awt.geom.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 java.awt.geom.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addOperator, applyTextAdjustment, beginText, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getResources, getTextLineMatrix, getTextMatrix, operatorException, processAnnotation, processChildStream, processOperator, processOperator, processPage, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, registerOperatorProcessor, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showGlyph, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperator
protected PDFGraphicsStreamEngine(PDPage page)
protected final PDPage getPage()
public abstract void appendRectangle(java.awt.geom.Point2D p0, java.awt.geom.Point2D p1, java.awt.geom.Point2D p2, java.awt.geom.Point2D p3) throws java.io.IOException
p0
- point P0 of the rectangle.p1
- point P1 of the rectangle.p2
- point P2 of the rectangle.p3
- point P3 of the rectangle.java.io.IOException
- if something went wrong.public abstract void drawImage(PDImage pdImage) throws java.io.IOException
pdImage
- The image to draw.java.io.IOException
- if something went wrong.public abstract void clip(int windingRule) throws java.io.IOException
windingRule
- The winding rule which will be used for clipping.java.io.IOException
- if something went wrong.public abstract void moveTo(float x, float y) throws java.io.IOException
x
- x-coordinate of the target point.y
- y-coordinate of the target point.java.io.IOException
- if something went wrong.public abstract void lineTo(float x, float y) throws java.io.IOException
x
- x-coordinate of the end point of the line.y
- y-coordinate of the end point of the line.java.io.IOException
- if something went wrong.public abstract void curveTo(float x1, float y1, float x2, float y2, float x3, float y3) throws java.io.IOException
x1
- x-coordinate of the first control point.y1
- y-coordinate of the first control point.x2
- x-coordinate of the second control point.y2
- y-coordinate of the second control point.x3
- x-coordinate of the end point of the curve.y3
- y-coordinate of the end point of the curve.java.io.IOException
- if something went wrong.public abstract java.awt.geom.Point2D getCurrentPoint() throws java.io.IOException
java.io.IOException
- if something went wrong.public abstract void closePath() throws java.io.IOException
java.io.IOException
- if something went wrong.public abstract void endPath() throws java.io.IOException
java.io.IOException
- if something went wrong.public abstract void strokePath() throws java.io.IOException
java.io.IOException
- If there is an IO error while stroking the path.public abstract void fillPath(int windingRule) throws java.io.IOException
windingRule
- The winding rule this path will use.java.io.IOException
- if something went wrong.public abstract void fillAndStrokePath(int windingRule) throws java.io.IOException
windingRule
- The winding rule this path will use.java.io.IOException
- if something went wrong.public abstract void shadingFill(COSName shadingName) throws java.io.IOException
shadingName
- The name of the Shading Dictionary to use for this fill instruction.java.io.IOException
- if something went wrong.Copyright © 2002–2018. All rights reserved.