-
- All Known Implementing Classes:
PrintHelperFactoryImpl
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PrintHelperFactory
represents a factory of PrintHelper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PrintHelpercreatePrintHelper(Container container, PageTree pageTree, float userRotation, DocAttributeSet docAttributeSet, PrintRequestAttributeSet printRequestAttributeSet)Creates a newPrintHelperinstance using the specified doc and print attribute sets.default PrintHelpercreatePrintHelper(Container container, PageTree pageTree, float rotation, MediaSizeName paperSizeName, PrintQuality printQuality)Creates a newPrintHelperinstance using the specified media sized and print quality.default PrintHelpercreatePrintHelper(Container container, PageTree pageTree, int rotation)Creates a newPrintHelperinstance defaulting the paper size to Letter and the print quality to Draft.
-
-
-
Method Detail
-
createPrintHelper
PrintHelper createPrintHelper(Container container, PageTree pageTree, float userRotation, DocAttributeSet docAttributeSet, PrintRequestAttributeSet printRequestAttributeSet)
Creates a newPrintHelperinstance using the specified doc and print attribute sets. This constructor offers the most flexibility as it allows the attributes sets to be pre configured. This method should only be used by advanced users.- Parameters:
container- parent container uses to center print dialog.pageTree- document page tree.userRotation- rotation of viewdocAttributeSet- MediaSizeName constant of paper size to print to.printRequestAttributeSet- quality of the print job, draft, quality etc.
-
createPrintHelper
default PrintHelper createPrintHelper(Container container, PageTree pageTree, float rotation, MediaSizeName paperSizeName, PrintQuality printQuality)
Creates a newPrintHelperinstance using the specified media sized and print quality.- Parameters:
container- parent container uses to center print dialog.pageTree- document page tree.rotation- rotation at witch to paint document.paperSizeName- MediaSizeName constant of paper size to print to.printQuality- quality of the print job, draft, quality etc.
-
createPrintHelper
default PrintHelper createPrintHelper(Container container, PageTree pageTree, int rotation)
Creates a newPrintHelperinstance defaulting the paper size to Letter and the print quality to Draft.- Parameters:
container- parent container used to center print dialogs.pageTree- document page tree.rotation- rotation of page
-
-