Interface PrintHelperFactory

  • 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 Detail

      • createPrintHelper

        PrintHelper createPrintHelper​(Container container,
                                      PageTree pageTree,
                                      float userRotation,
                                      DocAttributeSet docAttributeSet,
                                      PrintRequestAttributeSet printRequestAttributeSet)
        Creates a new PrintHelper instance 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 view
        docAttributeSet - 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 new PrintHelper instance 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 new PrintHelper instance 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