org.openscience.jmol.app

Class ScriptWindow

public final class ScriptWindow extends JDialog implements ActionListener, EnterListener

Nested Class Summary
classScriptWindow.ExecuteCommandThread
Field Summary
JButtonclearButton
JButtoncloseButton
ConsoleTextPaneconsole
ScriptWindow.ExecuteCommandThreadexecThread
JButtonhaltButton
JButtonhelpButton
JButtonhistoryButton
booleanisError
static intMAXUNDO
JButtonredoButton
JButtonrunButton
JButtonstateButton
JButtonundoButton
intundoPointer
booleanundoSaved
String[]undoStack
JmolViewerviewer
Constructor Summary
ScriptWindow(JmolViewer viewer, JFrame frame)
Method Summary
voidactionPerformed(ActionEvent e)
voidenterPressed()
voidexecuteCommand(String strCommand)
voidexecuteCommandAsThread()
voidlayoutWindow(Container container)
voidnotifyScriptStart()
voidnotifyScriptTermination()
voidsendConsoleEcho(String strEcho)
voidsendConsoleMessage(String strStatus)
voidsetError(boolean TF)
voidundoClear()
voidundoRedo(boolean isRedo)
voidundoSave()
voidundoSetEnabled()

Field Detail

clearButton

private JButton clearButton

closeButton

private JButton closeButton

console

ConsoleTextPane console

execThread

ScriptWindow.ExecuteCommandThread execThread

haltButton

private JButton haltButton

helpButton

private JButton helpButton

historyButton

private JButton historyButton

isError

boolean isError

MAXUNDO

static int MAXUNDO

redoButton

private JButton redoButton

runButton

private JButton runButton

stateButton

private JButton stateButton

undoButton

private JButton undoButton

undoPointer

int undoPointer

undoSaved

boolean undoSaved

undoStack

String[] undoStack

viewer

JmolViewer viewer

Constructor Detail

ScriptWindow

public ScriptWindow(JmolViewer viewer, JFrame frame)

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)

enterPressed

public void enterPressed()

executeCommand

void executeCommand(String strCommand)

executeCommandAsThread

void executeCommandAsThread()

layoutWindow

void layoutWindow(Container container)

notifyScriptStart

public void notifyScriptStart()

notifyScriptTermination

public void notifyScriptTermination()

sendConsoleEcho

public void sendConsoleEcho(String strEcho)

sendConsoleMessage

public void sendConsoleMessage(String strStatus)

setError

private void setError(boolean TF)

undoClear

void undoClear()

undoRedo

void undoRedo(boolean isRedo)

undoSave

void undoSave()

undoSetEnabled

void undoSetEnabled()