com.sun.electric.tool.user.ui
Class ElectricPrinter
java.lang.Object
com.sun.electric.tool.user.ui.ElectricPrinter
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.print.Printable
public class ElectricPrinter
- extends java.lang.Object
- implements java.awt.print.Printable, java.awt.image.ImageObserver
Class to define a printer interface.
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElectricPrinter
public ElectricPrinter(WindowContent context,
java.awt.print.PageFormat pageFormat,
java.awt.print.PrinterJob printJob)
getBufferedImage
public java.awt.image.BufferedImage getBufferedImage()
setBufferedImage
public void setBufferedImage(java.awt.image.BufferedImage img)
getGraphics
public java.awt.Graphics getGraphics()
getPageFormat
public java.awt.print.PageFormat getPageFormat()
getPrintJob
public java.awt.print.PrinterJob getPrintJob()
getDesiredDPI
public int getDesiredDPI()
setOldSize
public void setOldSize(java.awt.Dimension oldSize)
getOldSize
public java.awt.Dimension getOldSize()
setRenderArea
public void setRenderArea(java.awt.geom.Rectangle2D rect)
getRenderArea
public java.awt.geom.Rectangle2D getRenderArea()
print
public int print(java.awt.Graphics g,
java.awt.print.PageFormat pf,
int page)
throws java.awt.print.PrinterException
- Specified by:
print
in interface java.awt.print.Printable
- Throws:
java.awt.print.PrinterException
imageUpdate
public boolean imageUpdate(java.awt.Image img,
int infoflags,
int x,
int y,
int width,
int height)
- This function is required for 3D view
- Specified by:
imageUpdate
in interface java.awt.image.ImageObserver