Interface PrintResult

  • All Superinterfaces:
    java.awt.print.Printable, Result

    public interface PrintResult
    extends Result, java.awt.print.Printable
    A result that can be print to a printer.
    • Method Detail

      • getFlavors

        @Nonnull
        default java.util.List<ResultFlavor> getFlavors()
        Defined the types of data this Result contains.
        Specified by:
        getFlavors in interface Result
        Returns:
        the ResultFlavor of this Result.
      • updateAttributes

        void updateAttributes​(@Nonnull
                              java.awt.print.PrinterJob job,
                              @Nonnull
                              javax.print.attribute.PrintRequestAttributeSet attributes)
        Set the attributes in the given attribute set. If there more as one PrintResult then this method is call for every PrintResult with the same attribute set. This method is guaranteed to be called once before the first call to print(). It can be used as initialize.
        Parameters:
        job - the PrinterJob with the selected PrintService
        attributes - the print attributes
        Since:
        taskplanner 3.0