|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
java.lang.objectcom.spire.pdf.pdfpagetemplateelement
public class pdfpagetemplateelement
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 |
---|
public pdfpagetemplateelement(java.awt.geom.rectangle2d bounds)
bounds
- bounds of the template.public pdfpagetemplateelement(java.awt.geom.rectangle2d bounds, pdfnewpage page)
bounds
- the bounds.page
- the page.public pdfpagetemplateelement(java.awt.geom.point2d location, java.awt.geom.dimension2d size)
location
- location of the template.size
- size of the template.public pdfpagetemplateelement(java.awt.geom.point2d location, java.awt.geom.dimension2d size, pdfnewpage page)
location
- the location.size
- the size.page
- the page.public pdfpagetemplateelement(java.awt.geom.dimension2d size)
size
- size of the template.public pdfpagetemplateelement(float width, float height)
width
- width of the template.height
- height of the template.public pdfpagetemplateelement(double width, double height)
public pdfpagetemplateelement(float width, float height, pdfnewpage page)
width
- width of the template.height
- height of the template.page
- the current page object.public pdfpagetemplateelement(double width, double height, pdfnewpage page)
public pdfpagetemplateelement(float x, float y, float width, float height)
x
- x co-ordinate of the template.y
- y co-ordinate of the template.width
- width of the template.height
- height of the template.public pdfpagetemplateelement(double x, double y, double width, double height)
public pdfpagetemplateelement(float x, float y, float width, float height, pdfnewpage page)
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.public pdfpagetemplateelement(double x, double y, double width, double height, pdfnewpage page)
method detail |
---|
public pdfdockstyle getdock()
public void setdock(pdfdockstyle value)
public pdfalignmentstyle getalignment()
public void setalignment(pdfalignmentstyle value)
public boolean getforeground()
public void setforeground(boolean value)
value
- public boolean getbackground()
public void setbackground(boolean value)
public java.awt.geom.point2d getlocation()
public void setlocation(java.awt.geom.point2d value)
public java.awt.geom.dimension2d getsize()
public void setsize(java.awt.geom.dimension2d value)
public float getheight()
public void setheight(float value)
value
- public java.awt.geom.rectangle2d getbounds()
public void setbounds(java.awt.geom.rectangle2d value)
public pdfcanvas getgraphics()
public pdftemplate gettemplate()
public templatetype gettype()
public void settype(templatetype value)
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |