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, yDPI
globalFontManager, 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, setImageDPI
cancel, getCompatibleImagePoints, getCurrentPrintingHandle, getDPI, getPointDocument, getPrintTask, isPrinting, lockIfNotPrinting, print, print, printerWasSelected, printingComplete, setPrinterProperties
public 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)
Printer
ws
- The parent WindowSurface - which can be null.protected OutputStream getSavedOutputStream() throws IOException
IOException
protected boolean startPrinting(Handle h, String documentName)
startPrinting
in class PrinterJobObject
protected boolean endPrinting(Handle h)
endPrinting
in class PrinterJobObject
protected boolean printFinalImage(Handle h, ImageData im)
printFinalImage
in class PrintToImages