| net.refractions.udig.printing.ui.Template
All known Subclasses: net.refractions.udig.printing.ui.internal.AbstractTemplate,
Template | public interface Template extends Cloneable(Code) | | 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.
author: Richard Gould |
Method Summary | |
public Template | clone() Templates must clone themselves and their contents properly. | public String | getName() | public void | init(Page page, Map map, int width, int height) This method initializes the template to the page according to its own
interests. | public Iterator<Box> | iterator() Returns an iterator that iterates over each Box contained in the
template. |
getName | public String getName()(Code) | | A human-readable String that identifies this template |
init | public void init(Page page, Map map, int width, int height)(Code) | | This method initializes the template to the page according to its own
interests. Some interests may include TODO fill me in ...
Note: All Box Printers used to initialize the page must also
have a net.refractions.udig.printing.ui.boxprinter extension defined for
it.
Parameters: page - the Page to initialize Parameters: map - the Map that this page is centered around Parameters: width - the desired width for the page, in pixels Parameters: height - the desired height for the page, in pixels |
iterator | public Iterator<Box> iterator()(Code) | | Returns an iterator that iterates over each Box contained in the
template.
This is used by the framework to access a Template's Boxes.
an iterator where each element is of type Box See Also: Box |
|
|