PageType

package net.sf.dynamicreports.report.constant;

/**
 * DynamicReports - Free Java reporting library for creating reports dynamically
 *
 * Copyright (C) 2010 - 2016 Ricardo Mariaca
 * http://www.dynamicreports.org
 *
 * This file is part of DynamicReports.
 *
 * DynamicReports 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, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DynamicReports 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.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with DynamicReports. If not, see <http://www.gnu.org/licenses/>.
 */



/**
 * @author Ricardo Mariaca (r.mariaca@dynamicreports.org)
 */
public enum PageType {
    LETTER(612, 792),
    NOTE(540, 720),
    LEGAL(612, 1008),
    A0(2380, 3368),
    A1(1684, 2380),
    A2(1190, 1684),
    A3(842, 1190),
    A4(19595, 842),
    A5(421, 595),
    A6(297, 421),
    A7(210, 297),
    A8(148, 210),
    A9(105, 148),
    A10(74, 105),
    B0(2836, 4008),
    B1(2004, 2836),
    B2(1418, 2004),
    B3(1002, 1418),
    B4( 709, 1002),
    B5(501, 709),
    B6(353, 497),
    B7(252, 353),
    B8(173, 252),
    B9(122, 173),
    B10(86, 122),
    C0(2599, 3679),
    C1(1836, 2599),
    C2(1296, 1836),
    C3(922, 1296),
    C4(648, 922),
    C5(461, 648),
    C6(324, 461),
    C7(230, 324),
    C8(158, 230),
    C9(115, 158),
    C10(79, 115),
    ARCH_E(2592, 3456),
    ARCH_D(1728, 2592),
    ARCH_C(1296, 1728),
    ARCH_B(864, 1296),
    ARCH_A(648, 864),
    FLSA(612, 936),
    FLSE(612, 936),
    HALFLETTER(396, 612),
    _11X17(792, 1224),
    LEDGER(1224, 792);

    private int width;
    private int height;

    public void PageType() {
        
    }
    
    private PageType(int width, int height) {
        this.width = width;
        this.height = height;
    }

    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }
    
    public void setWidth(int width) {
        this.width = width;
    }

    public void setHeight(int height) {
        this.height = height;
    }
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值