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 Stringprivate JPanelprivate JmolAbstractButtonprivate JmolAbstractButtonprivate JmolAbstractButtonprotected AppConsole.ConsoleTextPaneprotected AppConsole.ConsoleDocumentprivate boolean(package private) AppConsole.ExecuteCommandThreadprivate JmolAbstractButtonprivate intprivate JmolAbstractButtonprotected JScrollBarprivate JmolAbstractButton(package private) booleanprivate static intprivate booleanprivate JmolAbstractButtonprivate JmolStatusListenerprivate JmolAbstractButtonprivate JmolAbstractButton(package private) static final int(package private) static final int(package private) static final intprivate JmolAbstractButtonprivate intprivate booleanprivate String[]private JmolAbstractButtonprotected JScrollBarFields inherited from class org.jmol.console.JmolConsole
externalContainer, scriptEditor, vwrFrameFields 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 TypeMethodDescriptionvoidintprotected voidclearContent(String text) private voidenableButton(String name) voidprotected void(package private) voidexecuteCommand(String strCommand) (package private) voidexecuteCommandAsThread(String strCommand) getText()protected voidlayoutWindow(String enabledButtons) voidloadContent(String script) voidprotected voidrecallCommand(boolean up, boolean pageup) Recall command history.voidsendConsoleEcho(String strEcho) voidsendConsoleMessage(String strStatus) protected JmolAbstractButtonprivate static voidsetEnabled(JmolAbstractButton button, boolean TF) private voidsetError(boolean TF) voidsetStatusListener(JmolStatusListener myStatusListener) private voidprotected voidsetupLabels0(Map<String, String> labels) voidprivate voidprivate voidundoRedo(boolean isRedo) private voidundoSave(boolean incrementPtr) private booleanvoidMethods inherited from class org.jmol.console.JmolConsole
addWindowListener, dispose, getPane, getScriptEditor, isMenuItem, newJMenu, newJMenuItem, nextFileName, setTitle, setVisible, updateLabels, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpenedMethods 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:
loadContentin interfaceJmolDropEditor
-
loadFile
- Specified by:
loadFilein interfaceJmolDropEditor
-
start
- Specified by:
startin interfaceJmolAppConsoleInterface
-
setup
-
updateFontSize
public void updateFontSize()- Overrides:
updateFontSizein classJmolConsole
-
sendConsoleEcho
- Specified by:
sendConsoleEchoin interfaceJmolAppConsoleInterface- Overrides:
sendConsoleEchoin classGenericConsole
-
sendConsoleMessage
- Specified by:
sendConsoleMessagein interfaceJmolAppConsoleInterface- Overrides:
sendConsoleMessagein classGenericConsole
-
setButton
- Overrides:
setButtonin classJmolConsole
-
setupLabels0
- Overrides:
setupLabels0in classGenericConsole
-
layoutWindow
- Specified by:
layoutWindowin classGenericConsole
-
setEnabled
-
enableButton
-
setError
private void setError(boolean TF) -
enterPressed
public void enterPressed()- Specified by:
enterPressedin interfaceEnterListener
-
execute
- Overrides:
executein 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:
clearContentin classGenericConsole
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classJmolConsole
-
updateFont
private boolean updateFont() -
recallCommand
protected void recallCommand(boolean up, boolean pageup) Recall command history.- Overrides:
recallCommandin classGenericConsole- Parameters:
up- - history up or downpageup- TODO
-
getText
- Specified by:
getTextin interfaceJmolAppConsoleInterface- Overrides:
getTextin classGenericConsole
-
setStatusListener
-