|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Template
A Template describes each element to be realized onto a Page. It is used to provide users with a performatted Page that can be used multiple times to easily print maps without having to worry about repositioning and resizing each Box every time they create a new page.
Note: All Box Printers used to initialize the page must also have a net.refractions.udig.printing.ui.boxprinter extension defined for it.
Method Summary | |
---|---|
Template |
clone()
Templates must clone themselves and their contents properly. |
java.lang.String |
getName()
|
void |
init(Page page,
Map map,
int width,
int height)
This method initializes the template to the page according to its own interests. |
java.util.Iterator<Box> |
iterator()
Returns an iterator that iterates over each Box contained in the template. |
Method Detail |
---|
void init(Page page, Map map, int width, int height)
Note: All Box Printers used to initialize the page must also have a net.refractions.udig.printing.ui.boxprinter extension defined for it.
page
- the Page to initializemap
- the Map that this page is centered aroundwidth
- the desired width for the page, in pixelsheight
- the desired height for the page, in pixelsjava.util.Iterator<Box> iterator()
Box
java.lang.String getName()
Template clone()
Cloneable
,
Object.clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |