|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.plugins.Plugin org.rosuda.plugins.PluginGetTreeR
public class PluginGetTreeR
Field Summary | |
---|---|
static boolean |
initializedSuccessfully
|
static java.lang.String |
lastRbin
|
static java.lang.String |
lastRcall
|
static java.lang.String |
lastRver
|
static int |
lastTreeID
|
Fields inherited from class org.rosuda.plugins.Plugin |
---|
author, cancel, desc, err, name, PT_GenTree, type |
Constructor Summary | |
---|---|
PluginGetTreeR()
create a new instance of the plugin |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
activated if a button was pressed. |
boolean |
checkParameters()
check consistency of the parameters; for this plugin all we need is the dataset. |
boolean |
execPlugin()
executes plugin - generates a tree. |
java.lang.Object |
getParameter(java.lang.String par)
get a plugin parameter |
boolean |
initPlugin()
initialize plugin insteance |
static void |
main(java.lang.String[] args)
just a tiny test code |
boolean |
pluginDlg(java.awt.Frame f)
pop up dialog asking for variables to be used, response, library and parameters |
void |
setParameter(java.lang.String par,
java.lang.Object val)
set a plugin parameter |
Methods inherited from class org.rosuda.plugins.Plugin |
---|
donePlugin, getAuthor, getDescription, getLastError, getName, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean initializedSuccessfully
public static java.lang.String lastRbin
public static java.lang.String lastRver
public static java.lang.String lastRcall
public static int lastTreeID
Constructor Detail |
---|
public PluginGetTreeR()
Method Detail |
---|
public void setParameter(java.lang.String par, java.lang.Object val)
setParameter
in class Plugin
par
- parameter nameval
- parameter valuepublic java.lang.Object getParameter(java.lang.String par)
getParameter
in class Plugin
par
- parameter name
null
if not availiablepublic boolean initPlugin()
initPlugin
in class Plugin
true
if the initialization was successfulpublic boolean checkParameters()
checkParameters
in class Plugin
public boolean pluginDlg(java.awt.Frame f)
pluginDlg
in class Plugin
f
- parent frame
false
if the selection was invalid or user pressed cancel.
Check the boolean "cancel" variable to see if the cause was error or cancelpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public boolean execPlugin()
useRserv
is true
then an Rserv connection
is established (if not existing already due to holdConnection
). If Rserv id not availiable,
fall back to native R
execPlugin
in class Plugin
true
if everything went fine, false
otherwise.public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |