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