com.sun.electric.tool.user.ui
Class ElectricPrinter

java.lang.Object
  extended by 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.


Field Summary
 
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
 
Constructor Summary
ElectricPrinter(WindowContent context, java.awt.print.PageFormat pageFormat, java.awt.print.PrinterJob printJob)
           
 
Method Summary
 java.awt.image.BufferedImage getBufferedImage()
           
 int getDesiredDPI()
           
 java.awt.Graphics getGraphics()
           
 java.awt.Dimension getOldSize()
           
 java.awt.print.PageFormat getPageFormat()
           
 java.awt.print.PrinterJob getPrintJob()
           
 java.awt.geom.Rectangle2D getRenderArea()
           
 boolean imageUpdate(java.awt.Image img, int infoflags, int x, int y, int width, int height)
          This function is required for 3D view
 int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int page)
           
 void setBufferedImage(java.awt.image.BufferedImage img)
           
 void setOldSize(java.awt.Dimension oldSize)
           
 void setRenderArea(java.awt.geom.Rectangle2D rect)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElectricPrinter

public ElectricPrinter(WindowContent context,
                       java.awt.print.PageFormat pageFormat,
                       java.awt.print.PrinterJob printJob)
Method Detail

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