|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
adams.gui.core.BasePanel
adams.gui.tools.RConsolePanel
public class RConsolePanel
Acts as an interface with the R shell.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected RConsoleFilter |
m_Filter
|
protected RConsoleKeyListener |
m_Listener
|
protected BaseTextArea |
m_TextArea
|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
RConsolePanel()
|
|
| Method Summary | |
|---|---|
protected void |
initGUI()
Initializes the GUI. |
void |
moveCursor(int location)
Moves the caret to the specified location. |
void |
rBusy(org.rosuda.JRI.Rengine re,
int which)
Called by the REngine to let the user know when R is busy. |
String |
rChooseFile(org.rosuda.JRI.Rengine re,
int newFile)
Called by the REngine when R wants the user to choose a file. |
void |
rFlushConsole(org.rosuda.JRI.Rengine re)
Called by the REngine when R requests the console to flush any buffered output. |
void |
rLoadHistory(org.rosuda.JRI.Rengine re,
String filename)
Called by the REngine to load the contents of the history. |
String |
rReadConsole(org.rosuda.JRI.Rengine re,
String prompt,
int addToHistory)
Called by REngine to read a line of input from the user. |
void |
rSaveHistory(org.rosuda.JRI.Rengine re,
String filename)
Called by the REngine to save the contents of the history. |
void |
rShowMessage(org.rosuda.JRI.Rengine re,
String message)
Called by the REngine when R wants to show a warning/error message to the user. |
void |
rWriteConsole(org.rosuda.JRI.Rengine re,
String text,
int oType)
Called by REngine to write some text to the console. |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, finishInit, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, initialize, main, setParentTitle, setVisible |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected BaseTextArea m_TextArea
protected RConsoleFilter m_Filter
protected RConsoleKeyListener m_Listener
| Constructor Detail |
|---|
public RConsolePanel()
| Method Detail |
|---|
protected void initGUI()
initGUI in class BasePanelpublic void moveCursor(int location)
location - a position in the sequence of characters
public void rWriteConsole(org.rosuda.JRI.Rengine re,
String text,
int oType)
rWriteConsole in interface org.rosuda.JRI.RMainLoopCallbacksre - the calling enginetext - string to be output to the consoleoType - output type (0=regular, 1=error/warning)
public String rReadConsole(org.rosuda.JRI.Rengine re,
String prompt,
int addToHistory)
rReadConsole in interface org.rosuda.JRI.RMainLoopCallbacksre - the calling engineprompt - the prompt to be shown to the user before taking inputaddToHistory - flag telling the handler whether the input should be considered
for adding to history
public void rBusy(org.rosuda.JRI.Rengine re,
int which)
rBusy in interface org.rosuda.JRI.RMainLoopCallbacksre - the calling enginewhich - identifies whether R enters (1) or exits (0) the busy state
public void rShowMessage(org.rosuda.JRI.Rengine re,
String message)
rShowMessage in interface org.rosuda.JRI.RMainLoopCallbacksre - the calling enginemessage - the message
public String rChooseFile(org.rosuda.JRI.Rengine re,
int newFile)
rChooseFile in interface org.rosuda.JRI.RMainLoopCallbacksre - the calling enginenewFile - flag determining whether a new or existing file is to be selected
public void rFlushConsole(org.rosuda.JRI.Rengine re)
rFlushConsole in interface org.rosuda.JRI.RMainLoopCallbacksre - the calling engine
public void rSaveHistory(org.rosuda.JRI.Rengine re,
String filename)
rSaveHistory in interface org.rosuda.JRI.RMainLoopCallbacksre - the calling enginefilename - name of the history file
public void rLoadHistory(org.rosuda.JRI.Rengine re,
String filename)
rLoadHistory in interface org.rosuda.JRI.RMainLoopCallbacksre - the calling enginefilename - name of the history file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||