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 classJmolConsole.FileChecker
-
Field Summary
Fields Modifier and Type Field Description protected ContainerexternalContainerprotected ScriptEditorscriptEditorprotected JFramevwrFrame-
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 voidactionPerformed(ActionEvent e)protected voidaddWindowListener()voiddispose()protected ContainergetPane()JmolScriptEditorInterfacegetScriptEditor()protected booleanisMenuItem(Object source)ObjectnewJMenu(String key)ObjectnewJMenuItem(String key)protected StringnextFileName(String stub, int nTab)protected JmolAbstractButtonsetButton(String label)protected voidsetTitle()voidsetVisible(boolean isVisible)voidupdateFontSize()protected voidupdateLabels()voidwindowActivated(WindowEvent we)voidwindowClosed(WindowEvent we)voidwindowClosing(WindowEvent we)voidwindowDeactivated(WindowEvent we)voidwindowDeiconified(WindowEvent we)voidwindowIconified(WindowEvent we)voidwindowOpened(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:
disposein interfaceJmolAppConsoleInterface- Specified by:
disposein classGenericConsole
-
getPane
protected Container getPane()
-
setTitle
protected void setTitle()
- Specified by:
setTitlein classGenericConsole
-
setVisible
public void setVisible(boolean isVisible)
- Specified by:
setVisiblein interfaceJmolAppConsoleInterface- Specified by:
setVisiblein classGenericConsole
-
setButton
protected JmolAbstractButton setButton(String label)
- Specified by:
setButtonin classGenericConsole
-
updateLabels
protected void updateLabels()
- Overrides:
updateLabelsin classGenericConsole
-
getScriptEditor
public JmolScriptEditorInterface getScriptEditor()
- Specified by:
getScriptEditorin interfaceJmolAppConsoleInterface- Specified by:
getScriptEditorin classGenericConsole
-
nextFileName
protected String nextFileName(String stub, int nTab)
- Specified by:
nextFileNamein classGenericConsole
-
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformedin interfaceActionListener
-
isMenuItem
protected boolean isMenuItem(Object source)
- Specified by:
isMenuItemin classGenericConsole
-
addWindowListener
protected void addWindowListener()
-
windowActivated
public void windowActivated(WindowEvent we)
- Specified by:
windowActivatedin interfaceWindowListener- Parameters:
we-
-
windowClosed
public void windowClosed(WindowEvent we)
- Specified by:
windowClosedin interfaceWindowListener
-
windowClosing
public void windowClosing(WindowEvent we)
- Specified by:
windowClosingin interfaceWindowListener
-
windowDeactivated
public void windowDeactivated(WindowEvent we)
- Specified by:
windowDeactivatedin interfaceWindowListener- Parameters:
we-
-
windowDeiconified
public void windowDeiconified(WindowEvent we)
- Specified by:
windowDeiconifiedin interfaceWindowListener- Parameters:
we-
-
windowIconified
public void windowIconified(WindowEvent we)
- Specified by:
windowIconifiedin interfaceWindowListener- Parameters:
we-
-
windowOpened
public void windowOpened(WindowEvent we)
- Specified by:
windowOpenedin interfaceWindowListener- Parameters:
we-
-
newJMenu
public Object newJMenu(String key)
- Specified by:
newJMenuin interfaceJmolAppConsoleInterface
-
newJMenuItem
public Object newJMenuItem(String key)
- Specified by:
newJMenuItemin interfaceJmolAppConsoleInterface
-
updateFontSize
public void updateFontSize()
-
-