Spec-Zone .ru
спецификации, руководства, описания, API
|
public final class Paper extends java.lang.Object
The paper sizes which are enumerated for a printer is the authoritative source of Paper sizes that may be selected for printing on that printer.
However for convenience, this class pre-defines some of the most
common paper sizes so that an application may easily set up default
parameters from code, eg by referring to StandardPaper.A4
The application is not limited to these sizes as it can create a Paper of any size, but in either case, it is up to the application to verify at run time that a particular size is supported by a device.
Modifier and Type | Class and Description |
---|---|
static class |
Paper.Units
An enumeration used to specify the Units used for Paper measurement
|
Modifier and Type | Field and Description |
---|---|
static Paper |
A0
Specifies the ISO A0 size, 841 mm by 1189 mm.
|
static Paper |
A1
Specifies the ISO A1 size, 594 mm by 841 mm.
|
static Paper |
A2
Specifies the ISO A2 size, 420 mm by 594 mm.
|
static Paper |
A3
Specifies the ISO A3 size, 297 mm by 420 mm.
|
static Paper |
A4
Specifies the ISO A4 size, 210 mm by 297 mm.
|
static Paper |
A5
Specifies the ISO A5 size, 148 mm by 210 mm.
|
static Paper |
A6
Specifies the ISO A6 size, 105 mm by 148 mm.
|
static Paper |
C
Specifies the engineering C size, 17 inch by 22 inch.
|
static Paper |
DESIGNATED_LONG
Specifies the ISO Designated Long size, 110 mm by 220 mm.
|
static Paper |
EXECUTIVE
Specifies the executive size, 7.25 inches by 10.5 inches.
|
static Paper |
JAPANESE_POSTCARD
Specifies the Japanese postcard size, 100 mm by 148 mm.
|
static Paper |
JIS_B4
Specifies the JIS B4 size, 257 mm by 364 mm.
|
static Paper |
JIS_B5
Specifies the JIS B5 size, 182 mm by 257 mm.
|
static Paper |
JIS_B6
Specifies the JIS B6 size, 128 mm by 182 mm.
|
static Paper |
LEGAL
Specifies the North American legal size, 8.5 inches by 14 inches.
|
static Paper |
MONARCH_ENVELOPE
Specifies the Monarch envelope size, 3.87 inch by 7.5 inch.
|
static Paper |
NA_8X10
Specifies the North American 8 inch by 10 inch paper.
|
static Paper |
NA_LETTER
Specifies the North American letter size, 8.5 inches by 11 inches
|
static Paper |
NA_NUMBER_10_ENVELOPE
Specifies the North American Number 10 business envelope size,
4.125 inches by 9.5 inches.
|
static Paper |
TABLOID
Specifies the tabloid size, 11 inches by 17 inches.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
double |
getHeight()
Get the height of the paper in points (1/72 inch)
|
java.lang.String |
getName()
Get the paper name.
|
double |
getWidth()
Get the width of the paper in points (1/72 inch)
|
int |
hashCode() |
java.lang.String |
toString() |
public static final Paper DESIGNATED_LONG
public static final Paper NA_LETTER
public static final Paper LEGAL
public static final Paper EXECUTIVE
public static final Paper MONARCH_ENVELOPE
public static final Paper NA_NUMBER_10_ENVELOPE
public static final Paper JAPANESE_POSTCARD
public final java.lang.String getName()
public final double getWidth()
public final double getHeight()
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to