public abstract class PrintToImages extends PrinterJobObject
| Modifier and Type | Field and Description |
|---|---|
int |
createImageOptions
The options used when images are being created for the
PrintPreview.
|
protected double |
drawXDPI |
protected double |
drawYDPI |
ImageTool |
finalImageCreator |
ImageTool |
pageRectImageCreator |
PageFormat |
pageSize |
protected Printable |
printing |
boolean |
scaleRough
If this is set true, then rough scaling is done when producing the
final images for output.
|
protected double |
xDPI |
protected double |
yDPI |
globalFontManager, outputCanChangeMediaOrientation, printerControl, printerSelected| Modifier | Constructor and Description |
|---|---|
protected |
PrintToImages() |
protected |
PrintToImages(PageFormat standardPage) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancelCurrentPage(Handle h) |
double |
getOutputXDPI()
By default this will return the xDPI value of the PageFormat supplied to the
PrintSurfaceObject.
|
double |
getOutputYDPI()
By default this will return the yDPI value of the PageFormat supplied to the
PrintSurfaceObject.
|
protected PointGraphics |
newPage(Handle h,
PageFormat format) |
protected boolean |
printCurrentPage(Handle h) |
protected abstract boolean |
printFinalImage(Handle h,
ImageData im) |
void |
setDrawDPI(double dpi) |
void |
setDrawDPI(double xDPI,
double yDPI) |
void |
setImageDPI(double imageDPI) |
void |
setImageDPI(double xDPI,
double yDPI) |
cancel, endPrinting, getCompatibleImagePoints, getCurrentPrintingHandle, getDPI, getPointDocument, getPrintTask, isPrinting, lockIfNotPrinting, print, print, printerWasSelected, printingComplete, setPrinterProperties, startPrintingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprintDialogpublic PageFormat pageSize
protected double xDPI
protected double yDPI
protected double drawXDPI
protected double drawYDPI
public ImageTool finalImageCreator
public ImageTool pageRectImageCreator
public int createImageOptions
By default this field is Image.TYPE_RGB
public boolean scaleRough
protected Printable printing
protected PrintToImages()
protected PrintToImages(PageFormat standardPage)
public void setDrawDPI(double xDPI,
double yDPI)
public void setDrawDPI(double dpi)
public void setImageDPI(double xDPI,
double yDPI)
public void setImageDPI(double imageDPI)
public double getOutputXDPI()
public double getOutputYDPI()
protected PointGraphics newPage(Handle h, PageFormat format)
newPage in class PrinterJobObjectprotected boolean printCurrentPage(Handle h)
printCurrentPage in class PrinterJobObjectprotected void cancelCurrentPage(Handle h)
cancelCurrentPage in class PrinterJobObject