public class JythonShell extends InteractiveShell
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_JYTHON_SHELL_HISTORY
property that holds the history
|
commandArea, commandFld, contents, editorPane, frame, history, historyIdx, sb
Constructor and Description |
---|
JythonShell(IntegratedDataViewer theIdv)
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear everything, gui and make new interp
|
protected javax.swing.JMenuBar |
doMakeMenuBar()
Make menu bar
|
void |
eval(java.lang.String jython)
eval
|
void |
exportHistory()
Take all of the commands and write them to the library
|
protected java.lang.String |
formatCode(java.lang.String code)
Format code to output
|
boolean |
getAutoSelect()
Get the AutoSelect property.
|
protected java.util.List |
getDataMenuItems()
_more_
|
protected java.util.List |
getDisplayMenuItems()
get menu items
|
protected void |
handleKeyPress(java.awt.event.KeyEvent e,
javax.swing.text.JTextComponent cmdFld)
handle event
|
protected void |
handleRightMouseClick(javax.swing.text.JTextComponent commandFld,
java.awt.event.MouseEvent e)
handle event
|
void |
insertAction(java.lang.String action)
Add the idv action
|
void |
listHistory()
print the history
|
void |
listVars()
List the variables in the interpreter
|
protected void |
makeFrame()
This gets called by the base class to make the frame.
|
void |
printType(visad.Data d)
print type
|
void |
saveHistory()
write the hostory
|
void |
setAutoSelect(boolean value)
Set the AutoSelect property.
|
void |
showHelp()
show help
|
void |
showProcedurePopup(javax.swing.text.JTextComponent cmdFld)
popup menu
|
clearOutput, close, doMakeContents, endBufferingOutput, eval, flipField, getHref, hyperlinkUpdate, init, insert, insertText, output, setText, show, showNormalCursor, showWaitCursor, startBufferingOutput, toFront
public static final java.lang.String PROP_JYTHON_SHELL_HISTORY
public JythonShell(IntegratedDataViewer theIdv)
theIdv
- idvpublic void listHistory()
public void saveHistory()
protected void makeFrame()
makeFrame
in class InteractiveShell
public void showProcedurePopup(javax.swing.text.JTextComponent cmdFld)
cmdFld
- fieldpublic void listVars()
public void insertAction(java.lang.String action)
action
- actionprotected void handleKeyPress(java.awt.event.KeyEvent e, javax.swing.text.JTextComponent cmdFld)
handleKeyPress
in class InteractiveShell
e
- eventcmdFld
- fieldpublic void showHelp()
public void exportHistory()
public void clear()
clear
in class InteractiveShell
protected javax.swing.JMenuBar doMakeMenuBar()
doMakeMenuBar
in class InteractiveShell
protected java.util.List getDisplayMenuItems()
protected java.util.List getDataMenuItems()
protected void handleRightMouseClick(javax.swing.text.JTextComponent commandFld, java.awt.event.MouseEvent e)
handleRightMouseClick
in class InteractiveShell
commandFld
- fielde
- eventprotected java.lang.String formatCode(java.lang.String code)
formatCode
in class InteractiveShell
code
- codepublic void eval(java.lang.String jython)
eval
in class InteractiveShell
jython
- jythonpublic void printType(visad.Data d)
d
- datapublic void setAutoSelect(boolean value)
value
- The new value for AutoSelectpublic boolean getAutoSelect()