|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.deducer.widgets.RDialogMonitor
public class RDialogMonitor
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.
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 |
---|
public RDialogMonitor(java.awt.Dialog d)
public RDialogMonitor(java.awt.Dialog d, int monitorRateMS)
Method Detail |
---|
public REXPReference getFunction()
public void setFunction(REXPReference function)
function
- the function to call upon action. should take no parameters.public void start()
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |