org.openscience.jmol.app.jmolpanel
public class AppConsole extends JmolConsole implements JmolAppConsoleInterface, EnterListener
Modifier and Type | Class and Description |
---|---|
(package private) class |
AppConsole.ConsoleDocument |
(package private) class |
AppConsole.ConsoleTextPane |
(package private) class |
AppConsole.ExecuteCommandThread |
JmolConsole.FileChecker
Modifier and Type | Field and Description |
---|---|
static String |
ALL_BUTTONS |
private JPanel |
buttonPanel |
protected Map<String,AbstractButton> |
buttons |
private JButton |
checkButton |
private JButton |
clearButton |
private JButton |
closeButton |
protected AppConsole.ConsoleTextPane |
console |
private boolean |
dontsave |
(package private) AppConsole.ExecuteCommandThread |
execThread |
private JButton |
haltButton |
private JButton |
helpButton |
(package private) boolean |
isError |
(package private) JDialog |
jcd |
private static int |
MAXUNDO |
private JButton |
redoButton |
protected JButton |
stepButton |
private JButton |
topButton |
private JButton |
undoButton |
private int |
undoPointer |
private boolean |
undoSaved |
private String[] |
undoStack |
private JButton |
varButton |
defaultMessage, editButton, externalContainer, historyButton, label1, labels, menuMap, nTab, runButton, scriptEditor, stateButton, viewer, viewerFrame
Constructor and Description |
---|
AppConsole() |
AppConsole(JmolViewer viewer,
Container externalContainer,
String enabledButtons)
general entry point
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
protected void |
clearContent(String text) |
protected String |
completeCommand(String thisCmd) |
private void |
enableButton(String name) |
void |
enterPressed() |
protected void |
execute(String strCommand) |
(package private) void |
executeCommand(String strCommand) |
(package private) void |
executeCommandAsThread(String strCommand) |
JmolAppConsoleInterface |
getAppConsole(JmolViewer viewer)
don't delete! used by Viewer after it gets the class by name
|
String |
getText() |
private void |
layoutWindow(String enabledButtons) |
void |
sendConsoleEcho(String strEcho) |
void |
sendConsoleMessage(String strStatus) |
protected JButton |
setButton(String label) |
private void |
setError(boolean TF) |
protected void |
setupLabels() |
private void |
undoClear() |
private void |
undoRedo(boolean isRedo) |
private void |
undoSave(boolean incrementPtr) |
private boolean |
undoSetEnabled() |
void |
zap() |
addWindowListener, dispose, getLabel, getPane, getScriptEditor, getWindow, notifyCallback, notifyEnabled, setCallbackFunction, setEnabled, setTitle, setVisible, updateLabels, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getScriptEditor, setVisible
public static final String ALL_BUTTONS
JDialog jcd
protected AppConsole.ConsoleTextPane console
protected JButton stepButton
protected Map<String,AbstractButton> buttons
private JButton varButton
private JButton haltButton
private JButton closeButton
private JButton clearButton
private JButton helpButton
private JButton undoButton
private JButton redoButton
private JButton checkButton
private JButton topButton
private JPanel buttonPanel
boolean isError
AppConsole.ExecuteCommandThread execThread
private static int MAXUNDO
private String[] undoStack
private int undoPointer
private boolean undoSaved
private boolean dontsave
public AppConsole(JmolViewer viewer, Container externalContainer, String enabledButtons)
viewer
- externalContainer
- a JFrame or JPanel or JDialogenabledButtons
- public AppConsole()
public JmolAppConsoleInterface getAppConsole(JmolViewer viewer)
getAppConsole
in interface JmolAppConsoleInterface
viewer
- public void sendConsoleEcho(String strEcho)
sendConsoleEcho
in interface JmolAppConsoleInterface
sendConsoleEcho
in class JmolConsole
public void sendConsoleMessage(String strStatus)
sendConsoleMessage
in interface JmolAppConsoleInterface
sendConsoleMessage
in class JmolConsole
protected JButton setButton(String label)
setButton
in class JmolConsole
protected void setupLabels()
setupLabels
in class JmolConsole
private void layoutWindow(String enabledButtons)
private void enableButton(String name)
private void setError(boolean TF)
public void enterPressed()
enterPressed
in interface EnterListener
protected void execute(String strCommand)
execute
in class JmolConsole
void executeCommandAsThread(String strCommand)
public void zap()
zap
in interface JmolAppConsoleInterface
private void undoClear()
private boolean undoSetEnabled()
private void undoRedo(boolean isRedo)
private void undoSave(boolean incrementPtr)
void executeCommand(String strCommand)
protected void clearContent(String text)
clearContent
in class JmolConsole
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class JmolConsole
protected String completeCommand(String thisCmd)
completeCommand
in class JmolConsole
public String getText()
getText
in interface JmolAppConsoleInterface
getText
in class JmolConsole