pdfpagetemplateelement-ag凯发旗舰厅



com.spire.pdf
class pdfpagetemplateelement

java.lang.object
  extended by com.spire.pdf.pdfpagetemplateelement

public class pdfpagetemplateelement
extends java.lang.object

describes a page template object that can be used as header/footer, watermark or stamp.


constructor summary
pdfpagetemplateelement(java.awt.geom.dimension2d size)
          creates new page template object.
pdfpagetemplateelement(double width, double height)
           
pdfpagetemplateelement(double x, double y, double width, double height)
           
pdfpagetemplateelement(double x, double y, double width, double height, pdfnewpage page)
           
pdfpagetemplateelement(double width, double height, pdfnewpage page)
           
pdfpagetemplateelement(float width, float height)
          creates a new page template.
pdfpagetemplateelement(float x, float y, float width, float height)
          creates a new page template.
pdfpagetemplateelement(float x, float y, float width, float height, pdfnewpage page)
          creates a new page template.
pdfpagetemplateelement(float width, float height, pdfnewpage page)
          creates a new page template.
pdfpagetemplateelement(java.awt.geom.point2d location, java.awt.geom.dimension2d size)
          creates a new page template.
pdfpagetemplateelement(java.awt.geom.point2d location, java.awt.geom.dimension2d size, pdfnewpage page)
          initializes a new instance of the class.
pdfpagetemplateelement(java.awt.geom.rectangle2d bounds)
          creates a new page template.
pdfpagetemplateelement(java.awt.geom.rectangle2d bounds, pdfnewpage page)
          initializes a new instance of the class.
 
method summary
 pdfalignmentstyle getalignment()
          gets alignment of the page template element.
 boolean getbackground()
          gets the background to indicate whether the page template is located behind of the page layers or in front of it.
 java.awt.geom.rectangle2d getbounds()
          gets the bounds of the page template element.
 pdfdockstyle getdock()
          gets the dock style of the page template element.
 boolean getforeground()
          gets the foreground to indicate whether the page template is located in front of the page layers or behind of it.
 pdfcanvas getgraphics()
          gets graphics context of the page template element.
 float getheight()
          gets the height of the page template element.
 java.awt.geom.point2d getlocation()
          gets location of the page template element.
 java.awt.geom.dimension2d getsize()
          gets the size of the page template element.
 pdftemplate gettemplate()
           
 templatetype gettype()
          gets the type of the usage of this page template.
 void setalignment(pdfalignmentstyle value)
          sets alignment of the page template element.
 void setbackground(boolean value)
          sets the background to indicate whether the page template is located behind of the page layers or in front of it.
 void setbounds(java.awt.geom.rectangle2d value)
           
 void setdock(pdfdockstyle value)
          sets the dock style of the page template element.
 void setforeground(boolean value)
          sets the foreground to indicate whether the page template is located in front of the page layers or behind of it.
 void setheight(float value)
          sets the height of the page template element.
 void setlocation(java.awt.geom.point2d value)
           
 void setsize(java.awt.geom.dimension2d value)
          sets the size of the page template element.
 void settype(templatetype value)
          sets the type of the usage of this page template.
 
constructor detail

pdfpagetemplateelement

public pdfpagetemplateelement(java.awt.geom.rectangle2d bounds)
creates a new page template.
parameters:
bounds - bounds of the template.

pdfpagetemplateelement

public pdfpagetemplateelement(java.awt.geom.rectangle2d bounds,
                              pdfnewpage page)
initializes a new instance of the class.
parameters:
bounds - the bounds.
page - the page.

pdfpagetemplateelement

public pdfpagetemplateelement(java.awt.geom.point2d location,
                              java.awt.geom.dimension2d size)
creates a new page template.
parameters:
location - location of the template.
size - size of the template.

pdfpagetemplateelement

public pdfpagetemplateelement(java.awt.geom.point2d location,
                              java.awt.geom.dimension2d size,
                              pdfnewpage page)
initializes a new instance of the class.
parameters:
location - the location.
size - the size.
page - the page.

pdfpagetemplateelement

public pdfpagetemplateelement(java.awt.geom.dimension2d size)
creates new page template object.
parameters:
size - size of the template.

pdfpagetemplateelement

public pdfpagetemplateelement(float width,
                              float height)
creates a new page template.
parameters:
width - width of the template.
height - height of the template.

pdfpagetemplateelement

public pdfpagetemplateelement(double width,
                              double height)

pdfpagetemplateelement

public pdfpagetemplateelement(float width,
                              float height,
                              pdfnewpage page)
creates a new page template.
parameters:
width - width of the template.
height - height of the template.
page - the current page object.

pdfpagetemplateelement

public pdfpagetemplateelement(double width,
                              double height,
                              pdfnewpage page)

pdfpagetemplateelement

public pdfpagetemplateelement(float x,
                              float y,
                              float width,
                              float height)
creates a new page template.
parameters:
x - x co-ordinate of the template.
y - y co-ordinate of the template.
width - width of the template.
height - height of the template.

pdfpagetemplateelement

public pdfpagetemplateelement(double x,
                              double y,
                              double width,
                              double height)

pdfpagetemplateelement

public pdfpagetemplateelement(float x,
                              float y,
                              float width,
                              float height,
                              pdfnewpage page)
creates a new page template.
parameters:
x - x co-ordinate of the template.
y - y co-ordinate of the template.
width - width of the template.
height - height of the template.
page - the current page object.

pdfpagetemplateelement

public pdfpagetemplateelement(double x,
                              double y,
                              double width,
                              double height,
                              pdfnewpage page)
method detail

getdock

public pdfdockstyle getdock()
gets the dock style of the page template element.

setdock

public void setdock(pdfdockstyle value)
sets the dock style of the page template element.

getalignment

public pdfalignmentstyle getalignment()
gets alignment of the page template element.

setalignment

public void setalignment(pdfalignmentstyle value)
sets alignment of the page template element.

getforeground

public boolean getforeground()
gets the foreground to indicate whether the page template is located in front of the page layers or behind of it.

setforeground

public void setforeground(boolean value)
sets the foreground to indicate whether the page template is located in front of the page layers or behind of it.
parameters:
value -

getbackground

public boolean getbackground()
gets the background to indicate whether the page template is located behind of the page layers or in front of it.

setbackground

public void setbackground(boolean value)
sets the background to indicate whether the page template is located behind of the page layers or in front of it.

getlocation

public java.awt.geom.point2d getlocation()
gets location of the page template element.

setlocation

public void setlocation(java.awt.geom.point2d value)

getsize

public java.awt.geom.dimension2d getsize()
gets the size of the page template element.

setsize

public void setsize(java.awt.geom.dimension2d value)
sets the size of the page template element.

getheight

public float getheight()
gets the height of the page template element.

setheight

public void setheight(float value)
sets the height of the page template element.
parameters:
value -

getbounds

public java.awt.geom.rectangle2d getbounds()
gets the bounds of the page template element.

setbounds

public void setbounds(java.awt.geom.rectangle2d value)

getgraphics

public pdfcanvas getgraphics()
gets graphics context of the page template element.

gettemplate

public pdftemplate gettemplate()

gettype

public templatetype gettype()
gets the type of the usage of this page template.

settype

public void settype(templatetype value)
sets the type of the usage of this page template.


网站地图