pdfautomaticfield-ag凯发旗舰厅



com.spire.pdf.automaticfields
class pdfautomaticfield

java.lang.object
  extended by com.spire.pdf.graphics.pdfgraphicswidget
      extended by com.spire.pdf.automaticfields.pdfautomaticfield
direct known subclasses:
pdfdynamicfield, pdfstaticfield

public abstract class pdfautomaticfield
extends pdfgraphicswidget

represents a fields which is calculated before the document saves.


constructor summary
protected pdfautomaticfield()
           
protected pdfautomaticfield(pdffontbase font)
           
protected pdfautomaticfield(pdffontbase font, pdfbrush brush)
           
protected pdfautomaticfield(pdffontbase font, com.spire.ms.system.drawing.rectanglef bounds)
           
 
method summary
 void draw(pdfcanvas graphics, double x, double y)
          draws an element on the graphics.
 java.awt.geom.rectangle2d getbounds()
          gets the bounds of the field.
 pdfbrush getbrush()
          gets the brush.
 pdffontbase getfont()
          gets the font.
 java.awt.geom.point2d getlocation()
          gets the location of the field.
 pdfpen getpen()
          gets the pen.
 java.awt.geom.dimension2d getsize()
          gets the size of the field.
 pdfstringformat getstringformat()
          gets the string format.
 void setbounds(java.awt.geom.rectangle2d value)
          sets the bounds of the field.
 void setbrush(pdfbrush value)
          sets the brush.
 void setfont(pdffontbase value)
          sets the font.
 void setlocation(java.awt.geom.point2d value)
          sets or sets the location of the field.
 void setpen(pdfpen value)
          sets the pen.
 void setsize(java.awt.geom.dimension2d value)
          sets the size of the field.
 void setstringformat(pdfstringformat value)
          sets the string format.
 
methods inherited from class com.spire.pdf.graphics.pdfgraphicswidget
draw, draw
 
constructor detail

pdfautomaticfield

protected pdfautomaticfield()

pdfautomaticfield

protected pdfautomaticfield(pdffontbase font)

pdfautomaticfield

protected pdfautomaticfield(pdffontbase font,
                            pdfbrush brush)

pdfautomaticfield

protected pdfautomaticfield(pdffontbase font,
                            com.spire.ms.system.drawing.rectanglef bounds)
method detail

getbounds

public java.awt.geom.rectangle2d getbounds()
gets the bounds of the field.

setbounds

public void setbounds(java.awt.geom.rectangle2d value)
sets the bounds of the field.

getsize

public java.awt.geom.dimension2d getsize()
gets the size of the field.

setsize

public void setsize(java.awt.geom.dimension2d value)
sets the size of the field.

getlocation

public java.awt.geom.point2d getlocation()
gets the location of the field.

setlocation

public void setlocation(java.awt.geom.point2d value)
sets or sets the location of the field.

getfont

public pdffontbase getfont()
gets the font.

setfont

public void setfont(pdffontbase value)
sets the font.

getbrush

public pdfbrush getbrush()
gets the brush.

setbrush

public void setbrush(pdfbrush value)
sets the brush.

getpen

public pdfpen getpen()
gets the pen.

setpen

public void setpen(pdfpen value)
sets the pen.

getstringformat

public pdfstringformat getstringformat()
gets the string format.

setstringformat

public void setstringformat(pdfstringformat value)
sets the string format.

draw

public void draw(pdfcanvas graphics,
                 double x,
                 double y)
draws an element on the graphics.
overrides:
draw in class pdfgraphicswidget
parameters:
graphics - graphics context where the element should be printed.
x - x co-ordinate of the element.
y - y co-ordinate of the element.


网站地图