public class PrintPreview extends PrintToImages
| Modifier and Type | Field and Description |
|---|---|
protected ZipOutputStream |
out |
File |
outputFile |
boolean |
previewToFile |
File |
tempDir |
createImageOptions, drawXDPI, drawYDPI, finalImageCreator, pageRectImageCreator, pageSize, printing, scaleRough, xDPI, yDPIglobalFontManager, outputCanChangeMediaOrientation, printerControl, printerSelected| Constructor and Description |
|---|
PrintPreview() |
PrintPreview(PageFormat standardPage) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
endPrinting(Handle h) |
Vector |
getImages(Handle fromPrint) |
protected OutputStream |
getSavedOutputStream() |
Handle |
printDialog(WindowSurface ws)
This displays the printer select/setup dialog box, which may be a native OS
dialog box.
|
protected boolean |
printFinalImage(Handle h,
ImageData im) |
void |
setSavedOutputFile(File outputFile) |
protected boolean |
startPrinting(Handle h,
String documentName) |
cancelCurrentPage, getOutputXDPI, getOutputYDPI, newPage, printCurrentPage, setDrawDPI, setDrawDPI, setImageDPI, setImageDPIcancel, getCompatibleImagePoints, getCurrentPrintingHandle, getDPI, getPointDocument, getPrintTask, isPrinting, lockIfNotPrinting, print, print, printerWasSelected, printingComplete, setPrinterPropertiespublic boolean previewToFile
public File outputFile
public File tempDir
protected ZipOutputStream out
public PrintPreview()
public PrintPreview(PageFormat standardPage)
public void setSavedOutputFile(File outputFile)
public Handle printDialog(WindowSurface ws)
Printerws - The parent WindowSurface - which can be null.protected OutputStream getSavedOutputStream() throws IOException
IOExceptionprotected boolean startPrinting(Handle h, String documentName)
startPrinting in class PrinterJobObjectprotected boolean endPrinting(Handle h)
endPrinting in class PrinterJobObjectprotected boolean printFinalImage(Handle h, ImageData im)
printFinalImage in class PrintToImages