org.jmol.applet
Class Console

java.lang.Object
  extended by org.jmol.applet.Console
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowListener, java.util.EventListener

 class Console
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.WindowListener


Nested Class Summary
(package private)  class Console.ControlEnterTextArea
           
 
Field Summary
private  javax.swing.text.SimpleAttributeSet attributesCommand
           
private  javax.swing.JButton clearInButton
           
private  javax.swing.JButton clearOutButton
           
private  GuiMap guimap
           
private  javax.swing.JButton historyButton
           
private  javax.swing.JTextArea input
           
private  javax.swing.JFrame jf
           
private  Jvm12 jvm12
           
private  javax.swing.JButton loadButton
           
private  javax.swing.JMenuBar menubar
           
private  javax.swing.JTextPane output
           
private  javax.swing.text.Document outputDocument
           
private  javax.swing.JButton runButton
           
private  javax.swing.JButton stateButton
           
private  JmolViewer viewer
           
 
Constructor Summary
Console(java.awt.Component componentParent, JmolViewer viewer, Jvm12 jvm12)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
private  void addHelpItems(javax.swing.JMenu m0, java.lang.String key, java.lang.String attr)
           
protected  void addHelpMenuBar(javax.swing.JMenuBar menuBar)
           
protected  javax.swing.JMenuBar createMenubar()
           
protected  javax.swing.JMenuItem createMenuItem(java.lang.String cmd)
           
(package private)  void dispose()
           
(package private)  void execute(java.lang.String strCommand)
           
 java.lang.Object getMyMenuBar()
           
(package private)  java.lang.String getText()
           
(package private)  JmolViewer getViewer()
           
(package private)  void output(java.lang.String message)
           
private  void output(java.lang.String message, javax.swing.text.AttributeSet att)
           
private  void setupInput()
           
private  void setupOutput()
           
(package private)  void setVisible(boolean visible)
           
 void windowActivated(java.awt.event.WindowEvent we)
           
 void windowClosed(java.awt.event.WindowEvent we)
           
 void windowClosing(java.awt.event.WindowEvent we)
           
 void windowDeactivated(java.awt.event.WindowEvent we)
           
 void windowDeiconified(java.awt.event.WindowEvent we)
           
 void windowIconified(java.awt.event.WindowEvent we)
           
 void windowOpened(java.awt.event.WindowEvent we)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

input

private final javax.swing.JTextArea input

output

private final javax.swing.JTextPane output

outputDocument

private final javax.swing.text.Document outputDocument

jf

private javax.swing.JFrame jf

runButton

private javax.swing.JButton runButton

clearOutButton

private javax.swing.JButton clearOutButton

clearInButton

private javax.swing.JButton clearInButton

historyButton

private javax.swing.JButton historyButton

stateButton

private javax.swing.JButton stateButton

loadButton

private javax.swing.JButton loadButton

attributesCommand

private final javax.swing.text.SimpleAttributeSet attributesCommand

viewer

private final JmolViewer viewer

guimap

private GuiMap guimap

jvm12

private final Jvm12 jvm12

menubar

private javax.swing.JMenuBar menubar
Constructor Detail

Console

Console(java.awt.Component componentParent,
        JmolViewer viewer,
        Jvm12 jvm12)
Method Detail

getViewer

JmolViewer getViewer()

getMyMenuBar

public java.lang.Object getMyMenuBar()

dispose

void dispose()

createMenubar

protected javax.swing.JMenuBar createMenubar()

addHelpMenuBar

protected void addHelpMenuBar(javax.swing.JMenuBar menuBar)

addHelpItems

private void addHelpItems(javax.swing.JMenu m0,
                          java.lang.String key,
                          java.lang.String attr)

createMenuItem

protected javax.swing.JMenuItem createMenuItem(java.lang.String cmd)

setupInput

private void setupInput()

setupOutput

private void setupOutput()

setVisible

void setVisible(boolean visible)

output

void output(java.lang.String message)

output

private void output(java.lang.String message,
                    javax.swing.text.AttributeSet att)

getText

java.lang.String getText()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

execute

void execute(java.lang.String strCommand)

windowActivated

public void windowActivated(java.awt.event.WindowEvent we)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent we)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent we)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent we)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent we)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent we)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent we)
Specified by:
windowOpened in interface java.awt.event.WindowListener