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, 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(Point2D p0, Point2D p1, Point2D p2, Point2D p3) throws 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.IOException
- if something went wrong.public abstract void drawImage(PDImage pdImage) throws IOException
pdImage
- The image to draw.IOException
- if something went wrong.public abstract void clip(int windingRule) throws IOException
windingRule
- The winding rule which will be used for clipping.IOException
- if something went wrong.public abstract void moveTo(float x, float y) throws IOException
x
- x-coordinate of the target point.y
- y-coordinate of the target point.IOException
- if something went wrong.public abstract void lineTo(float x, float y) throws IOException
x
- x-coordinate of the end point of the line.y
- y-coordinate of the end point of the line.IOException
- if something went wrong.public abstract void curveTo(float x1, float y1, float x2, float y2, float x3, float y3) throws 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.IOException
- if something went wrong.public abstract Point2D getCurrentPoint() throws IOException
IOException
- if something went wrong.public abstract void closePath() throws IOException
IOException
- if something went wrong.public abstract void endPath() throws IOException
IOException
- if something went wrong.public 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 something went wrong.public abstract void fillAndStrokePath(int windingRule) throws IOException
windingRule
- The winding rule this path will use.IOException
- if something went wrong.public abstract void shadingFill(COSName shadingName) throws IOException
shadingName
- The name of the Shading Dictionary to use for this fill instruction.IOException
- if something went wrong.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.