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 javax.swing.text.SimpleAttributeSet |
attributesCommand |
private javax.swing.JButton |
clearInButton |
private javax.swing.JButton |
clearOutButton |
protected javax.swing.JTextArea |
input |
private javax.swing.JButton |
loadButton |
private javax.swing.JTextPane |
output |
private javax.swing.text.Document |
outputDocument |
defaultMessage, editButton, externalContainer, historyButton, label1, labels, menuMap, nTab, runButton, scriptEditor, stateButton, viewer, viewerFrame
Modifier | Constructor and Description |
---|---|
|
AppletConsole() |
private |
AppletConsole(JmolViewer viewer,
java.awt.Container externalContainer)
general entry point
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private void |
addHelpItems(javax.swing.JMenu m0,
java.lang.String key,
java.lang.String attr) |
protected void |
addHelpMenuBar(javax.swing.JMenuBar menuBar) |
protected void |
clearContent(java.lang.String text) |
protected java.lang.String |
completeCommand(java.lang.String thisCmd) |
protected javax.swing.JMenuBar |
createMenubar() |
protected javax.swing.JMenuItem |
createMenuItem(java.lang.String cmd) |
protected void |
execute(java.lang.String strCommand) |
JmolAppConsoleInterface |
getAppConsole(JmolViewer viewer)
don't delete! used by Viewer after it gets the class by name
|
java.lang.String |
getText() |
private void |
layoutWindow() |
private void |
output(java.lang.String message) |
private void |
output(java.lang.String message,
javax.swing.text.AttributeSet att) |
void |
sendConsoleEcho(java.lang.String strEcho) |
void |
sendConsoleMessage(java.lang.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 javax.swing.JTextArea input
private javax.swing.JButton clearOutButton
private javax.swing.JButton clearInButton
private javax.swing.JButton loadButton
private final javax.swing.JTextPane output
private final javax.swing.text.Document outputDocument
private final javax.swing.text.SimpleAttributeSet attributesCommand
private AppletConsole(JmolViewer viewer, java.awt.Container externalContainer)
viewer
- externalContainer
- a JFrame or JPanel or nullpublic AppletConsole()
public JmolAppConsoleInterface getAppConsole(JmolViewer viewer)
getAppConsole
in interface JmolAppConsoleInterface
viewer
- public void sendConsoleEcho(java.lang.String strEcho)
sendConsoleEcho
in interface JmolAppConsoleInterface
sendConsoleEcho
in class JmolConsole
public void sendConsoleMessage(java.lang.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 javax.swing.JMenuBar createMenubar()
protected void addHelpMenuBar(javax.swing.JMenuBar menuBar)
private void addHelpItems(javax.swing.JMenu m0, java.lang.String key, java.lang.String attr)
protected javax.swing.JMenuItem createMenuItem(java.lang.String cmd)
private void setupInput()
private void setupOutput()
public void setVisible(boolean visible)
setVisible
in interface JmolAppConsoleInterface
setVisible
in class JmolConsole
private void output(java.lang.String message)
public java.lang.String getText()
getText
in interface JmolAppConsoleInterface
getText
in class JmolConsole
private void output(java.lang.String message, javax.swing.text.AttributeSet att)
protected void clearContent(java.lang.String text)
clearContent
in class JmolConsole
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class JmolConsole
protected void execute(java.lang.String strCommand)
execute
in class JmolConsole
protected java.lang.String completeCommand(java.lang.String thisCmd)
completeCommand
in class JmolConsole