Package org.jmol.console
Class JmolConsole
- java.lang.Object
-
- org.jmol.console.GenericConsole
-
- org.jmol.console.JmolConsole
-
- All Implemented Interfaces:
ActionListener
,WindowListener
,EventListener
,JmolAppConsoleInterface
,JmolCallbackListener
- Direct Known Subclasses:
AppConsole
,AppletConsole
public abstract class JmolConsole extends GenericConsole implements ActionListener, WindowListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
JmolConsole.FileChecker
-
Field Summary
Fields Modifier and Type Field Description protected Container
externalContainer
protected ScriptEditor
scriptEditor
protected JFrame
vwrFrame
-
Fields inherited from class org.jmol.console.GenericConsole
clearInButton, clearOutButton, defaultMessage, editButton, historyButton, input, label1, labels, loadButton, menuMap, nTab, output, runButton, stateButton, vwr
-
-
Constructor Summary
Constructors Constructor Description JmolConsole()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(ActionEvent e)
protected void
addWindowListener()
void
dispose()
protected Container
getPane()
JmolScriptEditorInterface
getScriptEditor()
protected boolean
isMenuItem(Object source)
Object
newJMenu(String key)
Object
newJMenuItem(String key)
protected String
nextFileName(String stub, int nTab)
protected JmolAbstractButton
setButton(String label)
protected void
setTitle()
void
setVisible(boolean isVisible)
void
updateFontSize()
protected void
updateLabels()
void
windowActivated(WindowEvent we)
void
windowClosed(WindowEvent we)
void
windowClosing(WindowEvent we)
void
windowDeactivated(WindowEvent we)
void
windowDeiconified(WindowEvent we)
void
windowIconified(WindowEvent we)
void
windowOpened(WindowEvent we)
-
Methods inherited from class org.jmol.console.GenericConsole
addButton, clearContent, completeCommand, destroyConsole, displayConsole, doAction, execute, getLabel, getLabel1, getLabelWithoutMnemonic, getMnemonic, getText, layoutWindow, map, notifyCallback, notifyEnabled, processKey, recallCommand, sendConsoleEcho, sendConsoleMessage, setAbstractButtonLabels, setCallbackFunction, setLabels, setupLabels, setupLabels0, setViewer, zap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jmol.api.JmolAppConsoleInterface
start
-
-
-
-
Field Detail
-
vwrFrame
protected JFrame vwrFrame
-
externalContainer
protected Container externalContainer
-
scriptEditor
protected ScriptEditor scriptEditor
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceJmolAppConsoleInterface
- Specified by:
dispose
in classGenericConsole
-
getPane
protected Container getPane()
-
setTitle
protected void setTitle()
- Specified by:
setTitle
in classGenericConsole
-
setVisible
public void setVisible(boolean isVisible)
- Specified by:
setVisible
in interfaceJmolAppConsoleInterface
- Specified by:
setVisible
in classGenericConsole
-
setButton
protected JmolAbstractButton setButton(String label)
- Specified by:
setButton
in classGenericConsole
-
updateLabels
protected void updateLabels()
- Overrides:
updateLabels
in classGenericConsole
-
getScriptEditor
public JmolScriptEditorInterface getScriptEditor()
- Specified by:
getScriptEditor
in interfaceJmolAppConsoleInterface
- Specified by:
getScriptEditor
in classGenericConsole
-
nextFileName
protected String nextFileName(String stub, int nTab)
- Specified by:
nextFileName
in classGenericConsole
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interfaceActionListener
-
isMenuItem
protected boolean isMenuItem(Object source)
- Specified by:
isMenuItem
in classGenericConsole
-
addWindowListener
protected void addWindowListener()
-
windowActivated
public void windowActivated(WindowEvent we)
- Specified by:
windowActivated
in interfaceWindowListener
- Parameters:
we
-
-
windowClosed
public void windowClosed(WindowEvent we)
- Specified by:
windowClosed
in interfaceWindowListener
-
windowClosing
public void windowClosing(WindowEvent we)
- Specified by:
windowClosing
in interfaceWindowListener
-
windowDeactivated
public void windowDeactivated(WindowEvent we)
- Specified by:
windowDeactivated
in interfaceWindowListener
- Parameters:
we
-
-
windowDeiconified
public void windowDeiconified(WindowEvent we)
- Specified by:
windowDeiconified
in interfaceWindowListener
- Parameters:
we
-
-
windowIconified
public void windowIconified(WindowEvent we)
- Specified by:
windowIconified
in interfaceWindowListener
- Parameters:
we
-
-
windowOpened
public void windowOpened(WindowEvent we)
- Specified by:
windowOpened
in interfaceWindowListener
- Parameters:
we
-
-
newJMenu
public Object newJMenu(String key)
- Specified by:
newJMenu
in interfaceJmolAppConsoleInterface
-
newJMenuItem
public Object newJMenuItem(String key)
- Specified by:
newJMenuItem
in interfaceJmolAppConsoleInterface
-
updateFontSize
public void updateFontSize()
-
-