org.rosuda.deducer.widgets
Class RDialogMonitor

java.lang.Object
  extended by org.rosuda.deducer.widgets.RDialogMonitor

public class RDialogMonitor
extends java.lang.Object

Calls an R function at periodic intervals while the dialog is active. Designed to work with RDialog (started with RDialog.run(). If it is used with other dialogs, it assumes that if the dialog is visible that the REPL is blocked. Otherwise this will cause problems on non-JGR consoles because R is not thread safe.

Author:
Ian

Constructor Summary
RDialogMonitor(java.awt.Dialog d)
           
RDialogMonitor(java.awt.Dialog d, int monitorRateMS)
           
 
Method Summary
 REXPReference getFunction()
          get callback function
 void setFunction(REXPReference function)
          Set callback function
 void start()
          Start the monitor
 void stop()
          Stop the monitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDialogMonitor

public RDialogMonitor(java.awt.Dialog d)

RDialogMonitor

public RDialogMonitor(java.awt.Dialog d,
                      int monitorRateMS)
Method Detail

getFunction

public REXPReference getFunction()
get callback function

Returns:

setFunction

public void setFunction(REXPReference function)
Set callback function

Parameters:
function - the function to call upon action. should take no parameters.

start

public void start()
Start the monitor


stop

public void stop()
Stop the monitor