com.teamdev.jxbrowser.printing
Class PaperSize

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

public final class PaperSize
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable<PaperSize>

PrintPaperSize defines paper size for PrintSettings. Check that hardware and it driver supports printing at paper size that you select.

See Also:
PrintSettings, Serialized Form

Nested Class Summary
static class PaperSize.MeasureUnits
          The page size units enumeration.
 
Field Summary
static PaperSize A
          The print paper size object for ANSI/ASME Y14.1 A page format
static PaperSize A1
          The print paper size object for ISO 216 A1 page format
static PaperSize A10
          The print paper size object for ISO 216 A10 page format
static PaperSize A2
          The print paper size object for ISO 216 A2 page format
static PaperSize A3
          The print paper size object for ISO 216 A3 page format
static PaperSize A3_025
          The print paper size object for ISO 216/dividing A3/4 page format
static PaperSize A4
          The print paper size object for ISO 216 A4 page format
static PaperSize A4_0125
          The print paper size object for ISO 216/dividing A4/8 page format
static PaperSize A4_025
          The print paper size object for ISO 216/dividing A4/4 page format
static PaperSize A4_03
          The print paper size object for ISO 216/dividing A4/3 page format
static PaperSize A5
          The print paper size object for ISO 216 A5 page format
static PaperSize A5_03
          The print paper size object for ISO 216/dividing A5/3 page format
static PaperSize A6
          The print paper size object for ISO 216 A6 page format
static PaperSize A7
          The print paper size object for ISO 216 A7 page format
static PaperSize A8
          The print paper size object for ISO 216 A8 page format
static PaperSize A9
          The print paper size object for ISO 216 A9 page format
static PaperSize AO
          The print paper size object for ISO 216 A0 page format
static PaperSize B
          The print paper size object for ANSI/ASME Y14.1 B page format
static PaperSize B0
          The print paper size object for ISO 216 B0 page format
static PaperSize B1
          The print paper size object for ISO 216 B1 page format
static PaperSize B10
          The print paper size object for ISO 216 B10 page format
static PaperSize B2
          The print paper size object for ISO 216 B2 page format
static PaperSize B3
          The print paper size object for ISO 216 B3 page format
static PaperSize B4
          The print paper size object for ISO 216 B4 page format
static PaperSize B5
          The print paper size object for ISO 216 B5 page format
static PaperSize B6
          The print paper size object for ISO 216 B6 page format
static PaperSize B7
          The print paper size object for ISO 216 B7 page format
static PaperSize B8
          The print paper size object for ISO 216 B8 page format
static PaperSize B9
          The print paper size object for ISO 216 B9 page format
static PaperSize C
          The print paper size object for ANSI/ASME Y14.1 C page format
static PaperSize C0
          The print paper size object for ISO 216 C0 page (mail) format
static PaperSize C1
          The print paper size object for ISO 216 C1 page (mail) format
static PaperSize C10
          The print paper size object for ISO 216 C10 page (mail) format
static PaperSize C2
          The print paper size object for ISO 216 C2 page (mail) format
static PaperSize C3
          The print paper size object for ISO 216 C3 page (mail) format
static PaperSize C4
          The print paper size object for ISO 216 C4 page (mail) format
static PaperSize C5
          The print paper size object for ISO 216 C5 page (mail) format
static PaperSize C6
          The print paper size object for ISO 216 C6 page (mail) format
static PaperSize C7
          The print paper size object for ISO 216 C7 page (mail) format
static PaperSize C8
          The print paper size object for ISO 216 C8 page (mail) format
static PaperSize C9
          The print paper size object for ISO 216 C9 page (mail) format
static PaperSize D
          The print paper size object for ANSI/ASME Y14.1 D page format
static PaperSize E
          The print paper size object for ANSI/ASME Y14.1 E page format
static PaperSize EXECUTIVE
          The print paper size object for USA (CANADA) EXECUTIVE page format
static PaperSize LEDGER_TABLOID
          The print paper size object for USA (CANADA) LEDGER TABLOID page format
static PaperSize LEGAL
          The print paper size object for USA (CANADA) LEGAL page format
static PaperSize LETTER
          The print paper size object for USA (CANADA) LETTER page format
static PaperSize RA0
          The print paper size object for ISO typographic not truncated paper ISO 216 RA0 page format
static PaperSize RA1
          The print paper size object for ISO typographic not truncated paper ISO 216 RA1 page format
static PaperSize RA2
          The print paper size object for ISO typographic not truncated paper ISO 216 RA2 page format
static PaperSize RA3
          The print paper size object for ISO typographic not truncated paper ISO 216 RA3 page format
static PaperSize RA4
          The print paper size object for ISO typographic not truncated paper ISO 216 RA4 page format
static PaperSize RSA0
          The print paper size object for ISO typographic not truncated paper ISO 216 RSA0 page format
static PaperSize RSA1
          The print paper size object for ISO typographic not truncated paper ISO 216 RSA1 page format
static PaperSize RSA2
          The print paper size object for ISO typographic not truncated paper ISO 216 RSA2 page format
static PaperSize RSA3
          The print paper size object for ISO typographic not truncated paper ISO 216 RSA3 page format
static PaperSize RSA4
          The print paper size object for ISO typographic not truncated paper ISO 216 RSA4 page format
 
Constructor Summary
PaperSize(PaperSize.MeasureUnits units, PageDimension format, java.lang.String formatName)
          Create PrintPaperSize for specific format and specific units.
 
Method Summary
 int compareTo(PaperSize o)
           
 boolean equals(java.lang.Object obj)
           
 PaperSize.MeasureUnits getMeasureUnits()
           
 PageDimension getPageDimensionInInches()
          Return paper size in inches regardless of what units were used to define the paper size.
 PageDimension getPageDimensionInMillimeters()
          Return paper size in millimeters regardless of what units were used to define the paper size.
 int hashCode()
           
 java.lang.String toString()
           
static PaperSize valueOf(java.lang.String formatName)
          Returns PaperSize object corresponding it's standard format name.
static java.util.List<PaperSize> values()
          Returns list of all exited paper size format names
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AO

public static final PaperSize AO
The print paper size object for ISO 216 A0 page format


A1

public static final PaperSize A1
The print paper size object for ISO 216 A1 page format


A2

public static final PaperSize A2
The print paper size object for ISO 216 A2 page format


A3

public static final PaperSize A3
The print paper size object for ISO 216 A3 page format


A4

public static final PaperSize A4
The print paper size object for ISO 216 A4 page format


A5

public static final PaperSize A5
The print paper size object for ISO 216 A5 page format


A6

public static final PaperSize A6
The print paper size object for ISO 216 A6 page format


A7

public static final PaperSize A7
The print paper size object for ISO 216 A7 page format


A8

public static final PaperSize A8
The print paper size object for ISO 216 A8 page format


A9

public static final PaperSize A9
The print paper size object for ISO 216 A9 page format


A10

public static final PaperSize A10
The print paper size object for ISO 216 A10 page format


B0

public static final PaperSize B0
The print paper size object for ISO 216 B0 page format


B1

public static final PaperSize B1
The print paper size object for ISO 216 B1 page format


B2

public static final PaperSize B2
The print paper size object for ISO 216 B2 page format


B3

public static final PaperSize B3
The print paper size object for ISO 216 B3 page format


B4

public static final PaperSize B4
The print paper size object for ISO 216 B4 page format


B5

public static final PaperSize B5
The print paper size object for ISO 216 B5 page format


B6

public static final PaperSize B6
The print paper size object for ISO 216 B6 page format


B7

public static final PaperSize B7
The print paper size object for ISO 216 B7 page format


B8

public static final PaperSize B8
The print paper size object for ISO 216 B8 page format


B9

public static final PaperSize B9
The print paper size object for ISO 216 B9 page format


B10

public static final PaperSize B10
The print paper size object for ISO 216 B10 page format


C0

public static final PaperSize C0
The print paper size object for ISO 216 C0 page (mail) format


C1

public static final PaperSize C1
The print paper size object for ISO 216 C1 page (mail) format


C2

public static final PaperSize C2
The print paper size object for ISO 216 C2 page (mail) format


C3

public static final PaperSize C3
The print paper size object for ISO 216 C3 page (mail) format


C4

public static final PaperSize C4
The print paper size object for ISO 216 C4 page (mail) format


C5

public static final PaperSize C5
The print paper size object for ISO 216 C5 page (mail) format


C6

public static final PaperSize C6
The print paper size object for ISO 216 C6 page (mail) format


C7

public static final PaperSize C7
The print paper size object for ISO 216 C7 page (mail) format


C8

public static final PaperSize C8
The print paper size object for ISO 216 C8 page (mail) format


C9

public static final PaperSize C9
The print paper size object for ISO 216 C9 page (mail) format


C10

public static final PaperSize C10
The print paper size object for ISO 216 C10 page (mail) format


A4_03

public static final PaperSize A4_03
The print paper size object for ISO 216/dividing A4/3 page format


A4_025

public static final PaperSize A4_025
The print paper size object for ISO 216/dividing A4/4 page format


A4_0125

public static final PaperSize A4_0125
The print paper size object for ISO 216/dividing A4/8 page format


A3_025

public static final PaperSize A3_025
The print paper size object for ISO 216/dividing A3/4 page format


A5_03

public static final PaperSize A5_03
The print paper size object for ISO 216/dividing A5/3 page format


RA0

public static final PaperSize RA0
The print paper size object for ISO typographic not truncated paper ISO 216 RA0 page format


RA1

public static final PaperSize RA1
The print paper size object for ISO typographic not truncated paper ISO 216 RA1 page format


RA2

public static final PaperSize RA2
The print paper size object for ISO typographic not truncated paper ISO 216 RA2 page format


RA3

public static final PaperSize RA3
The print paper size object for ISO typographic not truncated paper ISO 216 RA3 page format


RA4

public static final PaperSize RA4
The print paper size object for ISO typographic not truncated paper ISO 216 RA4 page format


RSA0

public static final PaperSize RSA0
The print paper size object for ISO typographic not truncated paper ISO 216 RSA0 page format


RSA1

public static final PaperSize RSA1
The print paper size object for ISO typographic not truncated paper ISO 216 RSA1 page format


RSA2

public static final PaperSize RSA2
The print paper size object for ISO typographic not truncated paper ISO 216 RSA2 page format


RSA3

public static final PaperSize RSA3
The print paper size object for ISO typographic not truncated paper ISO 216 RSA3 page format


RSA4

public static final PaperSize RSA4
The print paper size object for ISO typographic not truncated paper ISO 216 RSA4 page format


LETTER

public static final PaperSize LETTER
The print paper size object for USA (CANADA) LETTER page format


LEGAL

public static final PaperSize LEGAL
The print paper size object for USA (CANADA) LEGAL page format


EXECUTIVE

public static final PaperSize EXECUTIVE
The print paper size object for USA (CANADA) EXECUTIVE page format


LEDGER_TABLOID

public static final PaperSize LEDGER_TABLOID
The print paper size object for USA (CANADA) LEDGER TABLOID page format


A

public static final PaperSize A
The print paper size object for ANSI/ASME Y14.1 A page format


B

public static final PaperSize B
The print paper size object for ANSI/ASME Y14.1 B page format


C

public static final PaperSize C
The print paper size object for ANSI/ASME Y14.1 C page format


D

public static final PaperSize D
The print paper size object for ANSI/ASME Y14.1 D page format


E

public static final PaperSize E
The print paper size object for ANSI/ASME Y14.1 E page format

Constructor Detail

PaperSize

public PaperSize(PaperSize.MeasureUnits units,
                 PageDimension format,
                 java.lang.String formatName)
Create PrintPaperSize for specific format and specific units.

Parameters:
units - PAPER_SIZE_INCHES or PAPER_SIZE_MILLIMETRS
format - define the with and height of paper. (if PAPER_SIZE_INCHES do not use the constants from this class)
Method Detail

getPageDimensionInInches

public PageDimension getPageDimensionInInches()
Return paper size in inches regardless of what units were used to define the paper size.


getPageDimensionInMillimeters

public PageDimension getPageDimensionInMillimeters()
Return paper size in millimeters regardless of what units were used to define the paper size.


compareTo

public int compareTo(PaperSize o)
Specified by:
compareTo in interface java.lang.Comparable<PaperSize>

getMeasureUnits

public PaperSize.MeasureUnits getMeasureUnits()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

values

public static java.util.List<PaperSize> values()
Returns list of all exited paper size format names


valueOf

public static final PaperSize valueOf(java.lang.String formatName)
Returns PaperSize object corresponding it's standard format name.

Parameters:
formatName - the standard format name.