|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.javaGD.GDInterface org.rosuda.javaGD.JavaGD
public class JavaGD
JavaGD is an implementation of the GDInterface
protocol which displays the R graphics in an AWT window (via GDCanvas
). It can be used as an example gfor implementing custom display classes which can then be used by JavaGD. Three sample back-ends are included in the JavaGD sources: GDCanvas
(AWT), JGDPanel
(Swing) and JGDBufferedPanel
(Swing with cached update).
Field Summary | |
---|---|
java.awt.Frame |
f
frame containing the graphics canvas |
Fields inherited from class org.rosuda.javaGD.GDInterface |
---|
active, c, holding, ls, open |
Constructor Summary | |
---|---|
JavaGD()
default, public constructor - creates a new JavaGD instance. |
Method Summary | |
---|---|
void |
gdActivate()
the device became active (current) |
void |
gdClose()
close the display |
void |
gdDeactivate()
the device became inactive (i.e. another device is now current) |
void |
gdNewPage(int devNr)
create a new, blank page |
void |
gdOpen(double w,
double h)
creates a new graphics window containing a canvas |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
listener response to "Close" - effectively invokes dev.off() on the device |
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 |
---|
executeDevOff, 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 |
Field Detail |
---|
public java.awt.Frame f
Constructor Detail |
---|
public JavaGD()
gdOpen(double, double)
is called.
Method Detail |
---|
public void gdOpen(double w, double h)
gdOpen
in class GDInterface
w
- width of the canvash
- height of the canvaspublic void gdActivate()
GDInterface
gdActivate
in class GDInterface
public void gdClose()
GDInterface
gdClose
in class GDInterface
public void gdDeactivate()
GDInterface
gdDeactivate
in class GDInterface
public void gdNewPage(int devNr)
GDInterface
gdNewPage
in class GDInterface
devNr
- device number assigned to this device by Rpublic void windowClosing(java.awt.event.WindowEvent e)
dev.off()
on the device
windowClosing
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |