Package com.teamdev.jxbrowser.print
Class PaperSize
java.lang.Object
com.teamdev.jxbrowser.print.PaperSize
The paper size used for printing.
- Since:
- 7.13
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Represents the measurement unit of the paper size. -
Field Summary
Modifier and TypeFieldDescriptionstatic final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
static final PaperSize
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
int
height()
Returns the paper height in microns.name()
Returns anOptional
that contains the paper size name, otherwise an emptyOptional
.static PaperSize
of
(float width, float height, PaperSize.Unit unit) Creates a newPaperSize
setting.static PaperSize
of
(float width, float height, PaperSize.Unit unit, String name) Creates a newPaperSize
setting.toString()
static Collection<PaperSize>
values()
Returns an immutable collection of the knownPaperSize
values.int
width()
Returns the paper width in microns.
-
Field Details
-
NA_5X7
-
NA_6X9
-
NA_7X9
-
NA_9X11
-
NA_10X11
-
NA_10X13
-
NA_10X14
-
NA_10X15
-
NA_11X12
-
NA_11X15
-
NA_12X19
-
NA_INDEX_3X5
-
NA_INDEX_4X6
-
NA_INDEX_4X6_EXT
-
NA_INDEX_5X8
-
NA_NUMBER_9
-
NA_NUMBER_10
-
NA_NUMBER_11
-
NA_NUMBER_12
-
NA_NUMBER_14
-
NA_PERSONAL
-
NA_MONARCH
-
NA_INVOICE
-
NA_EXECUTIVE
-
NA_GOVT_LETTER
-
NA_GOVT_LEGAL
-
NA_QUARTO
-
NA_LETTER
-
NA_LETTER_PLUS
-
NA_LETTER_E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
ISO_C9
-
ISO_C10
-
ISO_DL
-
ISO_RA2
-
ISO_SRA2
-
ISO_RA1
-
ISO_SRA1
-
ISO_RA0
-
ISO_SRA0
-
JIS_B0
-
JIS_B1
-
JIS_B2
-
JIS_B3
-
JIS_B4
-
JIS_B5
-
JIS_B6
-
JIS_B7
-
JIS_B8
-
JIS_B9
-
JIS_B10
-
JIS_EXEC
-
JPN_CHOU2
-
JPN_CHOU3
-
JPN_CHOU4
-
JPN_HAGAKI
-
JPN_OUFUKU
-
JPN_YOU4
-
JPN_KAHU
-
JPN_KAKU2
-
OM_SMALL_PHOTO
-
OM_ITALIAN
-
OM_POSTFIX
-
OM_LARGE_PHOTO
-
OM_FOLIO
-
OM_FOLIO_SP
-
OM_INVITE
-
-
Method Details
-
of
Creates a newPaperSize
setting.- Parameters:
width
- the paper size widthheight
- the paper size heightunit
- thewidth
andheight
measurement unit- Throws:
IllegalArgumentException
- whenwidth
is negativeIllegalArgumentException
- whenheight
is negative
-
of
Creates a newPaperSize
setting.- Parameters:
width
- the paper size widthheight
- the paper size heightunit
- thewidth
andheight
measurement unitname
- the paper size name- Throws:
IllegalArgumentException
- whenwidth
is negativeIllegalArgumentException
- whenheight
is negativeIllegalArgumentException
- whenname
is empty or blank
-
values
Returns an immutable collection of the knownPaperSize
values. -
width
public int width()Returns the paper width in microns. -
height
public int height()Returns the paper height in microns. -
name
Returns anOptional
that contains the paper size name, otherwise an emptyOptional
. -
toString
-
equals
-
hashCode
public int hashCode()
-