pdfpath-ag凯发旗舰厅



com.spire.pdf.graphics
class pdfpath

java.lang.object
  extended by com.spire.pdf.graphics.pdfgraphicswidget
      extended by com.spire.pdf.graphics.pdflayoutwidget
          extended by com.spire.pdf.graphics.pdfshapewidget
              extended by 
                  extended by com.spire.pdf.graphics.pdffillelement
                      extended by com.spire.pdf.graphics.pdfpath

public class pdfpath
extends pdffillelement

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

pdfpath

public pdfpath()
initializes a new instance of the class.

pdfpath

public pdfpath(java.awt.geom.point2d[] points,
               java.lang.byte[] pathtypes)
initializes a new instance of the class.
parameters:
points - the points.
pathtypes - the path types.

pdfpath

public pdfpath(pdfpen pen)
initializes a new instance of the class.
parameters:
pen - the pen.

pdfpath

public pdfpath(pdfbrush brush)
initializes a new instance of the class.
parameters:
brush - the brush.

pdfpath

public pdfpath(pdfbrush brush,
               pdffillmode fillmode)
initializes a new instance of the class.
parameters:
brush - the brush.
fillmode - the fill mode.

pdfpath

public pdfpath(pdfpen pen,
               java.awt.geom.point2d[] points,
               java.lang.byte[] pathtypes)
initializes a new instance of the class.
parameters:
pen - the pen.
points - the points.
pathtypes - the path types.

pdfpath

public pdfpath(pdfbrush brush,
               pdffillmode fillmode,
               java.awt.geom.point2d[] points,
               java.lang.byte[] pathtypes)
initializes a new instance of the class.
parameters:
brush - the brush.
fillmode - the fill mode.
points - the points.
pathtypes - the path types.

pdfpath

public pdfpath(pdfpen pen,
               pdfbrush brush,
               pdffillmode fillmode)
initializes a new instance of the class.
parameters:
pen - the pen.
brush - the brush.
fillmode - the fill mode.
method detail

setfillmode

public void setfillmode(pdffillmode value)
sets the fill mode.

addarc

public void addarc(java.awt.geom.rectangle2d rectangle,
                   float startangle,
                   float sweepangle)
adds an arc.
parameters:
rectangle - the boundaries of the arc.
startangle - the start angle.
sweepangle - the sweep angle.

addarc

public void addarc(double x,
                   double y,
                   double width,
                   double height,
                   double startangle,
                   double sweepangle)
adds an arc.
parameters:
x - the x.
y - the y.
width - the width.
height - the height.
startangle - the start angle.
sweepangle - the sweep angle.

addbezier

public 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.
parameters:
startpoint - the start point.
firstcontrolpoint - the first control point.
secondcontrolpoint - the second control point.
endpoint - the end point.

addellipse

public void addellipse(java.awt.geom.rectangle2d rectangle)
adds an ellipse.
parameters:
rectangle - the boundaries of the ellipse.

addline

public void addline(java.awt.geom.point2d point1,
                    java.awt.geom.point2d point2)
adds a line.
parameters:
point1 - the point1.
point2 - the point2.

addline

public void addline(double x1,
                    double y1,
                    double x2,
                    double y2)
adds a line.
parameters:
x1 - the x1.
y1 - the y1.
x2 - the x2.
y2 - the y2.

addpie

public void addpie(java.awt.geom.rectangle2d rectangle,
                   float startangle,
                   float sweepangle)
appends the pie to this path.
parameters:
rectangle - the rectangle.
startangle - the start angle.
sweepangle - the sweep angle.

addpolygon

public void addpolygon(java.awt.geom.point2d[] points)
append the closed polygon to this path.
parameters:
points - the points of the polygon.

addrectangle

public void addrectangle(java.awt.geom.rectangle2d rectangle)
appends the rectangle to this path.
parameters:
rectangle - the rectangle.


网站地图