org.jmol.console
Class AppletConsole
java.lang.Object
org.jmol.console.JmolConsole
org.jmol.console.AppletConsole
- All Implemented Interfaces:
- ActionListener, WindowListener, EventListener, JmolAppConsoleInterface, JmolCallbackListener
public class AppletConsole
- extends JmolConsole
- implements JmolAppConsoleInterface
| Fields inherited from class org.jmol.console.JmolConsole |
defaultMessage, editButton, externalContainer, historyButton, label1, labels, menuMap, nTab, runButton, scriptEditor, stateButton, viewer, viewerFrame |
| Methods inherited from class org.jmol.console.JmolConsole |
addWindowListener, dispose, getLabel, getPane, getScriptEditor, getWindow, notifyCallback, notifyEnabled, setButton, setCallbackFunction, setEnabled, setScriptEditor, setTitle, updateLabels, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
input
protected final JTextArea input
clearOutButton
private JButton clearOutButton
clearInButton
private JButton clearInButton
loadButton
private JButton loadButton
output
private final JTextPane output
outputDocument
private final Document outputDocument
attributesCommand
private final SimpleAttributeSet attributesCommand
AppletConsole
private AppletConsole(JmolViewer viewer,
Container externalContainer)
- general entry point
- Parameters:
viewer - externalContainer - a JFrame or JPanel or null
AppletConsole
public AppletConsole()
getAppConsole
public JmolAppConsoleInterface getAppConsole(JmolViewer viewer)
- don't delete! used by Viewer after it gets the class by name
- Specified by:
getAppConsole in interface JmolAppConsoleInterface
- Parameters:
viewer -
- Returns:
- AppletConsole
sendConsoleEcho
public void sendConsoleEcho(String strEcho)
- Specified by:
sendConsoleEcho in interface JmolAppConsoleInterface- Specified by:
sendConsoleEcho in class JmolConsole
sendConsoleMessage
public void sendConsoleMessage(String strInfo)
- Specified by:
sendConsoleMessage in interface JmolAppConsoleInterface- Specified by:
sendConsoleMessage in class JmolConsole
zap
public void zap()
- Specified by:
zap in interface JmolAppConsoleInterface
layoutWindow
private void layoutWindow()
setLabels
private void setLabels()
setupLabels
protected void setupLabels()
- Specified by:
setupLabels in class JmolConsole
createMenubar
protected JMenuBar createMenubar()
addHelpMenuBar
protected void addHelpMenuBar(JMenuBar menuBar)
addHelpItems
private void addHelpItems(JMenu m0,
String key,
String attr)
createMenuItem
protected JMenuItem createMenuItem(String cmd)
setupInput
private void setupInput()
setupOutput
private void setupOutput()
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisible in interface JmolAppConsoleInterface- Overrides:
setVisible in class JmolConsole
output
private void output(String message)
getText
public String getText()
- Specified by:
getText in interface JmolAppConsoleInterface- Specified by:
getText in class JmolConsole
output
private void output(String message,
AttributeSet att)
clearContent
protected void clearContent(String text)
- Specified by:
clearContent in class JmolConsole
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed in interface ActionListener- Overrides:
actionPerformed in class JmolConsole
execute
protected void execute(String strCommand)
- Specified by:
execute in class JmolConsole
completeCommand
protected String completeCommand(String thisCmd)
- Overrides:
completeCommand in class JmolConsole