Class AppConsole
java.lang.Object
org.jmol.console.GenericConsole
org.jmol.console.JmolConsole
org.openscience.jmol.app.jmolpanel.console.AppConsole
- All Implemented Interfaces:
ActionListener
,WindowListener
,EventListener
,JmolAppConsoleInterface
,JmolCallbackListener
,JmolDropEditor
,EnterListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class
(package private) class
(package private) class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
private JPanel
private JmolAbstractButton
private JmolAbstractButton
private JmolAbstractButton
protected AppConsole.ConsoleTextPane
protected AppConsole.ConsoleDocument
private boolean
(package private) AppConsole.ExecuteCommandThread
private JmolAbstractButton
private int
private JmolAbstractButton
protected JScrollBar
private JmolAbstractButton
(package private) boolean
private static int
private boolean
private JmolAbstractButton
private JmolStatusListener
private JmolAbstractButton
private JmolAbstractButton
(package private) static final int
(package private) static final int
(package private) static final int
private JmolAbstractButton
private int
private boolean
private String[]
private JmolAbstractButton
protected JScrollBar
Fields inherited from class org.jmol.console.JmolConsole
externalContainer, scriptEditor, vwrFrame
Fields inherited from class org.jmol.console.GenericConsole
clearInButton, clearOutButton, defaultMessage, editButton, historyButton, input, label1, labels, loadButton, menuMap, nTab, output, runButton, stateButton, vwr
-
Constructor Summary
ConstructorsConstructorDescriptionAppConsole
(JmolViewer vwr, Container externalContainer, String enabledButtons) general entry point -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
protected void
clearContent
(String text) private void
enableButton
(String name) void
protected void
(package private) void
executeCommand
(String strCommand) (package private) void
executeCommandAsThread
(String strCommand) getText()
protected void
layoutWindow
(String enabledButtons) void
loadContent
(String script) void
protected void
recallCommand
(boolean up, boolean pageup) Recall command history.void
sendConsoleEcho
(String strEcho) void
sendConsoleMessage
(String strStatus) protected JmolAbstractButton
private static void
setEnabled
(JmolAbstractButton button, boolean TF) private void
setError
(boolean TF) void
setStatusListener
(JmolStatusListener myStatusListener) private void
protected void
setupLabels0
(Map<String, String> labels) void
private void
private void
undoRedo
(boolean isRedo) private void
undoSave
(boolean incrementPtr) private boolean
void
Methods inherited from class org.jmol.console.JmolConsole
addWindowListener, dispose, getPane, getScriptEditor, isMenuItem, newJMenu, newJMenuItem, nextFileName, setTitle, setVisible, updateLabels, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
Methods inherited from class org.jmol.console.GenericConsole
addButton, completeCommand, destroyConsole, displayConsole, doAction, getLabel, getLabel1, getLabelWithoutMnemonic, map, notifyCallback, notifyEnabled, processKey, setAbstractButtonLabels, setCallbackFunction, setLabels, setupLabels, setViewer, trimGUI, zap
-
Field Details
-
ALL_BUTTONS
- See Also:
-
jcd
-
console
-
consoleDoc
-
varButton
-
haltButton
-
closeButton
-
clearButton
-
stepButton
-
helpButton
-
undoButton
-
redoButton
-
checkButton
-
topButton
-
fontButton
-
buttonPanel
-
vBar
-
hBar
-
fontSize
private int fontSize -
noPrefs
private boolean noPrefs -
isError
boolean isError -
execThread
AppConsole.ExecuteCommandThread execThread -
MAXUNDO
private static int MAXUNDO -
undoStack
-
undoPointer
private int undoPointer -
undoSaved
private boolean undoSaved -
UNDO_NONE
static final int UNDO_NONE- See Also:
-
UNDO_CONSOLE
static final int UNDO_CONSOLE- See Also:
-
UNDO_USER
static final int UNDO_USER- See Also:
-
dontsave
private boolean dontsave -
statusListener
-
-
Constructor Details
-
AppConsole
public AppConsole() -
AppConsole
general entry point- Parameters:
vwr
-externalContainer
- a JFrame or JPanel or JDialogenabledButtons
-
-
-
Method Details
-
loadContent
- Specified by:
loadContent
in interfaceJmolDropEditor
-
loadFile
- Specified by:
loadFile
in interfaceJmolDropEditor
-
start
- Specified by:
start
in interfaceJmolAppConsoleInterface
-
setup
-
updateFontSize
public void updateFontSize()- Overrides:
updateFontSize
in classJmolConsole
-
sendConsoleEcho
- Specified by:
sendConsoleEcho
in interfaceJmolAppConsoleInterface
- Overrides:
sendConsoleEcho
in classGenericConsole
-
sendConsoleMessage
- Specified by:
sendConsoleMessage
in interfaceJmolAppConsoleInterface
- Overrides:
sendConsoleMessage
in classGenericConsole
-
setButton
- Overrides:
setButton
in classJmolConsole
-
setupLabels0
- Overrides:
setupLabels0
in classGenericConsole
-
layoutWindow
- Specified by:
layoutWindow
in classGenericConsole
-
setEnabled
-
enableButton
-
setError
private void setError(boolean TF) -
enterPressed
public void enterPressed()- Specified by:
enterPressed
in interfaceEnterListener
-
execute
- Overrides:
execute
in classGenericConsole
-
executeCommandAsThread
-
undoClear
private void undoClear() -
checkUndoEnabled
public int checkUndoEnabled() -
undoRedo
private void undoRedo(boolean isRedo) -
undoSave
private void undoSave(boolean incrementPtr) -
executeCommand
-
clearContent
- Overrides:
clearContent
in classGenericConsole
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
- Overrides:
actionPerformed
in classJmolConsole
-
updateFont
private boolean updateFont() -
recallCommand
protected void recallCommand(boolean up, boolean pageup) Recall command history.- Overrides:
recallCommand
in classGenericConsole
- Parameters:
up
- - history up or downpageup
- TODO
-
getText
- Specified by:
getText
in interfaceJmolAppConsoleInterface
- Overrides:
getText
in classGenericConsole
-
setStatusListener
-