Interface PrintResult
A result that can be print to a printer.
-
Field Summary
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nonnull List<ResultFlavor>
Defined the types of data this Result contains.void
updateAttributes
(@Nonnull PrinterJob job, @Nonnull PrintRequestAttributeSet attributes) Set the attributes in the given attribute set.Methods inherited from interface com.inet.taskplanner.server.api.result.Result
cleanup, supportsFlavor, supportsOneFlavorOf
-
Method Details
-
getFlavors
Defined the types of data this Result contains.- Specified by:
getFlavors
in interfaceResult
- Returns:
- the
ResultFlavor
of this Result.
-
updateAttributes
void updateAttributes(@Nonnull @Nonnull PrinterJob job, @Nonnull @Nonnull 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 PrintServiceattributes
- the print attributes- Since:
- taskplanner 3.0
-