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, windowOpenedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispose, getScriptEditorprotected 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 JmolAppConsoleInterfaceviewer - public void sendConsoleEcho(java.lang.String strEcho)
sendConsoleEcho in interface JmolAppConsoleInterfacesendConsoleEcho in class JmolConsolepublic void sendConsoleMessage(java.lang.String strInfo)
sendConsoleMessage in interface JmolAppConsoleInterfacesendConsoleMessage in class JmolConsolepublic void zap()
zap in interface JmolAppConsoleInterfaceprivate void layoutWindow()
private void setLabels()
protected void setupLabels()
setupLabels in class JmolConsoleprotected 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 JmolAppConsoleInterfacesetVisible in class JmolConsoleprivate void output(java.lang.String message)
public java.lang.String getText()
getText in interface JmolAppConsoleInterfacegetText in class JmolConsoleprivate void output(java.lang.String message,
javax.swing.text.AttributeSet att)
protected void clearContent(java.lang.String text)
clearContent in class JmolConsolepublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class JmolConsoleprotected void execute(java.lang.String strCommand)
execute in class JmolConsoleprotected java.lang.String completeCommand(java.lang.String thisCmd)
completeCommand in class JmolConsole