java.awt.event.ActionListener
, java.awt.event.WindowListener
, java.awt.image.ImageObserver
, java.awt.MenuContainer
, java.io.Serializable
, java.util.EventListener
, javax.accessibility.Accessible
, javax.swing.RootPaneContainer
, javax.swing.WindowConstants
, JmolScriptEditorInterface
public final class ScriptEditor extends javax.swing.JDialog implements JmolScriptEditorInterface, java.awt.event.ActionListener, java.awt.event.WindowListener
Modifier and Type | Class | Description |
---|---|---|
(package private) class |
ScriptEditor.EditorDocument |
|
(package private) class |
ScriptEditor.EditorTextPane |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
java.awt.Container.AccessibleAWTContainer
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
Modifier and Type | Field | 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 |
fontButton |
|
private int |
fontSize |
|
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 |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor | Description |
---|---|
ScriptEditor() |
|
ScriptEditor(Viewer vwr,
javax.swing.JFrame frame,
JmolConsole jmolConsole) |
Modifier and Type | Method | 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) |
|
void |
updateFontSize() |
|
void |
windowActivated(java.awt.event.WindowEvent e) |
|
void |
windowClosed(java.awt.event.WindowEvent e) |
|
void |
windowClosing(java.awt.event.WindowEvent e) |
|
void |
windowDeactivated(java.awt.event.WindowEvent e) |
|
void |
windowDeiconified(java.awt.event.WindowEvent e) |
|
void |
windowIconified(java.awt.event.WindowEvent e) |
|
void |
windowOpened(java.awt.event.WindowEvent e) |
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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
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
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
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
isVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
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 fontButton
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 int fontSize
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)
public void updateFontSize()
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
public void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
public void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
public void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
public void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
public void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
public void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener