org.freehep.postscript.device
Class VirtualDevice

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

public class VirtualDevice
extends PSDevice


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

Constructor Detail

VirtualDevice

public VirtualDevice(Graphics2D graphics,
                     Dimension dimension)
Method Detail

getWidth

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

getHeight

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

getDeviceTransform

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

getDeviceGraphics

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

refresh

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

createImageDevice

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


Copyright © 2001-2009 FreeHEP. All Rights Reserved.