|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.pdf.graphics.PdfGraphicsWidget
com.spire.pdf.graphics.PdfLayoutWidget
com.spire.pdf.graphics.PdfShapeWidget
com.spire.pdf.graphics.PdfDrawWidget
com.spire.pdf.graphics.PdfFillElement
com.spire.pdf.graphics.PdfPath
public class PdfPath
Implements graphics path, which is a sequence of primitive graphics elements.
Field Summary |
---|
Fields inherited from class com.spire.pdf.graphics.PdfLayoutWidget |
---|
beginPageLayout |
Constructor Summary | |
---|---|
PdfPath()
Initializes a new instance of the class. |
|
PdfPath(PdfBrush brush)
Initializes a new instance of the class. |
|
PdfPath(PdfBrush brush,
PdfFillMode fillMode)
Initializes a new instance of the class. |
|
PdfPath(PdfBrush brush,
PdfFillMode fillMode,
java.awt.geom.Point2D[] points,
java.lang.Byte[] pathTypes)
Initializes a new instance of the class. |
|
PdfPath(PdfPen pen)
Initializes a new instance of the class. |
|
PdfPath(PdfPen pen,
PdfBrush brush,
PdfFillMode fillMode)
Initializes a new instance of the class. |
|
PdfPath(PdfPen pen,
java.awt.geom.Point2D[] points,
java.lang.Byte[] pathTypes)
Initializes a new instance of the class. |
|
PdfPath(java.awt.geom.Point2D[] points,
java.lang.Byte[] pathTypes)
Initializes a new instance of the class. |
Method Summary | |
---|---|
void |
addArc(double x,
double y,
double width,
double height,
double startAngle,
double sweepAngle)
Adds an arc. |
void |
addArc(java.awt.geom.Rectangle2D rectangle,
float startAngle,
float sweepAngle)
Adds an arc. |
void |
addBezier(java.awt.geom.Point2D startPoint,
java.awt.geom.Point2D firstControlPoint,
java.awt.geom.Point2D secondControlPoint,
java.awt.geom.Point2D endPoint)
Adds a bezier curve. |
void |
addEllipse(java.awt.geom.Rectangle2D rectangle)
Adds an ellipse. |
void |
addLine(double x1,
double y1,
double x2,
double y2)
Adds a line. |
void |
addLine(java.awt.geom.Point2D point1,
java.awt.geom.Point2D point2)
Adds a line. |
void |
addPie(java.awt.geom.Rectangle2D rectangle,
float startAngle,
float sweepAngle)
Appends the pie to this path. |
void |
addPolygon(java.awt.geom.Point2D[] points)
Append the closed polygon to this path. |
void |
addRectangle(java.awt.geom.Rectangle2D rectangle)
Appends the rectangle to this path. |
void |
setFillMode(PdfFillMode value)
Sets the fill mode. |
Methods inherited from class com.spire.pdf.graphics.PdfShapeWidget |
---|
getBounds |
Methods inherited from class com.spire.pdf.graphics.PdfLayoutWidget |
---|
draw, draw, draw, draw, draw, draw |
Methods inherited from class com.spire.pdf.graphics.PdfGraphicsWidget |
---|
draw, draw, draw |
Constructor Detail |
---|
public PdfPath()
public PdfPath(java.awt.geom.Point2D[] points, java.lang.Byte[] pathTypes)
points
- The points.pathTypes
- The path types.public PdfPath(PdfPen pen)
pen
- The pen.public PdfPath(PdfBrush brush)
brush
- The brush.public PdfPath(PdfBrush brush, PdfFillMode fillMode)
brush
- The brush.fillMode
- The fill mode.public PdfPath(PdfPen pen, java.awt.geom.Point2D[] points, java.lang.Byte[] pathTypes)
pen
- The pen.points
- The points.pathTypes
- The path types.public PdfPath(PdfBrush brush, PdfFillMode fillMode, java.awt.geom.Point2D[] points, java.lang.Byte[] pathTypes)
brush
- The brush.fillMode
- The fill mode.points
- The points.pathTypes
- The path types.public PdfPath(PdfPen pen, PdfBrush brush, PdfFillMode fillMode)
pen
- The pen.brush
- The brush.fillMode
- The fill mode.Method Detail |
---|
public void setFillMode(PdfFillMode value)
public void addArc(java.awt.geom.Rectangle2D rectangle, float startAngle, float sweepAngle)
rectangle
- The boundaries of the arc.startAngle
- The start angle.sweepAngle
- The sweep angle.public void addArc(double x, double y, double width, double height, double startAngle, double sweepAngle)
x
- The x.y
- The y.width
- The width.height
- The height.startAngle
- The start angle.sweepAngle
- The sweep angle.public void addBezier(java.awt.geom.Point2D startPoint, java.awt.geom.Point2D firstControlPoint, java.awt.geom.Point2D secondControlPoint, java.awt.geom.Point2D endPoint)
startPoint
- The start point.firstControlPoint
- The first control point.secondControlPoint
- The second control point.endPoint
- The end point.public void addEllipse(java.awt.geom.Rectangle2D rectangle)
rectangle
- The boundaries of the ellipse.public void addLine(java.awt.geom.Point2D point1, java.awt.geom.Point2D point2)
point1
- The point1.point2
- The point2.public void addLine(double x1, double y1, double x2, double y2)
x1
- The x1.y1
- The y1.x2
- The x2.y2
- The y2.public void addPie(java.awt.geom.Rectangle2D rectangle, float startAngle, float sweepAngle)
rectangle
- The rectangle.startAngle
- The start angle.sweepAngle
- The sweep angle.public void addPolygon(java.awt.geom.Point2D[] points)
points
- The points of the polygon.public void addRectangle(java.awt.geom.Rectangle2D rectangle)
rectangle
- The rectangle.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |