|
fop 2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.render.pdf.PDFGraphicsPainter
public class PDFGraphicsPainter
PDF-specific implementation of the GraphicsPainter.
| Constructor Summary | |
|---|---|
PDFGraphicsPainter(PDFContentGenerator generator)
|
|
| Method Summary | |
|---|---|
void |
arcTo(double startAngle,
double endAngle,
int cx,
int cy,
int width,
int height)
Draws an arc on the ellipse centered at (cx, cy) with width width and height height from start angle startAngle (with respect to the x-axis counter-clockwise) to the end angle endAngle. |
void |
clip()
Reduces the current clipping region to the current path. |
void |
closePath()
Closes the current path. |
void |
cubicBezierTo(int p1x,
int p1y,
int p2x,
int p2y,
int p3x,
int p3y)
Draw a cubic bezier from current position to (p3x, p3y) using the control points (p1x, p1y) and (p2x, p2y) |
void |
drawBorderLine(int x1,
int y1,
int x2,
int y2,
boolean horz,
boolean startOrBefore,
int style,
java.awt.Color col)
Draws a border line. |
void |
drawLine(java.awt.Point start,
java.awt.Point end,
int width,
java.awt.Color color,
RuleStyle style)
Draws a line/rule. |
void |
lineTo(int x,
int y)
Draws a line from the current cursor position to the given coordinates. |
void |
moveTo(int x,
int y)
Moves the cursor to the given coordinate. |
void |
restoreGraphicsState()
Restore the last graphics state from the stack. |
void |
rotateCoordinates(double angle)
Rotate the coordinate frame |
void |
saveGraphicsState()
Save the graphics state on the stack. |
void |
scaleCoordinates(float xScale,
float yScale)
Scale the coordinate frame |
void |
translateCoordinates(int xTranslate,
int yTranslate)
Translate the coordinate frame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDFGraphicsPainter(PDFContentGenerator generator)
| Method Detail |
|---|
public void drawBorderLine(int x1,
int y1,
int x2,
int y2,
boolean horz,
boolean startOrBefore,
int style,
java.awt.Color col)
drawBorderLine in interface GraphicsPainterx1 - X coordinate of the upper left corner
of the line's bounding rectangle (in millipoints)y1 - start Y coordinate of the upper left corner
of the line's bounding rectangle (in millipoints)x2 - end X coordinate of the lower right corner
of the line's bounding rectangle (in millipoints)y2 - end y coordinate of the lower right corner
of the line's bounding rectangle (in millipoints)horz - true if it is a horizontal linestartOrBefore - true if the line is the start or end edge of a border boxstyle - the border stylecol - the border color
public void drawLine(java.awt.Point start,
java.awt.Point end,
int width,
java.awt.Color color,
RuleStyle style)
drawLine in interface GraphicsPainterstart - start point (coordinates in millipoints)end - end point (coordinates in millipoints)width - width of the linecolor - the line colorstyle - the rule style
public void moveTo(int x,
int y)
moveTo in interface GraphicsPainterx - the X coordinate (in millipoints)y - the Y coordinate (in millipoints)
public void lineTo(int x,
int y)
lineTo in interface GraphicsPainterx - the X coordinate (in millipoints)y - the Y coordinate (in millipoints)
public void arcTo(double startAngle,
double endAngle,
int cx,
int cy,
int width,
int height)
throws java.io.IOException
arcTo in interface GraphicsPainterstartAngle - the start angleendAngle - the end anglecx - the x coordinate of the ellipse centercy - the y coordinate of the ellipse centerwidth - the extent of the ellipse in the x directionheight - the extent of the ellipse in the y direction
java.io.IOException - if an I/O error occurspublic void closePath()
closePath in interface GraphicsPainterpublic void clip()
clip in interface GraphicsPainterpublic void saveGraphicsState()
saveGraphicsState in interface GraphicsPainterpublic void restoreGraphicsState()
restoreGraphicsState in interface GraphicsPainter
public void rotateCoordinates(double angle)
throws java.io.IOException
rotateCoordinates in interface GraphicsPainterangle - angle in radians to rotate the coordinate frame
java.io.IOException - if an I/O error occurs
public void translateCoordinates(int xTranslate,
int yTranslate)
throws java.io.IOException
translateCoordinates in interface GraphicsPainterxTranslate - translation in the x directionyTranslate - translation in the y direction
java.io.IOException - if an I/O error occurs
public void scaleCoordinates(float xScale,
float yScale)
throws java.io.IOException
scaleCoordinates in interface GraphicsPainterxScale - scale factor in the x directionyScale - scale factor in the y direction
java.io.IOException - if an I/O error occurs
public void cubicBezierTo(int p1x,
int p1y,
int p2x,
int p2y,
int p3x,
int p3y)
cubicBezierTo in interface BezierCurvePainterp1x - x coordinate of the first control pointp1y - y coordinate of the first control pointp2x - x coordinate of the second control pointp2y - y coordinate of the second control pointp3x - x coordinate of the end pointp3y - y coordinate of the end point
|
fop 2.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||