See PDFStreamEngine for further methods which may be overridden.
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | appendRectangle(Point2D
starting coordinate of the rectangle p0, Point2D second coordinate of the rectangle p1, Point2D third coordinate of the rectangle p2, Point2D last coordinate of the rectangle p3)Implements abstract org. Append a rectangle to the current path. |
| public void | clip(int
The winding rule which will be used for clipping. windingRule)Implements abstract org. Modify the current clipping path by intersecting it with the current path. |
| public void | closePath()
Implements abstract org. Closes the current path. |
| public void | curveTo(float
the X coordinate of the first Bézier control point x1, float the Y coordinate of the first Bézier control point y1, float the X coordinate of the second Bézier control point x2, float the Y coordinate of the second Bézier control point y2, float the X coordinate of the final end point x3, float the Y coordinate of the final end point y3)Implements abstract org. Draws a curve from the current point to (x3,y3) using (x1,y1) and (x2,y2) as control points. |
| public void | drawImage(PDImage
The image to draw. pdImage)Implements abstract org. Draw the image. |
| public void | endPath()
Implements abstract org. Ends the current path without filling or stroking it. |
| public void | fillAndStrokePath(int
The winding rule this path will use. windingRule)Implements abstract org. Fills and then strokes the path. |
| public void | fillPath(int
The winding rule this path will use. windingRule)Implements abstract org. Fill the path. |
| public Point2D | getCurrentPoint()
Implements abstract org. Returns the current point of the current path. |
| public void | lineTo(float
the X-coordinate of the ending-point of the line to be drawn x, float the Y-coordinate of the ending-point of the line to be drawn y)Implements abstract org. Draws a line from the current point to (x,y). |
| public static void | |
| public void | moveTo(float
the x-coordinate to move to x, float the y-coordinate to move to y)Implements abstract org. Starts a new path at (x,y). |
| public void | |
| public void | shadingFill(COSName
The name of the Shading Dictionary to use for this fill instruction. shadingName)Implements abstract org. Fill with Shading. |
| protected void | showGlyph(Matrix
the current text rendering matrix, Trm textRenderingMatrix, PDFont the current font font, int internal PDF character code for the glyph code, Vector the displacement (i.e. advance) of the glyph in text space displacement)Overrides org. Overridden from PDFStreamEngine. |
| public void | showTextString(byte[]
the encoded text string)Overrides org. Overridden from PDFStreamEngine. |
| public void | showTextStrings(COSArray
array of encoded text strings and adjustments array)Overrides org. Overridden from PDFStreamEngine. |
| public void | strokePath()
Implements abstract org. Stroke the path. |
| CustomGraphicsStreamEngine | back to summary |
|---|---|
| protected CustomGraphicsStreamEngine(PDPage page) Constructor.
| |
| appendRectangle | back to summary |
|---|---|
| public void appendRectangle(Point2D p0, Point2D p1, Point2D p2, Point2D p3) throws IOException Implements abstract org. Doc from org. Append a rectangle to the current path. | |
| clip | back to summary |
|---|---|
| public void clip(int windingRule) throws IOException Implements abstract org. Doc from org. Modify the current clipping path by intersecting it with the current path. The clipping path will not be updated until the succeeding painting operator is called.
| |
| closePath | back to summary |
|---|---|
| public void closePath() throws IOException Implements abstract org. Doc from org. Closes the current path.
| |
| curveTo | back to summary |
|---|---|
| public void curveTo(float x1, float y1, float x2, float y2, float x3, float y3) throws IOException Implements abstract org. Doc from org. Draws a curve from the current point to (x3,y3) using (x1,y1) and (x2,y2) as control points.
| |
| drawImage | back to summary |
|---|---|
| public void drawImage(PDImage pdImage) throws IOException Implements abstract org. Doc from org. Draw the image.
| |
| endPath | back to summary |
|---|---|
| public void endPath() throws IOException Implements abstract org. Doc from org. Ends the current path without filling or stroking it. The clipping path is updated here.
| |
| fillAndStrokePath | back to summary |
|---|---|
| public void fillAndStrokePath(int windingRule) throws IOException Implements abstract org. Doc from org. Fills and then strokes the path.
| |
| fillPath | back to summary |
|---|---|
| public void fillPath(int windingRule) throws IOException Implements abstract org. Doc from org. Fill the path.
| |
| getCurrentPoint | back to summary |
|---|---|
| public Point2D getCurrentPoint() throws IOException Implements abstract org. Doc from org. Returns the current point of the current path.
| |
| lineTo | back to summary |
|---|---|
| public void lineTo(float x, float y) throws IOException Implements abstract org. Doc from org. Draws a line from the current point to (x,y).
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException | |
| moveTo | back to summary |
|---|---|
| public void moveTo(float x, float y) throws IOException Implements abstract org. Doc from org. Starts a new path at (x,y).
| |
| run | back to summary |
|---|---|
| public void run() throws IOException Runs the engine on the current page.
| |
| shadingFill | back to summary |
|---|---|
| public void shadingFill(COSName shadingName) throws IOException Implements abstract org. Doc from org. Fill with Shading.
| |
| showGlyph | back to summary |
|---|---|
| protected void showGlyph(Matrix textRenderingMatrix, PDFont font, int code, Vector displacement) throws IOException Overrides org. Overridden from PDFStreamEngine.
| |
| showTextString | back to summary |
|---|---|
| public void showTextString(byte[] string) throws IOException Overrides org. Overridden from PDFStreamEngine.
| |
| showTextStrings | back to summary |
|---|---|
| public void showTextStrings(COSArray array) throws IOException Overrides org. Overridden from PDFStreamEngine.
| |
| strokePath | back to summary |
|---|---|
| public void strokePath() throws IOException Implements abstract org. Doc from org. Stroke the path.
| |