org.rosuda.JGR.toolkit
Class JavaGD

java.lang.Object
  extended by org.rosuda.javaGD.GDInterface
      extended by org.rosuda.JGR.toolkit.JavaGD
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowListener, java.util.EventListener

public class JavaGD
extends GDInterface
implements java.awt.event.ActionListener, java.awt.event.WindowListener

Implementation of JavaGD which uses TJFrame instead of Frame


Field Summary
 
Fields inherited from class org.rosuda.javaGD.GDInterface
active, c, holding, ls, open
 
Constructor Summary
JavaGD()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          actionPerformed: handle action event: menus.
 void executeDevOff()
          close the device in R associted with this instance
 void gdActivate()
          Activate device.
 void gdClose()
          Close device.
 void gdDeactivate()
          Deactivate device.
 void gdNewPage(int devNr)
          Create new page.
 void gdOpen(double w, double h)
          Open JavaGD device.
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class org.rosuda.javaGD.GDInterface
gdCircle, gdClip, gdcSetColor, gdcSetFill, gdcSetFont, gdcSetLine, gdFlush, gdHold, gdLine, gdLocator, gdMetricInfo, gdMode, gdNewPage, gdPath, gdPolygon, gdPolyline, gdRaster, gdRect, gdSize, gdStrWidth, gdText, getDeviceNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaGD

public JavaGD()
Method Detail

gdOpen

public void gdOpen(double w,
                   double h)
Open JavaGD device.

Overrides:
gdOpen in class GDInterface
Parameters:
w - width of the device
h - height of the device

gdNewPage

public void gdNewPage(int devNr)
Create new page.

Overrides:
gdNewPage in class GDInterface
Parameters:
devNr - device number assigned to this device by R

gdActivate

public void gdActivate()
Activate device.

Overrides:
gdActivate in class GDInterface

gdDeactivate

public void gdDeactivate()
Deactivate device.

Overrides:
gdDeactivate in class GDInterface

gdClose

public void gdClose()
Close device.

Overrides:
gdClose in class GDInterface

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed: handle action event: menus.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

executeDevOff

public void executeDevOff()
Description copied from class: GDInterface
close the device in R associted with this instance

Overrides:
executeDevOff in class GDInterface

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener