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!!!!



<!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!!!!



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 http://udig.refractions.net (C) 2004, Refractions Research Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; version 2.1 of the License. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.