public class JmolPanel extends javax.swing.JPanel implements SplashInterface
Modifier and Type | Class and Description |
---|---|
(package private) class |
JmolPanel.AboutAction |
private static class |
JmolPanel.ActionChangedListener |
protected class |
JmolPanel.AppCloser
To shutdown when run as an application.
|
(package private) class |
JmolPanel.AtomSetChooserAction |
(package private) class |
JmolPanel.CloseAction |
(package private) class |
JmolPanel.ConsoleAction |
(package private) class |
JmolPanel.CopyImageAction
An Action to copy the current image into the clipboard.
|
(package private) class |
JmolPanel.CopyScriptAction |
(package private) class |
JmolPanel.ExecuteScriptAction |
(package private) class |
JmolPanel.ExitAction
Really lame implementation of an exit command
|
(package private) class |
JmolPanel.ExportAction |
(package private) class |
JmolPanel.GaussianAction |
(package private) class |
JmolPanel.NewAction |
(package private) class |
JmolPanel.NewwinAction |
(package private) class |
JmolPanel.OpenAction |
(package private) class |
JmolPanel.OpenUrlAction |
(package private) class |
JmolPanel.PasteClipboardAction |
(package private) class |
JmolPanel.PovrayAction |
(package private) class |
JmolPanel.PrintAction |
(package private) class |
JmolPanel.RecentFilesAction |
(package private) class |
JmolPanel.ResizeAction |
(package private) class |
JmolPanel.ScriptEditorAction |
(package private) class |
JmolPanel.ScriptWindowAction |
(package private) class |
JmolPanel.ToWebAction |
(package private) class |
JmolPanel.UguideAction |
(package private) class |
JmolPanel.ViewMeasurementTableAction |
(package private) class |
JmolPanel.WhatsNewAction |
(package private) class |
JmolPanel.WriteAction |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
aboutAction |
(package private) java.lang.String |
appletContext |
AtomSetChooser |
atomSetChooser |
private static java.lang.String |
atomsetchooserAction |
(package private) static java.lang.String |
chemFileProperty |
private static java.lang.String |
closeAction |
private java.util.Hashtable |
commands |
private static java.lang.String |
CONSOLE_WINDOW_NAME |
private static java.lang.String |
consoleAction |
protected javax.swing.JFrame |
consoleframe |
private JmolPanel.CopyImageAction |
copyImageAction |
private static java.lang.String |
copyImageActionProperty |
private JmolPanel.CopyScriptAction |
copyScriptAction |
private static java.lang.String |
copyScriptActionProperty |
private javax.swing.Action[] |
defaultActions
Actions defined by the Jmol class
|
(package private) DisplayPanel |
display |
private static java.lang.String |
EDITOR_WINDOW_NAME |
private static java.lang.String |
editorAction |
private JmolPanel.ExecuteScriptAction |
executeScriptAction |
private static java.lang.String |
exitAction |
private JmolPanel.ExportAction |
exportAction |
private static java.lang.String |
exportActionProperty |
private static java.lang.String |
FILE_OPEN_WINDOW_NAME |
protected javax.swing.JFrame |
frame |
private static java.lang.String |
gaussianAction |
protected GaussianDialog |
gaussianDialog |
(package private) GuiMap |
guimap |
(package private) static HistoryFile |
historyFile |
(package private) static java.lang.String[] |
imageChoices |
(package private) static java.lang.String[] |
imageExtensions |
(package private) java.lang.String |
imageType |
(package private) JmolApp |
jmolApp |
private javax.swing.JMenuBar |
menubar |
private java.util.Hashtable |
menuItems |
(package private) JmolAdapter |
modelAdapter |
private static java.lang.String |
newAction |
private static java.lang.String |
newwinAction |
private static int |
numWindows |
private static java.lang.String |
openAction |
private static java.lang.String |
openurlAction |
private JmolPanel.PasteClipboardAction |
pasteClipboardAction |
private static java.lang.String |
pasteClipboardActionProperty |
(package private) java.beans.PropertyChangeSupport |
pcs |
private JmolPanel.PovrayAction |
povrayAction |
private static java.lang.String |
povrayActionProperty |
private PreferencesDialog |
preferencesDialog |
private JmolPanel.PrintAction |
printAction |
private static java.lang.String |
printActionProperty |
(package private) int |
qualityJPG |
(package private) int |
qualityPNG |
(package private) RecentFilesDialog |
recentFiles |
private static java.lang.String |
recentFilesAction |
private static java.lang.String |
resizeAction |
private static java.awt.Dimension |
screenSize |
private static java.lang.String |
SCRIPT_WINDOW_NAME |
protected javax.swing.JFrame |
sizeFrame |
protected SplashInterface |
splash
Button group for toggle buttons in the toolbar.
|
(package private) int |
startupHeight |
(package private) int |
startupWidth |
(package private) StatusBar |
status |
protected javax.swing.JToolBar |
toolbar |
private JmolPanel.ToWebAction |
toWebAction |
private static java.lang.String |
toWebActionProperty |
private static java.lang.String |
uguideAction |
JmolViewer |
viewer
The data model.
|
private JmolPanel.ViewMeasurementTableAction |
viewMeasurementTableAction |
private static java.lang.String |
WEB_MAKER_WINDOW_NAME |
(package private) WebExport |
webExport |
private static java.lang.String |
whatsnewAction |
private JmolPanel.WriteAction |
writeAction |
private static java.lang.String |
writeActionProperty |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
JmolPanel(JmolApp jmolApp,
Splash splash,
javax.swing.JFrame frame,
JmolPanel parent,
int startupWidth,
int startupHeight,
java.lang.String commandOptions,
java.awt.Point loc) |
Modifier and Type | Method and Description |
---|---|
protected void |
addHelpMenuBar(javax.swing.JMenuBar menuBar) |
protected void |
addMacrosMenuBar(javax.swing.JMenuBar menuBar) |
protected void |
addNormalMenuBar(javax.swing.JMenuBar menuBar) |
(package private) java.lang.String |
createImageStatus(java.lang.String fileName,
java.lang.String type,
java.lang.Object text_or_bytes,
int quality)
Starting with Jmol 11.8.RC5, this is just informational
if type == null and null is returned, then it means "Jmol, you handle it"
|
protected javax.swing.JMenu |
createMenu(java.lang.String key)
Create a menu for the app.
|
protected javax.swing.JMenuBar |
createMenubar()
Create the menubar for the app.
|
protected javax.swing.JMenuItem |
createMenuItem(java.lang.String cmd)
This is the hook through which all menu items are
created.
|
protected java.awt.Component |
createTool(java.lang.String key)
Hook through which every toolbar item is created.
|
private javax.swing.JToolBar |
createToolbar()
Create the toolbar.
|
protected javax.swing.AbstractButton |
createToolbarButton(java.lang.String key)
Create a button to go inside of the toolbar.
|
(package private) void |
createWebExport() |
private void |
dispose(javax.swing.JFrame f) |
(package private) void |
doClose() |
protected javax.swing.Action |
getAction(java.lang.String cmd)
Fetch the action that was created for the given
command.
|
javax.swing.Action[] |
getActions() |
protected java.awt.Frame |
getFrame() |
static Jmol |
getJmol(JmolApp jmolApp,
javax.swing.JFrame frame) |
protected javax.swing.JMenuItem |
getMenuItem(java.lang.String cmd)
Fetch the menu item that was created for the given
command.
|
(package private) java.lang.String |
getOpenFileNameFromDialog(java.lang.String fileName) |
static java.io.File |
getUserDirectory()
Returns a new File referenced by the property 'user.dir', or null
if the property is not defined.
|
(package private) void |
notifyFileOpen(java.lang.String fullPathName,
java.lang.String title) |
void |
print()
added print command, so that it can be used by RasmolScriptHandler
|
(package private) void |
report(java.lang.String str) |
(package private) void |
resizeInnerPanel() |
private void |
say(java.lang.String message) |
(package private) void |
setButtonMode(java.lang.String string) |
protected void |
setupNewFrame(JmolViewer viewer) |
private static void |
setWindow(java.lang.String name,
javax.swing.JFrame frame,
JmolPanel jmol) |
void |
showStatus(java.lang.String message) |
protected static void |
startJmol(JmolApp jmolApp) |
protected java.lang.String[] |
tokenize(java.lang.String input)
Take the given string and chop it up into a series
of strings on whitespace boundries.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public JmolViewer viewer
JmolAdapter modelAdapter
JmolApp jmolApp
DisplayPanel display
StatusBar status
protected GaussianDialog gaussianDialog
private PreferencesDialog preferencesDialog
RecentFilesDialog recentFiles
public AtomSetChooser atomSetChooser
private JmolPanel.ExecuteScriptAction executeScriptAction
protected javax.swing.JFrame frame
protected javax.swing.JFrame sizeFrame
GuiMap guimap
private static int numWindows
private static java.awt.Dimension screenSize
int startupWidth
int startupHeight
java.beans.PropertyChangeSupport pcs
private static final java.lang.String CONSOLE_WINDOW_NAME
private static final java.lang.String EDITOR_WINDOW_NAME
private static final java.lang.String SCRIPT_WINDOW_NAME
private static final java.lang.String FILE_OPEN_WINDOW_NAME
private static final java.lang.String WEB_MAKER_WINDOW_NAME
protected SplashInterface splash
protected javax.swing.JFrame consoleframe
java.lang.String appletContext
static HistoryFile historyFile
private java.util.Hashtable commands
private java.util.Hashtable menuItems
private javax.swing.JMenuBar menubar
protected javax.swing.JToolBar toolbar
private static final java.lang.String newwinAction
private static final java.lang.String openAction
private static final java.lang.String openurlAction
private static final java.lang.String newAction
private static final java.lang.String exportActionProperty
private static final java.lang.String closeAction
private static final java.lang.String exitAction
private static final java.lang.String aboutAction
private static final java.lang.String whatsnewAction
private static final java.lang.String uguideAction
private static final java.lang.String printActionProperty
private static final java.lang.String recentFilesAction
private static final java.lang.String povrayActionProperty
private static final java.lang.String writeActionProperty
private static final java.lang.String editorAction
private static final java.lang.String consoleAction
private static final java.lang.String toWebActionProperty
private static final java.lang.String atomsetchooserAction
private static final java.lang.String copyImageActionProperty
private static final java.lang.String copyScriptActionProperty
private static final java.lang.String pasteClipboardActionProperty
private static final java.lang.String gaussianAction
private static final java.lang.String resizeAction
private JmolPanel.ExportAction exportAction
private JmolPanel.PovrayAction povrayAction
private JmolPanel.ToWebAction toWebAction
private JmolPanel.WriteAction writeAction
private JmolPanel.PrintAction printAction
private JmolPanel.CopyImageAction copyImageAction
private JmolPanel.CopyScriptAction copyScriptAction
private JmolPanel.PasteClipboardAction pasteClipboardAction
private JmolPanel.ViewMeasurementTableAction viewMeasurementTableAction
int qualityJPG
int qualityPNG
java.lang.String imageType
private javax.swing.Action[] defaultActions
static final java.lang.String[] imageChoices
static final java.lang.String[] imageExtensions
WebExport webExport
static final java.lang.String chemFileProperty
protected static void startJmol(JmolApp jmolApp)
private static void setWindow(java.lang.String name, javax.swing.JFrame frame, JmolPanel jmol)
public void showStatus(java.lang.String message)
showStatus
in interface SplashInterface
void report(java.lang.String str)
private void say(java.lang.String message)
public javax.swing.Action[] getActions()
void doClose()
private void dispose(javax.swing.JFrame f)
protected void setupNewFrame(JmolViewer viewer)
protected java.awt.Frame getFrame()
protected javax.swing.JMenuItem createMenuItem(java.lang.String cmd)
cmd
- getMenuItem(java.lang.String)
protected javax.swing.JMenuItem getMenuItem(java.lang.String cmd)
cmd
- Name of the action.protected javax.swing.Action getAction(java.lang.String cmd)
cmd
- Name of the action.private javax.swing.JToolBar createToolbar()
protected java.awt.Component createTool(java.lang.String key)
key
- protected javax.swing.AbstractButton createToolbarButton(java.lang.String key)
key
- The key in the resource file to serve as the basis
of lookups.protected java.lang.String[] tokenize(java.lang.String input)
input
- String to chopprotected javax.swing.JMenuBar createMenubar()
protected void addMacrosMenuBar(javax.swing.JMenuBar menuBar)
protected void addNormalMenuBar(javax.swing.JMenuBar menuBar)
protected void addHelpMenuBar(javax.swing.JMenuBar menuBar)
protected javax.swing.JMenu createMenu(java.lang.String key)
key
- void setButtonMode(java.lang.String string)
public void print()
java.lang.String createImageStatus(java.lang.String fileName, java.lang.String type, java.lang.Object text_or_bytes, int quality)
fileName
- type
- text_or_bytes
- quality
- void createWebExport()
public static java.io.File getUserDirectory()
java.lang.String getOpenFileNameFromDialog(java.lang.String fileName)
void notifyFileOpen(java.lang.String fullPathName, java.lang.String title)
void resizeInnerPanel()