Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
A4 |
|
| 1.0;1 |
1 | package org.jtheque.utils.print; | |
2 | ||
3 | import java.awt.print.Paper; | |
4 | ||
5 | /** | |
6 | * Represents an A4 Sheet. | |
7 | * | |
8 | * @author Baptiste Wicht | |
9 | */ | |
10 | final class A4 extends Paper { | |
11 | private static final double WIDTH = 25.4; | |
12 | private static final int HEIGHT = 72; | |
13 | private static final double MARGIN = 10.0; | |
14 | ||
15 | /** | |
16 | * Construct a new <code>A4</code>. | |
17 | */ | |
18 | A4() { | |
19 | 0 | super(); |
20 | ||
21 | 0 | double left = MARGIN * HEIGHT / WIDTH; |
22 | 0 | setImageableArea(left, 0.0, getWidth() - 2 * left, getHeight()); |
23 | 0 | } |
24 | } |