Template Factories
Identifier:
net.refractions.udig.printing.templateFactories
Since:
0.3
Description:
A Template is used to layout elements on a Page that will be use for printing.
See net.refractions.udig.printing.ui.internal.BasicTemplate for an example of how to create a template.
Configuration Markup:
<!ELEMENT extension ((templateFactory | template)*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
>
Defines a page template. A Template creates a bunch of boxes and and sets the box printer for each box. It also sets the size and location of each box. To create a box use:
Box box = ModelFactory.eINSTANCE.createBox();
An important point to note is that each box printer must have a boxprinter extension definition OR IT WON'T BE SAVED!!!!
The templateFactory element is deprecated
<!ELEMENT templateFactory EMPTY>
<!ATTLIST templateFactory
class CDATA #REQUIRED
id CDATA #REQUIRED
>
Defines a page template. A Template creates a bunch of boxes and and sets the box printer for each box. It also sets the size and location of each box. To create a box use:
Box box = ModelFactory.eINSTANCE.createBox();
An important point to note is that each box printer must have a boxprinter extension definition OR IT WON'T BE SAVED!!!!
- class - The class that will produce a template for us.
Must implement net.refractions.udig.printing.TemplateFactory
- id -
<!ELEMENT template EMPTY>
<!ATTLIST template
name CDATA #REQUIRED
id CDATA #REQUIRED
class CDATA #REQUIRED
>
Defines a page template. A Template creates a bunch of boxes and and sets the box printer for each box. It also sets the size and location of each box. To create a box use:
Box box = ModelFactory.eINSTANCE.createBox();
An important point to note is that each box printer must have a boxprinter extension definition OR IT WON'T BE SAVED!!!!
- name - Name of the Template (as displayed to the user)
- id -
- class - The net.refractions.udig.printing.Template used to create a Page
Examples:
<extension point="net.refractions.udig.printing.templates"
id="net.refractions.udig.examples.template">
<template name="%Basic%" id="basic"
class="net.refractions.udig.printing.internal.BasicTemplate"/>
</extension>
API Information:
See the net.refractions.udig.printing package.
Supplied Implementation:
See the net.refractions.udig.printing package.
uDig - User Friendly Desktop Internet GIS client