Class PaperSize

java.lang.Object
com.teamdev.jxbrowser.print.PaperSize

public final class PaperSize extends Object
The paper size used for printing.
Since:
7.13
  • Field Details

    • NA_5X7

      public static final PaperSize NA_5X7
    • NA_6X9

      public static final PaperSize NA_6X9
    • NA_7X9

      public static final PaperSize NA_7X9
    • NA_9X11

      public static final PaperSize NA_9X11
    • NA_10X11

      public static final PaperSize NA_10X11
    • NA_10X13

      public static final PaperSize NA_10X13
    • NA_10X14

      public static final PaperSize NA_10X14
    • NA_10X15

      public static final PaperSize NA_10X15
    • NA_11X12

      public static final PaperSize NA_11X12
    • NA_11X15

      public static final PaperSize NA_11X15
    • NA_12X19

      public static final PaperSize NA_12X19
    • NA_INDEX_3X5

      public static final PaperSize NA_INDEX_3X5
    • NA_INDEX_4X6

      public static final PaperSize NA_INDEX_4X6
    • NA_INDEX_4X6_EXT

      public static final PaperSize NA_INDEX_4X6_EXT
    • NA_INDEX_5X8

      public static final PaperSize NA_INDEX_5X8
    • NA_NUMBER_9

      public static final PaperSize NA_NUMBER_9
    • NA_NUMBER_10

      public static final PaperSize NA_NUMBER_10
    • NA_NUMBER_11

      public static final PaperSize NA_NUMBER_11
    • NA_NUMBER_12

      public static final PaperSize NA_NUMBER_12
    • NA_NUMBER_14

      public static final PaperSize NA_NUMBER_14
    • NA_PERSONAL

      public static final PaperSize NA_PERSONAL
    • NA_MONARCH

      public static final PaperSize NA_MONARCH
    • NA_INVOICE

      public static final PaperSize NA_INVOICE
    • NA_EXECUTIVE

      public static final PaperSize NA_EXECUTIVE
    • NA_GOVT_LETTER

      public static final PaperSize NA_GOVT_LETTER
    • NA_QUARTO

      public static final PaperSize NA_QUARTO
    • NA_LETTER

      public static final PaperSize NA_LETTER
    • NA_LETTER_PLUS

      public static final PaperSize NA_LETTER_PLUS
    • NA_LETTER_EXTRA

      public static final PaperSize NA_LETTER_EXTRA
    • NA_FANFOLD_EUR

      public static final PaperSize NA_FANFOLD_EUR
    • NA_FOOLSCAP

      public static final PaperSize NA_FOOLSCAP
    • NA_FANFOLD_US

      public static final PaperSize NA_FANFOLD_US
    • NA_SUPER_A

      public static final PaperSize NA_SUPER_A
    • NA_SUPER_B

      public static final PaperSize NA_SUPER_B
    • NA_A2

      public static final PaperSize NA_A2
    • NA_ARCH_A

      public static final PaperSize NA_ARCH_A
    • NA_ARCH_B

      public static final PaperSize NA_ARCH_B
    • NA_ARCH_C

      public static final PaperSize NA_ARCH_C
    • NA_ARCH_D

      public static final PaperSize NA_ARCH_D
    • NA_ARCH_E

      public static final PaperSize NA_ARCH_E
    • NA_C

      public static final PaperSize NA_C
    • NA_C5

      public static final PaperSize NA_C5
    • NA_D

      public static final PaperSize NA_D
    • NA_E

      public static final PaperSize NA_E
    • NA_F

      public static final PaperSize NA_F
    • NA_EDP

      public static final PaperSize NA_EDP
    • NA_EUR_EDP

      public static final PaperSize NA_EUR_EDP
    • NA_LEDGER

      public static final PaperSize NA_LEDGER
    • NA_B_PLUS

      public static final PaperSize NA_B_PLUS
    • NA_ASME_F

      public static final PaperSize NA_ASME_F
    • NA_WIDE_FORMAT

      public static final PaperSize NA_WIDE_FORMAT
    • PRC_1

      public static final PaperSize PRC_1
    • PRC_2

      public static final PaperSize PRC_2
    • PRC_3

      public static final PaperSize PRC_3
    • PRC_4

      public static final PaperSize PRC_4
    • PRC_5

      public static final PaperSize PRC_5
    • PRC_6

      public static final PaperSize PRC_6
    • PRC_7

      public static final PaperSize PRC_7
    • PRC_8

      public static final PaperSize PRC_8
    • PRC_10

      public static final PaperSize PRC_10
    • PRC_16K

      public static final PaperSize PRC_16K
    • PRC_32K

      public static final PaperSize PRC_32K
    • ROC_8K

      public static final PaperSize ROC_8K
    • ROC_16K

      public static final PaperSize ROC_16K
    • OM_JUURO_KU_KAI

      public static final PaperSize OM_JUURO_KU_KAI
    • OM_PA_KAI

      public static final PaperSize OM_PA_KAI
    • OM_DAI_PA_KAI

      public static final PaperSize OM_DAI_PA_KAI
    • ISO_A0

      public static final PaperSize ISO_A0
    • ISO_A1

      public static final PaperSize ISO_A1
    • ISO_A2

      public static final PaperSize ISO_A2
    • ISO_A3

      public static final PaperSize ISO_A3
    • ISO_A3_EXTRA

      public static final PaperSize ISO_A3_EXTRA
    • ISO_A4

      public static final PaperSize ISO_A4
    • ISO_A4_TAB

      public static final PaperSize ISO_A4_TAB
    • ISO_A4_EXTRA

      public static final PaperSize ISO_A4_EXTRA
    • ISO_A5

      public static final PaperSize ISO_A5
    • ISO_A5_EXTRA

      public static final PaperSize ISO_A5_EXTRA
    • ISO_A6

      public static final PaperSize ISO_A6
    • ISO_A7

      public static final PaperSize ISO_A7
    • ISO_A8

      public static final PaperSize ISO_A8
    • ISO_A9

      public static final PaperSize ISO_A9
    • ISO_A10

      public static final PaperSize ISO_A10
    • ISO_A4X3

      public static final PaperSize ISO_A4X3
    • ISO_A4X4

      public static final PaperSize ISO_A4X4
    • ISO_A4X5

      public static final PaperSize ISO_A4X5
    • ISO_A4X6

      public static final PaperSize ISO_A4X6
    • ISO_A4X7

      public static final PaperSize ISO_A4X7
    • ISO_A4X8

      public static final PaperSize ISO_A4X8
    • ISO_A4X9

      public static final PaperSize ISO_A4X9
    • ISO_A3X3

      public static final PaperSize ISO_A3X3
    • ISO_A3X4

      public static final PaperSize ISO_A3X4
    • ISO_A3X5

      public static final PaperSize ISO_A3X5
    • ISO_A3X6

      public static final PaperSize ISO_A3X6
    • ISO_A3X7

      public static final PaperSize ISO_A3X7
    • ISO_A2X3

      public static final PaperSize ISO_A2X3
    • ISO_A2X4

      public static final PaperSize ISO_A2X4
    • ISO_A2X5

      public static final PaperSize ISO_A2X5
    • ISO_A1X3

      public static final PaperSize ISO_A1X3
    • ISO_A1X4

      public static final PaperSize ISO_A1X4
    • ISO_2A0

      public static final PaperSize ISO_2A0
    • ISO_A0X3

      public static final PaperSize ISO_A0X3
    • ISO_B0

      public static final PaperSize ISO_B0
    • ISO_B1

      public static final PaperSize ISO_B1
    • ISO_B2

      public static final PaperSize ISO_B2
    • ISO_B3

      public static final PaperSize ISO_B3
    • ISO_B4

      public static final PaperSize ISO_B4
    • ISO_B5

      public static final PaperSize ISO_B5
    • ISO_B5_EXTRA

      public static final PaperSize ISO_B5_EXTRA
    • ISO_B6

      public static final PaperSize ISO_B6
    • ISO_B6C4

      public static final PaperSize ISO_B6C4
    • ISO_B7

      public static final PaperSize ISO_B7
    • ISO_B8

      public static final PaperSize ISO_B8
    • ISO_B9

      public static final PaperSize ISO_B9
    • ISO_B10

      public static final PaperSize ISO_B10
    • ISO_C0

      public static final PaperSize ISO_C0
    • ISO_C1

      public static final PaperSize ISO_C1
    • ISO_C2

      public static final PaperSize ISO_C2
    • ISO_C3

      public static final PaperSize ISO_C3
    • ISO_C4

      public static final PaperSize ISO_C4
    • ISO_C5

      public static final PaperSize ISO_C5
    • ISO_C6

      public static final PaperSize ISO_C6
    • ISO_C6C5

      public static final PaperSize ISO_C6C5
    • ISO_C7

      public static final PaperSize ISO_C7
    • ISO_C7C6

      public static final PaperSize ISO_C7C6
    • ISO_C8

      public static final PaperSize ISO_C8
    • ISO_C9

      public static final PaperSize ISO_C9
    • ISO_C10

      public static final PaperSize ISO_C10
    • ISO_DL

      public static final PaperSize ISO_DL
    • ISO_RA2

      public static final PaperSize ISO_RA2
    • ISO_SRA2

      public static final PaperSize ISO_SRA2
    • ISO_RA1

      public static final PaperSize ISO_RA1
    • ISO_SRA1

      public static final PaperSize ISO_SRA1
    • ISO_RA0

      public static final PaperSize ISO_RA0
    • ISO_SRA0

      public static final PaperSize ISO_SRA0
    • JIS_B0

      public static final PaperSize JIS_B0
    • JIS_B1

      public static final PaperSize JIS_B1
    • JIS_B2

      public static final PaperSize JIS_B2
    • JIS_B3

      public static final PaperSize JIS_B3
    • JIS_B4

      public static final PaperSize JIS_B4
    • JIS_B5

      public static final PaperSize JIS_B5
    • JIS_B6

      public static final PaperSize JIS_B6
    • JIS_B7

      public static final PaperSize JIS_B7
    • JIS_B8

      public static final PaperSize JIS_B8
    • JIS_B9

      public static final PaperSize JIS_B9
    • JIS_B10

      public static final PaperSize JIS_B10
    • JIS_EXEC

      public static final PaperSize JIS_EXEC
    • JPN_CHOU2

      public static final PaperSize JPN_CHOU2
    • JPN_CHOU3

      public static final PaperSize JPN_CHOU3
    • JPN_CHOU4

      public static final PaperSize JPN_CHOU4
    • JPN_HAGAKI

      public static final PaperSize JPN_HAGAKI
    • JPN_OUFUKU

      public static final PaperSize JPN_OUFUKU
    • JPN_YOU4

      public static final PaperSize JPN_YOU4
    • JPN_KAHU

      public static final PaperSize JPN_KAHU
    • JPN_KAKU2

      public static final PaperSize JPN_KAKU2
    • OM_SMALL_PHOTO

      public static final PaperSize OM_SMALL_PHOTO
    • OM_ITALIAN

      public static final PaperSize OM_ITALIAN
    • OM_POSTFIX

      public static final PaperSize OM_POSTFIX
    • OM_LARGE_PHOTO

      public static final PaperSize OM_LARGE_PHOTO
    • OM_FOLIO

      public static final PaperSize OM_FOLIO
    • OM_FOLIO_SP

      public static final PaperSize OM_FOLIO_SP
    • OM_INVITE

      public static final PaperSize OM_INVITE
  • Method Details

    • of

      public static PaperSize of(float width, float height, PaperSize.Unit unit)
      Creates a new PaperSize setting.
      Parameters:
      width - the paper size width
      height - the paper size height
      unit - the width and height measurement unit
      Throws:
      IllegalArgumentException - when width is negative
      IllegalArgumentException - when height is negative
    • of

      public static PaperSize of(float width, float height, PaperSize.Unit unit, String name)
      Creates a new PaperSize setting.
      Parameters:
      width - the paper size width
      height - the paper size height
      unit - the width and height measurement unit
      name - the paper size name
      Throws:
      IllegalArgumentException - when width is negative
      IllegalArgumentException - when height is negative
      IllegalArgumentException - when name is empty or blank
    • values

      public static Collection<PaperSize> values()
      Returns an immutable collection of the known PaperSize values.
    • width

      public int width()
      Returns the paper width in microns.
    • height

      public int height()
      Returns the paper height in microns.
    • name

      public Optional<String> name()
      Returns an Optional that contains the paper size name, otherwise an empty Optional.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object