javax.print.attribute.standard

Class MediaSizeName

Implemented Interfaces:
Attribute, Cloneable, DocAttribute, PrintJobAttribute, PrintRequestAttribute, Serializable

public class MediaSizeName
extends Media

MediaSizeName is a subclass of the Media printing attribute and provides selection of media to be used by the means of defined size names. The class pre-defines commonly available media sizes. This media type enumeration may be used in alternative to MediaName/MediaTray.

IPP Compatibility: MediaSizeName is not an IPP 1.1 attribute on its own. It provides parts of the media attribute type values.

See Also:
Serialized Form

Field Summary

static MediaSizeName
A
The engineering ANSI A size medium: 8.5 inches x 11 inches.
static MediaSizeName
B
The engineering ANSI B size medium: 11 inches x 17 inches.
static MediaSizeName
C
The engineering ANSI C size medium: 17 inches x 22 inches.
static MediaSizeName
D
The engineering ANSI D size medium: 22 inches x 34 inches.
static MediaSizeName
E
The engineering ANSI E size medium: 34 inches x 44 inches.
static MediaSizeName
EXECUTIVE
The executive size: 7.25 inches by 10.5 inches.
static MediaSizeName
FOLIO
The folio size: 8.5 inches by 13 inches.
static MediaSizeName
INVOICE
The invoice size: 5.5 inches by 8.5 inches.
static MediaSizeName
ISO_A0
The ISO A0 size: 841 mm by 1189 mm.
static MediaSizeName
ISO_A1
The ISO A1 size: 594 mm by 841 mm.
static MediaSizeName
ISO_A10
The ISO A10 size: 26 mm by 37 mm.
static MediaSizeName
ISO_A2
The ISO A2 size: 420 mm by 594 mm.
static MediaSizeName
ISO_A3
The ISO A3 size: 297 mm by 420 mm.
static MediaSizeName
ISO_A4
The ISO A4 size: 210 mm by 297 mm.
static MediaSizeName
ISO_A5
The ISO A5 size: 148 mm by 210 mm.
static MediaSizeName
ISO_A6
The ISO A6 size: 105 mm by 148 mm.
static MediaSizeName
ISO_A7
The ISO A7 size: 74 mm by 105 mm.
static MediaSizeName
ISO_A8
The ISO A8 size: 52 mm by 74 mm.
static MediaSizeName
ISO_A9
The ISO A9 size: 37 mm by 52 mm.
static MediaSizeName
ISO_B0
The ISO B0 size: 1000 mm by 1414 mm.
static MediaSizeName
ISO_B1
The ISO B1 size: 707 mm by 1000 mm.
static MediaSizeName
ISO_B10
The ISO B10 size: 31 mm by 44 mm.
static MediaSizeName
ISO_B2
The ISO B2 size: 500 mm by 707 mm.
static MediaSizeName
ISO_B3
The ISO B3 size: 353 mm by 500 mm.
static MediaSizeName
ISO_B4
The ISO B4 size: 250 mm by 353 mm.
static MediaSizeName
ISO_B5
The ISO B5 size: 176 mm by 250 mm.
static MediaSizeName
ISO_B6
The ISO B6 size: 125 mm by 176 mm.
static MediaSizeName
ISO_B7
The ISO B7 size: 88 mm by 125 mm.
static MediaSizeName
ISO_B8
The ISO B8 size: 62 mm by 88 mm.
static MediaSizeName
ISO_B9
The ISO B9 size: 44 mm by 62 mm.
static MediaSizeName
ISO_C0
The ISO C0 size: 917 mm by 1297 mm.
static MediaSizeName
ISO_C1
The ISO C1 size: 648 mm by 917 mm.
static MediaSizeName
ISO_C2
The ISO C2 size: 458 mm by 648 mm.
static MediaSizeName
ISO_C3
The ISO C3 size: 324 mm by 458 mm.
static MediaSizeName
ISO_C4
The ISO C4 size: 229 mm by 324 mm.
static MediaSizeName
ISO_C5
The ISO C5 size: 162 mm by 229 mm.
static MediaSizeName
ISO_C6
The ISO C6 size: 114 mm by 162 mm.
static MediaSizeName
ISO_DESIGNATED_LONG
The ISO Designated Long size: 110 mm by 220 mm.
static MediaSizeName
ITALY_ENVELOPE
The Italy envelope size: 110 mm by 230 mm.
static MediaSizeName
JAPANESE_DOUBLE_POSTCARD
The Japanese Double postcard size: 148 mm by 200 mm.
static MediaSizeName
JAPANESE_POSTCARD
The Japanese postcard size, 100 mm by 148 mm.
static MediaSizeName
JIS_B0
The JIS B0 size: 1030mm x 1456mm.
static MediaSizeName
JIS_B1
The JIS B1 size: 728mm x 1030mm.
static MediaSizeName
JIS_B10
The JIS B10 size: 32mm x 45mm.
static MediaSizeName
JIS_B2
The JIS B2 size: 515mm x 728mm.
static MediaSizeName
JIS_B3
The JIS B3 size: 364mm x 515mm.
static MediaSizeName
JIS_B4
The JIS B4 size: 257mm x 364mm.
static MediaSizeName
JIS_B5
The JIS B5 size: 182mm x 257mm.
static MediaSizeName
JIS_B6
The JIS B6 size: 128mm x 182mm.
static MediaSizeName
JIS_B7
The JIS B7 size: 91mm x 128mm.
static MediaSizeName
JIS_B8
The JIS B8 size: 64mm x 91mm.
static MediaSizeName
JIS_B9
The JIS B9 size: 45mm x 64mm.
static MediaSizeName
LEDGER
The ledger size: 11 inches by 17 inches.
static MediaSizeName
MONARCH_ENVELOPE
The Monarch envelope size: 3.87 inch by 7.5 inch.
static MediaSizeName
NA_10X13_ENVELOPE
The North American 10x13 inch envelope size.
static MediaSizeName
NA_10X14_ENVELOPE
The North American 10x14 inch envelope size.
static MediaSizeName
NA_10X15_ENVELOPE
The North American 10x15 inch envelope size.
static MediaSizeName
NA_5X7
The North American 5 inches by 7 inches.
static MediaSizeName
NA_6X9_ENVELOPE
The North American 6x9 inch envelope size.
static MediaSizeName
NA_7X9_ENVELOPE
The North American 7x9 inch envelope size.
static MediaSizeName
NA_8X10
The North American 8 inches by 10 inches.
static MediaSizeName
NA_9X11_ENVELOPE
The North American 9x11 inch envelope size.
static MediaSizeName
NA_9X12_ENVELOPE
The North American 9x12 inch envelope size.
static MediaSizeName
NA_LEGAL
The North American legal size: 8.5 inches by 14 inches.
static MediaSizeName
NA_LETTER
The North American letter size: 8.5 inches by 11 inches.
static MediaSizeName
NA_NUMBER_10_ENVELOPE
The North American number 10 business envelope size: 4.125 inches by 9.5 inches.
static MediaSizeName
NA_NUMBER_11_ENVELOPE
The North American number 11 business envelope size: 4.5 inches by 10.375 inches.
static MediaSizeName
NA_NUMBER_12_ENVELOPE
The North American number 12 business envelope size: 4.75 inches by 11 inches.
static MediaSizeName
NA_NUMBER_14_ENVELOPE
The North American number 14 business envelope size: 5 inches by 11.5 inches.
static MediaSizeName
NA_NUMBER_9_ENVELOPE
The North American number 9 business envelope size: 3.875 inches by 8.875 inches.
static MediaSizeName
PERSONAL_ENVELOPE
The Personal envelope size: 3.625 inch by 6.5 inch.
static MediaSizeName
QUARTO
The quarto size: 8.5 inches by 10.83 inches.
static MediaSizeName
TABLOID
The tabloid size: 11 inches by 17 inches.

Constructor Summary

MediaSizeName(int value)
Constructs a MediaSizeName object.

Method Summary

protected EnumSyntax[]
getEnumValueTable()
Returns a table with the enumeration values for this object.
protected String[]
getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Methods inherited from class javax.print.attribute.standard.Media

? extends Attribute> getCategory, equals, getName

Methods inherited from class javax.print.attribute.EnumSyntax

clone, getEnumValueTable, getOffset, getStringTable, getValue, hashCode, readResolve, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

A

public static final MediaSizeName A
The engineering ANSI A size medium: 8.5 inches x 11 inches.

B

public static final MediaSizeName B
The engineering ANSI B size medium: 11 inches x 17 inches.

C

public static final MediaSizeName C
The engineering ANSI C size medium: 17 inches x 22 inches.

D

public static final MediaSizeName D
The engineering ANSI D size medium: 22 inches x 34 inches.

E

public static final MediaSizeName E
The engineering ANSI E size medium: 34 inches x 44 inches.

EXECUTIVE

public static final MediaSizeName EXECUTIVE
The executive size: 7.25 inches by 10.5 inches.

FOLIO

public static final MediaSizeName FOLIO
The folio size: 8.5 inches by 13 inches.

INVOICE

public static final MediaSizeName INVOICE
The invoice size: 5.5 inches by 8.5 inches.

ISO_A0

public static final MediaSizeName ISO_A0
The ISO A0 size: 841 mm by 1189 mm.

ISO_A1

public static final MediaSizeName ISO_A1
The ISO A1 size: 594 mm by 841 mm.

ISO_A10

public static final MediaSizeName ISO_A10
The ISO A10 size: 26 mm by 37 mm.

ISO_A2

public static final MediaSizeName ISO_A2
The ISO A2 size: 420 mm by 594 mm.

ISO_A3

public static final MediaSizeName ISO_A3
The ISO A3 size: 297 mm by 420 mm.

ISO_A4

public static final MediaSizeName ISO_A4
The ISO A4 size: 210 mm by 297 mm.

ISO_A5

public static final MediaSizeName ISO_A5
The ISO A5 size: 148 mm by 210 mm.

ISO_A6

public static final MediaSizeName ISO_A6
The ISO A6 size: 105 mm by 148 mm.

ISO_A7

public static final MediaSizeName ISO_A7
The ISO A7 size: 74 mm by 105 mm.

ISO_A8

public static final MediaSizeName ISO_A8
The ISO A8 size: 52 mm by 74 mm.

ISO_A9

public static final MediaSizeName ISO_A9
The ISO A9 size: 37 mm by 52 mm.

ISO_B0

public static final MediaSizeName ISO_B0
The ISO B0 size: 1000 mm by 1414 mm.

ISO_B1

public static final MediaSizeName ISO_B1
The ISO B1 size: 707 mm by 1000 mm.

ISO_B10

public static final MediaSizeName ISO_B10
The ISO B10 size: 31 mm by 44 mm.

ISO_B2

public static final MediaSizeName ISO_B2
The ISO B2 size: 500 mm by 707 mm.

ISO_B3

public static final MediaSizeName ISO_B3
The ISO B3 size: 353 mm by 500 mm.

ISO_B4

public static final MediaSizeName ISO_B4
The ISO B4 size: 250 mm by 353 mm.

ISO_B5

public static final MediaSizeName ISO_B5
The ISO B5 size: 176 mm by 250 mm.

ISO_B6

public static final MediaSizeName ISO_B6
The ISO B6 size: 125 mm by 176 mm.

ISO_B7

public static final MediaSizeName ISO_B7
The ISO B7 size: 88 mm by 125 mm.

ISO_B8

public static final MediaSizeName ISO_B8
The ISO B8 size: 62 mm by 88 mm.

ISO_B9

public static final MediaSizeName ISO_B9
The ISO B9 size: 44 mm by 62 mm.

ISO_C0

public static final MediaSizeName ISO_C0
The ISO C0 size: 917 mm by 1297 mm.

ISO_C1

public static final MediaSizeName ISO_C1
The ISO C1 size: 648 mm by 917 mm.

ISO_C2

public static final MediaSizeName ISO_C2
The ISO C2 size: 458 mm by 648 mm.

ISO_C3

public static final MediaSizeName ISO_C3
The ISO C3 size: 324 mm by 458 mm.

ISO_C4

public static final MediaSizeName ISO_C4
The ISO C4 size: 229 mm by 324 mm.

ISO_C5

public static final MediaSizeName ISO_C5
The ISO C5 size: 162 mm by 229 mm.

ISO_C6

public static final MediaSizeName ISO_C6
The ISO C6 size: 114 mm by 162 mm.

ISO_DESIGNATED_LONG

public static final MediaSizeName ISO_DESIGNATED_LONG
The ISO Designated Long size: 110 mm by 220 mm.

ITALY_ENVELOPE

public static final MediaSizeName ITALY_ENVELOPE
The Italy envelope size: 110 mm by 230 mm.

JAPANESE_DOUBLE_POSTCARD

public static final MediaSizeName JAPANESE_DOUBLE_POSTCARD
The Japanese Double postcard size: 148 mm by 200 mm.

JAPANESE_POSTCARD

public static final MediaSizeName JAPANESE_POSTCARD
The Japanese postcard size, 100 mm by 148 mm.

JIS_B0

public static final MediaSizeName JIS_B0
The JIS B0 size: 1030mm x 1456mm.

JIS_B1

public static final MediaSizeName JIS_B1
The JIS B1 size: 728mm x 1030mm.

JIS_B10

public static final MediaSizeName JIS_B10
The JIS B10 size: 32mm x 45mm.

JIS_B2

public static final MediaSizeName JIS_B2
The JIS B2 size: 515mm x 728mm.

JIS_B3

public static final MediaSizeName JIS_B3
The JIS B3 size: 364mm x 515mm.

JIS_B4

public static final MediaSizeName JIS_B4
The JIS B4 size: 257mm x 364mm.

JIS_B5

public static final MediaSizeName JIS_B5
The JIS B5 size: 182mm x 257mm.

JIS_B6

public static final MediaSizeName JIS_B6
The JIS B6 size: 128mm x 182mm.

JIS_B7

public static final MediaSizeName JIS_B7
The JIS B7 size: 91mm x 128mm.

JIS_B8

public static final MediaSizeName JIS_B8
The JIS B8 size: 64mm x 91mm.

JIS_B9

public static final MediaSizeName JIS_B9
The JIS B9 size: 45mm x 64mm.

LEDGER

public static final MediaSizeName LEDGER
The ledger size: 11 inches by 17 inches.

MONARCH_ENVELOPE

public static final MediaSizeName MONARCH_ENVELOPE
The Monarch envelope size: 3.87 inch by 7.5 inch.

NA_10X13_ENVELOPE

public static final MediaSizeName NA_10X13_ENVELOPE
The North American 10x13 inch envelope size.

NA_10X14_ENVELOPE

public static final MediaSizeName NA_10X14_ENVELOPE
The North American 10x14 inch envelope size.

NA_10X15_ENVELOPE

public static final MediaSizeName NA_10X15_ENVELOPE
The North American 10x15 inch envelope size.

NA_5X7

public static final MediaSizeName NA_5X7
The North American 5 inches by 7 inches.

NA_6X9_ENVELOPE

public static final MediaSizeName NA_6X9_ENVELOPE
The North American 6x9 inch envelope size.

NA_7X9_ENVELOPE

public static final MediaSizeName NA_7X9_ENVELOPE
The North American 7x9 inch envelope size.

NA_8X10

public static final MediaSizeName NA_8X10
The North American 8 inches by 10 inches.

NA_9X11_ENVELOPE

public static final MediaSizeName NA_9X11_ENVELOPE
The North American 9x11 inch envelope size.

NA_9X12_ENVELOPE

public static final MediaSizeName NA_9X12_ENVELOPE
The North American 9x12 inch envelope size.

NA_LEGAL

public static final MediaSizeName NA_LEGAL
The North American legal size: 8.5 inches by 14 inches.

NA_LETTER

public static final MediaSizeName NA_LETTER
The North American letter size: 8.5 inches by 11 inches.

NA_NUMBER_10_ENVELOPE

public static final MediaSizeName NA_NUMBER_10_ENVELOPE
The North American number 10 business envelope size: 4.125 inches by 9.5 inches.

NA_NUMBER_11_ENVELOPE

public static final MediaSizeName NA_NUMBER_11_ENVELOPE
The North American number 11 business envelope size: 4.5 inches by 10.375 inches.

NA_NUMBER_12_ENVELOPE

public static final MediaSizeName NA_NUMBER_12_ENVELOPE
The North American number 12 business envelope size: 4.75 inches by 11 inches.

NA_NUMBER_14_ENVELOPE

public static final MediaSizeName NA_NUMBER_14_ENVELOPE
The North American number 14 business envelope size: 5 inches by 11.5 inches.

NA_NUMBER_9_ENVELOPE

public static final MediaSizeName NA_NUMBER_9_ENVELOPE
The North American number 9 business envelope size: 3.875 inches by 8.875 inches.

PERSONAL_ENVELOPE

public static final MediaSizeName PERSONAL_ENVELOPE
The Personal envelope size: 3.625 inch by 6.5 inch.

QUARTO

public static final MediaSizeName QUARTO
The quarto size: 8.5 inches by 10.83 inches.

TABLOID

public static final MediaSizeName TABLOID
The tabloid size: 11 inches by 17 inches.

Constructor Details

MediaSizeName

protected MediaSizeName(int value)
Constructs a MediaSizeName object.
Parameters:
value - the enum value.

Method Details

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.
Overrides:
getEnumValueTable in interface EnumSyntax
Returns:
The enumeration values.

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.
Overrides:
getStringTable in interface EnumSyntax
Returns:
The enumeration values as strings.

MediaSizeName.java -- Copyright (C) 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath 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 General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.