public class PaperFormat
extends java.lang.Object
PaperFormat.getPaperFormats()
method.Modifier and Type | Field and Description |
---|---|
static PaperFormat |
A0
Specifies the ISO A0 size, 841 mm by 1189 mm.
|
static PaperFormat |
A1
Specifies the ISO A1 size, 594 mm by 841 mm.
|
static PaperFormat |
A10
Specifies the ISO A10 size, 26 mm by 37 mm.
|
static PaperFormat |
A2
Specifies the ISO A2 size, 420 mm by 594 mm.
|
static PaperFormat |
A3
Specifies the ISO A3 size, 297 mm by 420 mm.
|
static PaperFormat |
A4
Specifies the ISO A4 size, 210 mm by 297 mm.
|
static PaperFormat |
A5
Specifies the ISO A5 size, 148 mm by 210 mm.
|
static PaperFormat |
A6
Specifies the ISO A6 size, 105 mm by 148 mm.
|
static PaperFormat |
A7
Specifies the ISO A7 size, 74 mm by 105 mm.
|
static PaperFormat |
A8
Specifies the ISO A8 size, 52 mm by 74 mm.
|
static PaperFormat |
A9
Specifies the ISO A9 size, 37 mm by 52 mm.
|
static PaperFormat |
ANSI_C
Specifies the ANSI C size, 432 mm by 559 mm.
|
static PaperFormat |
ANSI_D
Specifies the ANSI D size, 559 mm by 864 mm.
|
static PaperFormat |
ANSI_E
Specifies the ANSI E size, 864 mm by 1118 mm.
|
static PaperFormat |
archA
Specifies the Architectural A size, 9 x 12 inches.
|
static PaperFormat |
archB
Specifies the Architectural B size, 12 x 18 inches.
|
static PaperFormat |
archC
Specifies the Architectural C size, 18 x 24 inches.
|
static PaperFormat |
archD
Specifies the Architectural D size, 24 x 36 inches.
|
static PaperFormat |
archE
Specifies the Architectural E size, 36 x 48 inches.
|
static PaperFormat |
archE1
Specifies the Architectural E1 size, 30 x 42 inches.
|
static PaperFormat |
archE2
Specifies the Architectural E2 size, 26 x 38 inches.
|
static PaperFormat |
archE3
Specifies the Architectural E3 size, 27 x 39 inches.
|
static PaperFormat |
B0
Specifies the ISO B0 size, 1000 mm by 1414 mm.
|
static PaperFormat |
B1
Specifies the ISO B1 size, 707 mm by 1000 mm.
|
static PaperFormat |
B10
Specifies the ISO B10 size, 31 mm by 44 mm.
|
static PaperFormat |
B2
Specifies the ISO B2 size, 500 mm by 707 mm.
|
static PaperFormat |
B3
Specifies the ISO B3 size, 353 mm by 500 mm.
|
static PaperFormat |
B4
Specifies the ISO B4 size, 250 mm by 353 mm.
|
static PaperFormat |
B5
Specifies the ISO B5 size, 176 mm by 250 mm.
|
static PaperFormat |
B6
Specifies the ISO B6 size, 125 mm by 176 mm.
|
static PaperFormat |
B7
Specifies the ISO B7 size, 88 mm by 125 mm.
|
static PaperFormat |
B8
Specifies the ISO B8 size, 62 mm by 88 mm.
|
static PaperFormat |
B9
Specifies the ISO B9 size, 44 mm by 62 mm.
|
static PaperFormat |
C0
Specifies the ISO C0 size, 917 mm by 1297 mm.
|
static PaperFormat |
C1
Specifies the ISO C1 size, 648 mm by 917 mm.
|
static PaperFormat |
C2
Specifies the ISO C2 size, 458 mm by 648 mm.
|
static PaperFormat |
C3
Specifies the ISO C3 size, 324 mm by 458 mm.
|
static PaperFormat |
C4
Specifies the ISO C4 size, 229 mm by 324 mm.
|
static PaperFormat |
C5
Specifies the ISO C5 size, 162 mm by 229 mm.
|
static PaperFormat |
C6
Specifies the ISO C6 size, 114 mm by 162 mm.
|
static double |
CM_TO_INCH
Value of the ratio used to convert centimeters in inches
|
static double |
INCH_TO_CM
Value of the ratio used to convert inches to centimeters
|
static PaperFormat |
LEGAL
Specifies the North American legal size, 8.5 inches by 14 inches.
|
static PaperFormat |
LETTER
Specifies the North American letter size, 8.5 inches by 11 inches.
|
static int |
METRIC_UNIT
Constant which defines the metric system.
|
static PaperFormat |
NA_11X17
Specifies the North American 11 inch by 17 inch paper.
|
static PaperFormat |
NA_5X7
Specifies the North American 5 inch by 7 inch paper.
|
static PaperFormat |
NA_8X10
Specifies the North American 8 inch by 10 inch paper.
|
static int |
US_UNIT
Constant which defines the imperial measurement system.
|
Constructor and Description |
---|
PaperFormat(int unit,
double width,
double height,
java.lang.String name)
Creates a new paper format.
|
Modifier and Type | Method and Description |
---|---|
static void |
add(PaperFormat format) |
static void |
clear() |
static PaperFormat |
getPaperFormat(java.lang.String name) |
static java.util.Enumeration |
getPaperFormats() |
int |
getSystemUnit() |
int |
hashCode() |
static void |
remove(PaperFormat format) |
java.lang.String |
toString() |
public static final double CM_TO_INCH
public static final double INCH_TO_CM
public static final int METRIC_UNIT
public static final int US_UNIT
public static final PaperFormat LETTER
public static final PaperFormat LEGAL
public static final PaperFormat ANSI_C
public static final PaperFormat ANSI_D
public static final PaperFormat ANSI_E
public static final PaperFormat NA_5X7
public static final PaperFormat NA_8X10
public static final PaperFormat NA_11X17
public static final PaperFormat A0
public static final PaperFormat A1
public static final PaperFormat A2
public static final PaperFormat A3
public static final PaperFormat A4
public static final PaperFormat A5
public static final PaperFormat A6
public static final PaperFormat A7
public static final PaperFormat A8
public static final PaperFormat A9
public static final PaperFormat A10
public static final PaperFormat B0
public static final PaperFormat B1
public static final PaperFormat B2
public static final PaperFormat B3
public static final PaperFormat B4
public static final PaperFormat B5
public static final PaperFormat B6
public static final PaperFormat B7
public static final PaperFormat B8
public static final PaperFormat B9
public static final PaperFormat B10
public static final PaperFormat C0
public static final PaperFormat C1
public static final PaperFormat C2
public static final PaperFormat C3
public static final PaperFormat C4
public static final PaperFormat C5
public static final PaperFormat C6
public static final PaperFormat archA
public static final PaperFormat archB
public static final PaperFormat archC
public static final PaperFormat archD
public static final PaperFormat archE
public static final PaperFormat archE1
public static final PaperFormat archE2
public static final PaperFormat archE3
public PaperFormat(int unit, double width, double height, java.lang.String name)
add()
method:unit
- the unit size of the format (METRIC_UNIT
or US_UNIT
)width
- the width of the paperheight
- the height of the papername
- the name of the format (should be unique)public static void clear()
public static void add(PaperFormat format)
public static void remove(PaperFormat format)
public int getSystemUnit()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static java.util.Enumeration getPaperFormats()
public static PaperFormat getPaperFormat(java.lang.String name)