net.refractions.udig.printing.ui.internal.template.A3LandscapeTemplate.java Source code

Java tutorial

Introduction

Here is the source code for net.refractions.udig.printing.ui.internal.template.A3LandscapeTemplate.java

Source

/*
 *    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.
 *
 */
package net.refractions.udig.printing.ui.internal.template;

import com.lowagie.text.PageSize;
import com.lowagie.text.Rectangle;

/**
 * Implementation of an A3 size Template in landscape mode. 
 * 
 * @author Andrea Antonello (www.hydrologis.com)
 */
public class A3LandscapeTemplate extends AbstractPrinterPageTemplate {

    protected Rectangle getPaperSize() {
        Rectangle a3 = PageSize.A3;
        Rectangle a3Landscape = new Rectangle(0f, 0f, a3.getHeight(), a3.getWidth());
        return a3Landscape;
    }

    public String getAbbreviation() {
        return "A3L";
    }

}