Package org.jmol.console
Class JmolConsole
- java.lang.Object
-
- org.jmol.console.GenericConsole
-
- org.jmol.console.JmolConsole
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.awt.event.WindowListener,java.util.EventListener,JmolAppConsoleInterface,JmolCallbackListener
- Direct Known Subclasses:
AppConsole,AppletConsole
public abstract class JmolConsole extends GenericConsole implements java.awt.event.ActionListener, java.awt.event.WindowListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classJmolConsole.FileChecker
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.ContainerexternalContainerprotected ScriptEditorscriptEditorprotected javax.swing.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(java.awt.event.ActionEvent e)protected voidaddWindowListener()voiddispose()protected java.awt.ContainergetPane()JmolScriptEditorInterfacegetScriptEditor()protected booleanisMenuItem(java.lang.Object source)java.lang.ObjectnewJMenu(java.lang.String key)java.lang.ObjectnewJMenuItem(java.lang.String key)protected java.lang.StringnextFileName(java.lang.String stub, int nTab)protected JmolAbstractButtonsetButton(java.lang.String label)protected voidsetTitle()voidsetVisible(boolean isVisible)voidupdateFontSize()protected voidupdateLabels()voidwindowActivated(java.awt.event.WindowEvent we)voidwindowClosed(java.awt.event.WindowEvent we)voidwindowClosing(java.awt.event.WindowEvent we)voidwindowDeactivated(java.awt.event.WindowEvent we)voidwindowDeiconified(java.awt.event.WindowEvent we)voidwindowIconified(java.awt.event.WindowEvent we)voidwindowOpened(java.awt.event.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 javax.swing.JFrame vwrFrame
-
externalContainer
protected java.awt.Container externalContainer
-
scriptEditor
protected ScriptEditor scriptEditor
-
-
Method Detail
-
dispose
public void dispose()
- Specified by:
disposein interfaceJmolAppConsoleInterface- Specified by:
disposein classGenericConsole
-
getPane
protected java.awt.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(java.lang.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 java.lang.String nextFileName(java.lang.String stub, int nTab)- Specified by:
nextFileNamein classGenericConsole
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
isMenuItem
protected boolean isMenuItem(java.lang.Object source)
- Specified by:
isMenuItemin classGenericConsole
-
addWindowListener
protected void addWindowListener()
-
windowActivated
public void windowActivated(java.awt.event.WindowEvent we)
- Specified by:
windowActivatedin interfacejava.awt.event.WindowListener- Parameters:
we-
-
windowClosed
public void windowClosed(java.awt.event.WindowEvent we)
- Specified by:
windowClosedin interfacejava.awt.event.WindowListener
-
windowClosing
public void windowClosing(java.awt.event.WindowEvent we)
- Specified by:
windowClosingin interfacejava.awt.event.WindowListener
-
windowDeactivated
public void windowDeactivated(java.awt.event.WindowEvent we)
- Specified by:
windowDeactivatedin interfacejava.awt.event.WindowListener- Parameters:
we-
-
windowDeiconified
public void windowDeiconified(java.awt.event.WindowEvent we)
- Specified by:
windowDeiconifiedin interfacejava.awt.event.WindowListener- Parameters:
we-
-
windowIconified
public void windowIconified(java.awt.event.WindowEvent we)
- Specified by:
windowIconifiedin interfacejava.awt.event.WindowListener- Parameters:
we-
-
windowOpened
public void windowOpened(java.awt.event.WindowEvent we)
- Specified by:
windowOpenedin interfacejava.awt.event.WindowListener- Parameters:
we-
-
newJMenu
public java.lang.Object newJMenu(java.lang.String key)
- Specified by:
newJMenuin interfaceJmolAppConsoleInterface
-
newJMenuItem
public java.lang.Object newJMenuItem(java.lang.String key)
- Specified by:
newJMenuItemin interfaceJmolAppConsoleInterface
-
updateFontSize
public void updateFontSize()
-
-