FreeHEP API
Version current

org.freehep.postscript
Class PanelDevice

java.lang.Object
  extended byorg.freehep.postscript.PSDevice
      extended byorg.freehep.postscript.PanelDevice
All Implemented Interfaces:
DSCEventListener

public class PanelDevice
extends PSDevice

Version:
$Id: PanelDevice.java,v 1.1 2004/01/12 20:19:16 duns Exp $
Author:
Mark Donszelmann
Source Code:
PanelDevice.java

Constructor Summary
PanelDevice(JPanel panel)
           
 
Method Summary
 BufferedImage convertToImage(int width, int height)
           
 Graphics getDeviceGraphics()
           
 AffineTransform getDeviceTransform()
           
 Graphics2D getGraphics()
           
 double getHeight()
           
 double getWidth()
           
 void refresh()
           
 
Methods inherited from class org.freehep.postscript.PSDevice
addComponentListener, dscCommentFound, erasePage, fireComponentResizedEvent, getBoundingBoxTransform, getMirrorTransform, getTransform, removeComponentListener, setTransform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanelDevice

public PanelDevice(JPanel panel)
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

getGraphics

public Graphics2D getGraphics()
Overrides:
getGraphics in class PSDevice

refresh

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

convertToImage

public BufferedImage convertToImage(int width,
                                    int height)
Specified by:
convertToImage in class PSDevice

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.