Package ca.cgjennings.apps.arkham.deck
Class MonitoredPrintable
- java.lang.Object
-
- ca.cgjennings.apps.arkham.deck.MonitoredPrintable
-
- All Implemented Interfaces:
java.awt.print.Printable
public class MonitoredPrintable extends java.lang.Object implements java.awt.print.Printable
A wrapper forPrintable
s that updates the currently displayedBusyDialog
's progress bar to reflect the currently printing page index.- Since:
- 3.0
- Author:
- Chris Jennings
-
-
Constructor Summary
Constructors Constructor Description MonitoredPrintable(java.awt.print.Printable monitoredPrintable, int totalPageCount)
Creates a new monitored printable that delegates printing to the specified Printable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex)
-
-
-
Constructor Detail
-
MonitoredPrintable
public MonitoredPrintable(java.awt.print.Printable monitoredPrintable, int totalPageCount)
Creates a new monitored printable that delegates printing to the specified Printable.- Parameters:
monitoredPrintable
- the printable that will be called to print page contenttotalPageCount
- the number of pages that will be printed
-
-