org.jmol.console
public class AppletConsole extends JmolConsole implements JmolAppConsoleInterface
Modifier and Type | Class and Description |
---|---|
(package private) class |
AppletConsole.ControlEnterTextArea |
JmolConsole.FileChecker
Modifier and Type | Field and Description |
---|---|
private SimpleAttributeSet |
attributesCommand |
private JButton |
clearInButton |
private JButton |
clearOutButton |
protected JTextArea |
input |
private JButton |
loadButton |
private JTextPane |
output |
private Document |
outputDocument |
defaultMessage, editButton, externalContainer, historyButton, label1, labels, menuMap, nTab, runButton, scriptEditor, stateButton, viewer, viewerFrame
Modifier | Constructor and Description |
---|---|
|
AppletConsole() |
private |
AppletConsole(JmolViewer viewer,
Container externalContainer)
general entry point
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
private void |
addHelpItems(JMenu m0,
String key,
String attr) |
protected void |
addHelpMenuBar(JMenuBar menuBar) |
protected void |
clearContent(String text) |
protected String |
completeCommand(String thisCmd) |
protected JMenuBar |
createMenubar() |
protected JMenuItem |
createMenuItem(String cmd) |
protected void |
execute(String strCommand) |
JmolAppConsoleInterface |
getAppConsole(JmolViewer viewer)
don't delete! used by Viewer after it gets the class by name
|
String |
getText() |
private void |
layoutWindow() |
private void |
output(String message) |
private void |
output(String message,
AttributeSet att) |
void |
sendConsoleEcho(String strEcho) |
void |
sendConsoleMessage(String strInfo) |
private void |
setLabels() |
private void |
setupInput() |
protected void |
setupLabels() |
private void |
setupOutput() |
void |
setVisible(boolean visible) |
void |
zap() |
addWindowListener, dispose, getLabel, getPane, getScriptEditor, getWindow, notifyCallback, notifyEnabled, setButton, setCallbackFunction, setEnabled, setScriptEditor, setTitle, updateLabels, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getScriptEditor
protected final JTextArea input
private JButton clearOutButton
private JButton clearInButton
private JButton loadButton
private final JTextPane output
private final Document outputDocument
private final SimpleAttributeSet attributesCommand
private AppletConsole(JmolViewer viewer, Container externalContainer)
viewer
- externalContainer
- a JFrame or JPanel or nullpublic AppletConsole()
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 strInfo)
sendConsoleMessage
in interface JmolAppConsoleInterface
sendConsoleMessage
in class JmolConsole
public void zap()
zap
in interface JmolAppConsoleInterface
private void layoutWindow()
private void setLabels()
protected void setupLabels()
setupLabels
in class JmolConsole
protected JMenuBar createMenubar()
protected void addHelpMenuBar(JMenuBar menuBar)
private void setupInput()
private void setupOutput()
public void setVisible(boolean visible)
setVisible
in interface JmolAppConsoleInterface
setVisible
in class JmolConsole
private void output(String message)
public String getText()
getText
in interface JmolAppConsoleInterface
getText
in class JmolConsole
private void output(String message, AttributeSet att)
protected void clearContent(String text)
clearContent
in class JmolConsole
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
actionPerformed
in class JmolConsole
protected void execute(String strCommand)
execute
in class JmolConsole
protected String completeCommand(String thisCmd)
completeCommand
in class JmolConsole