com.teamdev.jxbrowser.print
Enum PaperSize

java.lang.Object
  extended by java.lang.Enum<PaperSize>
      extended by com.teamdev.jxbrowser.print.PaperSize
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PaperSize>

public enum PaperSize
extends java.lang.Enum<PaperSize>

Represents the international paper size standards.


Enum Constant Summary
A
          ANSI/ASME Y14.1 standard A format
A3
          ISO 216 A3 format page
A4
          ISO 216 A4 format page
A5
          ISO 216 A5 format page
B
          ANSI/ASME Y14.1 standard B format
B3
          ISO 216 B3 format page
B4
          ISO 216 A4 format page
B5
          ISO 216 A5 format page
C
          ANSI/ASME Y14.1 standard C format
LEGAL
          USA (CANADA) national standard Legal format
LETTER
          USA (CANADA) national standard Letter format
 
Method Summary
 java.lang.String getDescription()
          Returns the page format description.
 double getHeight()
          Returns the page height in millimeters.
 double getWidth()
          Returns the page width in millimeters.
static PaperSize valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PaperSize[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

A3

public static final PaperSize A3
ISO 216 A3 format page


A4

public static final PaperSize A4
ISO 216 A4 format page


A5

public static final PaperSize A5
ISO 216 A5 format page


B3

public static final PaperSize B3
ISO 216 B3 format page


B4

public static final PaperSize B4
ISO 216 A4 format page


B5

public static final PaperSize B5
ISO 216 A5 format page


LETTER

public static final PaperSize LETTER
USA (CANADA) national standard Letter format


LEGAL

public static final PaperSize LEGAL
USA (CANADA) national standard Legal format


A

public static final PaperSize A
ANSI/ASME Y14.1 standard A format


B

public static final PaperSize B
ANSI/ASME Y14.1 standard B format


C

public static final PaperSize C
ANSI/ASME Y14.1 standard C format

Method Detail

values

public static PaperSize[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PaperSize c : PaperSize.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PaperSize valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getWidth

public double getWidth()
Returns the page width in millimeters.

Returns:
the page width in millimeters.

getHeight

public double getHeight()
Returns the page height in millimeters.

Returns:
the page height in millimeters.

getDescription

public java.lang.String getDescription()
Returns the page format description.

Returns:
the page format description.