Package | Description |
---|---|
com.sun.javafx.print | |
com.sun.prism.j2d.print | |
javafx.print |
Provides the public classes for the JavaFX Printing API.
|
Modifier and Type | Method and Description |
---|---|
static Paper |
PrintHelper.createPaper(java.lang.String paperName,
double paperWidth,
double paperHeight,
Units units) |
Paper |
PrintHelper.PrintAccessor.createPaper(java.lang.String paperName,
double paperWidth,
double paperHeight,
Units units) |
Paper |
PrinterImpl.defaultPaper() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Paper> |
PrinterImpl.supportedPapers() |
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
PrinterImpl.printableArea(Paper paper) |
Modifier and Type | Field and Description |
---|---|
private Paper |
J2DPrinter.defPaper |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<javax.print.attribute.standard.MediaSizeName,Paper> |
J2DPrinter.mediaToPaperMap |
private java.util.Set<Paper> |
J2DPrinter.paperSet |
private java.util.Map<Paper,javax.print.attribute.standard.MediaSizeName> |
J2DPrinter.paperToMediaMap |
private static java.util.Map<javax.print.attribute.standard.MediaSizeName,Paper> |
J2DPrinter.predefinedPaperMap |
Modifier and Type | Method and Description |
---|---|
private Paper |
J2DPrinter.addPaper(javax.print.attribute.standard.MediaSizeName media) |
Paper |
J2DPrinter.defaultPaper() |
private Paper |
J2DPrinter.getPaper(javax.print.attribute.standard.MediaSizeName m) |
(package private) Paper |
J2DPrinter.getPaperForMedia(javax.print.attribute.standard.Media media) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Paper> |
J2DPrinter.supportedPapers() |
Modifier and Type | Method and Description |
---|---|
int |
J2DPrinter.PaperComparator.compare(Paper p1,
Paper p2)
This sorts papers lexically based on name, not size.
|
private javax.print.attribute.standard.MediaSizeName |
J2DPrinter.getMediaSizeName(Paper paper) |
Rectangle2D |
J2DPrinter.printableArea(Paper paper)
For any given paper, this retrieves the hardware margins,
or a reasonable and safe guess if they aren't available.
|
Modifier and Type | Field and Description |
---|---|
static Paper |
Paper.A0
Specifies the ISO A0 size, 841 mm by 1189 mm.
|
static Paper |
Paper.A1
Specifies the ISO A1 size, 594 mm by 841 mm.
|
static Paper |
Paper.A2
Specifies the ISO A2 size, 420 mm by 594 mm.
|
static Paper |
Paper.A3
Specifies the ISO A3 size, 297 mm by 420 mm.
|
static Paper |
Paper.A4
Specifies the ISO A4 size, 210 mm by 297 mm.
|
static Paper |
Paper.A5
Specifies the ISO A5 size, 148 mm by 210 mm.
|
static Paper |
Paper.A6
Specifies the ISO A6 size, 105 mm by 148 mm.
|
static Paper |
Paper.C
Specifies the engineering C size, 17 inch by 22 inch.
|
static Paper |
Paper.DESIGNATED_LONG
Specifies the ISO Designated Long size, 110 mm by 220 mm.
|
static Paper |
Paper.EXECUTIVE
Specifies the executive size, 7.25 inches by 10.5 inches.
|
static Paper |
Paper.JAPANESE_POSTCARD
Specifies the Japanese postcard size, 100 mm by 148 mm.
|
static Paper |
Paper.JIS_B4
Specifies the JIS B4 size, 257 mm by 364 mm.
|
static Paper |
Paper.JIS_B5
Specifies the JIS B5 size, 182 mm by 257 mm.
|
static Paper |
Paper.JIS_B6
Specifies the JIS B6 size, 128 mm by 182 mm.
|
static Paper |
Paper.LEGAL
Specifies the North American legal size, 8.5 inches by 14 inches.
|
static Paper |
Paper.MONARCH_ENVELOPE
Specifies the Monarch envelope size, 3.87 inch by 7.5 inch.
|
static Paper |
Paper.NA_8X10
Specifies the North American 8 inch by 10 inch paper.
|
static Paper |
Paper.NA_LETTER
Specifies the North American letter size, 8.5 inches by 11 inches
|
static Paper |
Paper.NA_NUMBER_10_ENVELOPE
Specifies the North American Number 10 business envelope size,
4.125 inches by 9.5 inches.
|
private Paper |
PageLayout.paper |
static Paper |
Paper.TABLOID
Specifies the tabloid size, 11 inches by 17 inches.
|
Modifier and Type | Method and Description |
---|---|
Paper |
PrinterAttributes.getDefaultPaper()
Return the default paper size used on this printer.
|
Paper |
PageLayout.getPaper()
The paper used.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Paper> |
PrinterAttributes.getSupportedPapers()
Returns an unmodifiable set of the supported paper sizes
for this printer.
|
Modifier and Type | Method and Description |
---|---|
PageLayout |
Printer.createPageLayout(Paper paper,
PageOrientation orient,
double lMargin,
double rMargin,
double tMargin,
double bMargin)
Obtain a new PageLayout for this printer using the specified
parameters.
|
PageLayout |
Printer.createPageLayout(Paper paper,
PageOrientation orient,
Printer.MarginType mType)
Obtain a new PageLayout instance for this printer using the specified
parameters.
|
Constructor and Description |
---|
PageLayout(Paper paper,
PageOrientation orient)
Create a PageLayout using the specified Paper size and orientation.
|
PageLayout(Paper paper,
PageOrientation orient,
double leftMargin,
double rightMargin,
double topMargin,
double bottomMargin)
Note that the margins are to be specified as applying after
the rotation due to the orientation.
|