|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.rosuda.JGR.JGR
public class JGR
JGR, Java Gui for R JGR is just a new Gui for R http://www.r-project.org , written in
Java.
Thus it is (should) be platform-indepent. Currently we have several problems
on *nix machines.
JGR uses JRI and rJava for talking
with R, and the JavaGD- Device
all written by Simon Urbanek.
RoSuDa 2003 - 2005
Field Summary | |
---|---|
static java.lang.String[] |
arguments
arguments from command line |
static java.lang.String |
AUTHOR1
Author JGR (used for displaying the splashscreen) |
static java.lang.String |
AUTHOR2
Author JRI, rJava and JavaGD (used for displaying the splashscreen) |
static java.lang.String |
AUTHOR3
Author JGR parts since 2009 |
static java.util.Vector |
DATA
Current data-sets (data.frames, matrix, ...) |
static java.lang.String |
DEVELTIME
Develtime (used for displaying the splashscreen) |
static java.util.Vector |
FUNCTIONS
Current functions |
static java.lang.String |
INSTITUTION
Organization (used for displaying the splashscreen) |
static java.util.Vector |
KEYWORDS
Keywords for syntaxhighlighting |
static java.util.Vector |
KEYWORDS_OBJECTS
Keywords (objects) for syntaxhighlighting |
static JGRConsole |
MAINRCONSOLE
Main-console window |
static java.util.Vector |
MODELS
Current models |
static java.util.Vector |
OBJECTS
Current objects in workspace |
static java.util.Vector |
OTHERS
Current data not in DATA DATA |
static java.util.Vector |
RHISTORY
The history of current session. |
static java.lang.String |
RHOME
RHOME path of current used R |
static ConsoleSync |
rSync
ConsoleSnyc org.rosuda.JRG.toolkit.ConsoleSync |
static SplashScreen |
splash
Splashscreen |
static java.lang.String |
SPLASH
Filename of the splash-image (used for displaying the splashscreen) |
static boolean |
STARTED
Indicates wether the Rengine is up or not |
static java.lang.String |
SUBTITLE
Subtitle (used for displaying the splashscreen) |
static java.lang.String |
TITLE
Title (used for displaying the splashscreen) |
static java.lang.String |
VERSION
Version number of JGR |
static java.lang.String |
WEBSITE
Website of organization (used for displaying the splashscreen) |
Constructor Summary | |
---|---|
JGR()
Starting the JGR Application (javaside) |
Method Summary | |
---|---|
static void |
addMenu(java.lang.String name)
Add new Menu at runtime to Console. |
static void |
addMenuItem(java.lang.String menu,
java.lang.String name,
java.lang.String cmd)
Add MenuItem at runtime to ConsoleMenu. |
static void |
addMenuItem(java.lang.String menu,
java.lang.String name,
java.lang.String cmd,
boolean silent)
Add MenuItem at runtime to ConsoleMenu. |
static void |
addMenuSeparator(java.lang.String menu)
Add MenuSeparator at runtime. |
static void |
addSubMenu(java.lang.String menuName,
java.lang.String subMenuName,
java.lang.String[] labels,
java.lang.String[] cmds)
|
static REXP |
eval(java.lang.String cmd)
|
static java.lang.String |
exit()
Exits JGR, but not before asked the user if he wants to save his workspace. |
static java.lang.String[] |
getMenuItemNames(java.lang.String menuName)
|
static java.lang.String[] |
getMenuNames()
|
static REngine |
getREngine()
|
static REXP |
idleEval(java.lang.String cmd)
|
static void |
insertMenu(java.lang.String name,
int pos)
Insert new Menu at runtime to Console. |
static void |
insertMenuItem(java.lang.String menu,
java.lang.String name,
java.lang.String cmd,
boolean silent,
int pos)
Insert a MenuItem at runtime to ConsoleMenu. |
static void |
insertMenuItem(java.lang.String menu,
java.lang.String name,
java.lang.String cmd,
int pos)
Add MenuItem at runtime to ConsoleMenu. |
static void |
insertMenuSeparator(java.lang.String menu,
int pos)
insert MenuSeparator at runtime. |
static void |
insertSubMenu(java.lang.String menuName,
java.lang.String subMenuName,
int pos,
java.lang.String[] labels,
java.lang.String[] cmds)
|
static boolean |
isJGRmain()
return the value of the JGRmain flag |
static void |
main(java.lang.String[] args)
Starts JGR options: --debug: enable debug information or any other option supported by R. |
static void |
readHistory()
If there is a file named .Rhistory in the user's home path we load his commands to current history. |
static void |
refreshObjects()
|
static void |
removeMenu(int pos)
Remove a menu |
static void |
removeMenu(java.lang.String name)
Remove a menu |
static void |
removeMenuItem(java.lang.String menuName,
int pos)
remove a menu item |
static void |
removeMenuItem(java.lang.String menuName,
java.lang.String itemName)
remove a menu item |
static void |
setKeyWords(java.lang.String word)
Set keywords for highlighting. |
static void |
setKeyWords(java.lang.String[] words)
Set keywords for highlighting. |
static void |
setObjects(java.lang.String object)
Set objects for hightlighting. |
static void |
setObjects(java.lang.String[] objects)
Set objects for hightlighting. |
static void |
setREngine(REngine e)
|
static void |
setRHome(java.lang.String rhome)
Set R_HOME (in java app). |
static void |
threadedEval(java.lang.String cmd)
|
static void |
timedAssign(java.lang.String symbol,
REXP value)
|
static void |
timedAssign(java.lang.String symbol,
REXP value,
boolean ask)
|
static void |
timedAssign(java.lang.String symbol,
REXP value,
int interval,
boolean ask)
|
static REXP |
timedEval(java.lang.String cmd)
|
static REXP |
timedEval(java.lang.String cmd,
boolean ask)
|
static REXP |
timedEval(java.lang.String cmd,
int interval,
boolean ask)
|
static void |
writeHistory()
Write the commands of current session to .Rhistory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VERSION
public static final java.lang.String TITLE
public static final java.lang.String SUBTITLE
public static final java.lang.String DEVELTIME
public static final java.lang.String INSTITUTION
public static final java.lang.String AUTHOR1
public static final java.lang.String AUTHOR2
public static final java.lang.String AUTHOR3
public static final java.lang.String WEBSITE
public static final java.lang.String SPLASH
public static JGRConsole MAINRCONSOLE
public static java.util.Vector RHISTORY
public static java.lang.String RHOME
public static ConsoleSync rSync
org.rosuda.JRG.toolkit.ConsoleSync
public static java.util.Vector DATA
public static java.util.Vector MODELS
public static java.util.Vector OTHERS
DATA
public static java.util.Vector FUNCTIONS
public static java.util.Vector OBJECTS
public static java.util.Vector KEYWORDS
public static java.util.Vector KEYWORDS_OBJECTS
public static boolean STARTED
public static SplashScreen splash
public static java.lang.String[] arguments
Constructor Detail |
---|
public JGR()
Method Detail |
---|
public static REXP idleEval(java.lang.String cmd) throws REngineException, REXPMismatchException
REngineException
REXPMismatchException
public static REXP eval(java.lang.String cmd) throws REngineException, REXPMismatchException
REngineException
REXPMismatchException
public static void threadedEval(java.lang.String cmd)
public static REXP timedEval(java.lang.String cmd)
public static REXP timedEval(java.lang.String cmd, boolean ask)
public static REXP timedEval(java.lang.String cmd, int interval, boolean ask)
public static void timedAssign(java.lang.String symbol, REXP value)
public static void timedAssign(java.lang.String symbol, REXP value, boolean ask)
public static void timedAssign(java.lang.String symbol, REXP value, int interval, boolean ask)
public static REngine getREngine()
public static void setREngine(REngine e)
public static java.lang.String exit()
public static void addMenu(java.lang.String name)
name
- MenuNamepublic static void insertMenu(java.lang.String name, int pos)
name
- MenuNamepos
- position at which to insertpublic static void addMenuItem(java.lang.String menu, java.lang.String name, java.lang.String cmd, boolean silent)
menu
- MenuNamename
- ItemNamecmd
- Commandsilent
- Don't display commandpublic static void addMenuItem(java.lang.String menu, java.lang.String name, java.lang.String cmd)
menu
- MenuNamename
- ItemNamecmd
- Commandpublic static void addMenuSeparator(java.lang.String menu)
menu
- MenuNamepublic static void insertMenuSeparator(java.lang.String menu, int pos)
menu
- MenuNamepos
- indexpublic static void insertMenuItem(java.lang.String menu, java.lang.String name, java.lang.String cmd, boolean silent, int pos)
menu
- MenuNamename
- ItemNamecmd
- Commandsilent
- Don't display commandpos
- positionpublic static void insertMenuItem(java.lang.String menu, java.lang.String name, java.lang.String cmd, int pos)
menu
- MenuNamename
- ItemNamecmd
- Commandpublic static java.lang.String[] getMenuNames()
public static java.lang.String[] getMenuItemNames(java.lang.String menuName)
menuName
- menu
public static void removeMenu(int pos)
pos
- indexpublic static void removeMenu(java.lang.String name)
name
- menu to removepublic static void removeMenuItem(java.lang.String menuName, int pos)
menuName
- name of menupos
- index of itempublic static void removeMenuItem(java.lang.String menuName, java.lang.String itemName)
menuName
- name of menuitemName
- name of itempublic static void insertSubMenu(java.lang.String menuName, java.lang.String subMenuName, int pos, java.lang.String[] labels, java.lang.String[] cmds)
public static void addSubMenu(java.lang.String menuName, java.lang.String subMenuName, java.lang.String[] labels, java.lang.String[] cmds)
public static void setRHome(java.lang.String rhome)
rhome
- RHOME pathpublic static void setKeyWords(java.lang.String word)
word
- This word will be highlightedpublic static void setKeyWords(java.lang.String[] words)
words
- These words will be highlightedpublic static void setObjects(java.lang.String object)
object
- This object will be highlightedpublic static void setObjects(java.lang.String[] objects)
objects
- These words will be highlightedpublic static void readHistory()
public static void writeHistory()
public static boolean isJGRmain()
JGRmain
flag
public static void main(java.lang.String[] args)
public static void refreshObjects()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |