public final class ScriptEditor extends javax.swing.JDialog implements JmolScriptEditorInterface, java.awt.event.ActionListener
Modifier and Type | Class and Description |
---|---|
(package private) class |
ScriptEditor.EditorDocument |
(package private) class |
ScriptEditor.EditorTextPane |
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
protected javax.swing.text.SimpleAttributeSet |
attEcho |
protected javax.swing.text.SimpleAttributeSet |
attError |
protected javax.swing.text.SimpleAttributeSet |
attHighlight |
private javax.swing.JPanel |
buttonPanel |
private javax.swing.JButton |
checkButton |
private javax.swing.JButton |
clearButton |
private javax.swing.JButton |
closeButton |
private javax.swing.JButton |
consoleButton |
protected ScriptEditor.EditorTextPane |
editor |
protected java.lang.String |
filename |
private javax.swing.JButton |
haltButton |
private JmolConsole |
jmolConsole |
private static java.lang.String[] |
lastOpened |
private javax.swing.JButton |
loadButton |
private javax.swing.JButton |
openButton |
protected ScriptContext |
parsedContext |
protected java.lang.String |
parsedData |
private javax.swing.JButton |
pauseButton |
protected javax.swing.JButton |
resumeButton |
private javax.swing.JButton |
runButton |
private javax.swing.JButton |
stateButton |
protected javax.swing.JButton |
stepButton |
protected java.lang.String |
title |
private javax.swing.JButton |
topButton |
private Viewer |
vwr |
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
ScriptEditor() |
ScriptEditor(Viewer vwr,
javax.swing.JFrame frame,
JmolConsole jmolConsole) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
private void |
checkAction(java.awt.event.ActionEvent e) |
void |
checkScript() |
void |
dispose() |
private void |
doOpen() |
protected void |
doResume() |
void |
doStep() |
java.lang.String |
getText() |
private void |
gotoCommand(int pt,
boolean isPaused,
javax.swing.text.SimpleAttributeSet attr) |
private void |
gotoParsedLine() |
private void |
gotoPosition(int i,
int j) |
void |
gotoTop() |
(package private) void |
layoutWindow(java.awt.Container container) |
void |
notifyContext(ScriptContext context,
java.lang.Object[] data) |
void |
notifyScriptStart() |
void |
notifyScriptTermination() |
void |
output(java.lang.String message) |
protected void |
parseScript(java.lang.String text) |
private void |
setAttributes() |
private javax.swing.JButton |
setButton(java.lang.String s) |
private void |
setContext(ScriptContext context) |
void |
setFilename(java.lang.String filename) |
void |
setVisible(boolean b) |
void |
show(java.lang.String[] fileText) |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isVisible
protected ScriptEditor.EditorTextPane editor
private javax.swing.JButton openButton
private javax.swing.JButton closeButton
private javax.swing.JButton loadButton
private javax.swing.JButton topButton
private javax.swing.JButton checkButton
private javax.swing.JButton runButton
private javax.swing.JButton pauseButton
private javax.swing.JButton haltButton
private javax.swing.JButton clearButton
private javax.swing.JButton stateButton
private javax.swing.JButton consoleButton
protected javax.swing.JButton stepButton
protected javax.swing.JButton resumeButton
private Viewer vwr
private JmolConsole jmolConsole
protected java.lang.String title
protected java.lang.String parsedData
protected ScriptContext parsedContext
protected javax.swing.text.SimpleAttributeSet attHighlight
protected javax.swing.text.SimpleAttributeSet attEcho
protected javax.swing.text.SimpleAttributeSet attError
private javax.swing.JPanel buttonPanel
protected java.lang.String filename
private static java.lang.String[] lastOpened
public ScriptEditor()
ScriptEditor(Viewer vwr, javax.swing.JFrame frame, JmolConsole jmolConsole)
private void setAttributes()
void layoutWindow(java.awt.Container container)
private javax.swing.JButton setButton(java.lang.String s)
public void notifyScriptStart()
notifyScriptStart
in interface JmolScriptEditorInterface
public void notifyScriptTermination()
notifyScriptTermination
in interface JmolScriptEditorInterface
public void setVisible(boolean b)
setVisible
in interface JmolScriptEditorInterface
setVisible
in class java.awt.Dialog
public java.lang.String getText()
getText
in interface JmolScriptEditorInterface
public void output(java.lang.String message)
output
in interface JmolScriptEditorInterface
public void dispose()
dispose
in interface JmolScriptEditorInterface
dispose
in class java.awt.Window
public void notifyContext(ScriptContext context, java.lang.Object[] data)
notifyContext
in interface JmolScriptEditorInterface
private void setContext(ScriptContext context)
private void gotoCommand(int pt, boolean isPaused, javax.swing.text.SimpleAttributeSet attr)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
private void checkAction(java.awt.event.ActionEvent e)
private void doOpen()
public void gotoTop()
public void checkScript()
protected void parseScript(java.lang.String text)
private void gotoParsedLine()
public void doStep()
protected void doResume()
private void gotoPosition(int i, int j)
public void setFilename(java.lang.String filename)
setFilename
in interface JmolScriptEditorInterface
public void show(java.lang.String[] fileText)
show
in interface JmolScriptEditorInterface