org.jmol.console
public abstract class JmolConsole extends Object implements JmolCallbackListener, ActionListener, WindowListener
Modifier and Type | Class and Description |
---|---|
protected class |
JmolConsole.FileChecker |
Modifier and Type | Field and Description |
---|---|
protected String |
defaultMessage |
protected JButton |
editButton |
protected Container |
externalContainer |
protected JButton |
historyButton |
private String |
incompleteCmd |
protected JLabel |
label1 |
protected Map<String,String> |
labels |
protected Map<String,AbstractButton> |
menuMap |
int |
nTab |
protected JButton |
runButton |
protected ScriptEditor |
scriptEditor |
protected JButton |
stateButton |
JmolViewer |
viewer |
protected JFrame |
viewerFrame |
Constructor and Description |
---|
JmolConsole() |
public JmolViewer viewer
protected JFrame viewerFrame
protected Container externalContainer
protected JButton editButton
protected JButton runButton
protected JButton historyButton
protected JButton stateButton
protected Map<String,AbstractButton> menuMap
protected ScriptEditor scriptEditor
public int nTab
private String incompleteCmd
protected String defaultMessage
protected JLabel label1
protected abstract void setupLabels()
public void dispose()
protected Container getPane()
protected void setTitle()
public void setVisible(boolean isVisible)
void setScriptEditor(ScriptEditor se)
public JmolScriptEditorInterface getScriptEditor()
protected abstract void clearContent(String text)
protected abstract void execute(String strCommand)
public abstract String getText()
protected void setEnabled(JButton button, boolean TF)
protected void updateLabels()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
protected void addWindowListener()
public void windowActivated(WindowEvent we)
windowActivated
in interface WindowListener
we
- public void windowClosed(WindowEvent we)
windowClosed
in interface WindowListener
public void windowClosing(WindowEvent we)
windowClosing
in interface WindowListener
private void destroyConsole()
public void windowDeactivated(WindowEvent we)
windowDeactivated
in interface WindowListener
we
- public void windowDeiconified(WindowEvent we)
windowDeiconified
in interface WindowListener
we
- public void windowIconified(WindowEvent we)
windowIconified
in interface WindowListener
we
- public void windowOpened(WindowEvent we)
windowOpened
in interface WindowListener
we
- public boolean notifyEnabled(EnumCallback type)
notifyEnabled
in interface JmolCallbackListener
public abstract void sendConsoleMessage(String info)
public abstract void sendConsoleEcho(String info)
public void notifyCallback(EnumCallback type, Object[] data)
notifyCallback
in interface JmolCallbackListener
public void setCallbackFunction(String callbackType, String callbackFunction)
setCallbackFunction
in interface JmolCallbackListener