org.freehep.postscript.device
Class ImageDevice

java.lang.Object
  extended by org.freehep.postscript.types.PSDevice
      extended by org.freehep.postscript.device.ImageDevice
All Implemented Interfaces:
DSCEventListener

public class ImageDevice
extends PSDevice

Author:
Mark Donszelmann (Mark.Donszelmann@gmail.com)

Constructor Summary
ImageDevice(Container container, int width, int height)
           
ImageDevice(int width, int height)
           
 
Method Summary
 ImageDevice createImageDevice(int width, int height)
           
 Graphics getDeviceGraphics()
           
 AffineTransform getDeviceTransform()
           
 Graphics2D getGraphics()
           
 double getHeight()
           
 BufferedImage getImage()
           
 double getWidth()
           
 void refresh()
           
 
Methods inherited from class org.freehep.postscript.types.PSDevice
addComponentRefreshListener, dscCommentFound, erasePage, fireComponentRefreshed, getBoundingBoxTransform, getMirrorTransform, getTransform, removeComponentRefreshListener, setTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageDevice

public ImageDevice(int width,
                   int height)

ImageDevice

public ImageDevice(Container container,
                   int width,
                   int height)
Method Detail

getDeviceGraphics

public Graphics getDeviceGraphics()
Specified by:
getDeviceGraphics in class PSDevice

getDeviceTransform

public AffineTransform getDeviceTransform()
Specified by:
getDeviceTransform in class PSDevice

getHeight

public double getHeight()
Specified by:
getHeight in class PSDevice

getWidth

public double getWidth()
Specified by:
getWidth in class PSDevice

refresh

public void refresh()
Specified by:
refresh in class PSDevice

getGraphics

public Graphics2D getGraphics()
Overrides:
getGraphics in class PSDevice

createImageDevice

public ImageDevice createImageDevice(int width,
                                     int height)
Specified by:
createImageDevice in class PSDevice

getImage

public BufferedImage getImage()
Returns:


Copyright © 2001-2009 FreeHEP. All Rights Reserved.