public class ImageTemplate extends AbstractTemplate {
public void init( Page page, Map map ) {
page.setName(map.getName());
Dimension a4 = new Dimension( 842, 595 ); // assume 72 pixels per inch
page.setSize( a4 );
Box labelBox = ModelFactory.eINSTANCE.createBox();
Box mapBox = ModelFactory.eINSTANCE.createBox();
Box imageBox = ModelFactory.eINSTANCE.createBox();
boxes.add(labelBox);
boxes.add(mapBox);
boxes.add(imageBox);
mapBox.setSize(new Dimension(400, 400));
imageBox.setSize(new Dimension(200, 162));
labelBox.setSize(new Dimension(150, 30));
imageBox.setLocation(new Point(43, 10));
mapBox.setLocation(new Point(143, 210));
labelBox.setLocation(new Point(100, 612));