public class JmolPanel extends JPanel implements SplashInterface, JsonNioClient
Modifier and Type | Class and Description |
---|---|
(package private) class |
JmolPanel.AboutAction |
private static class |
JmolPanel.ActionChangedListener |
private class |
JmolPanel.AnimButton |
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.CreditsAction |
(package private) class |
JmolPanel.ExecuteScriptAction |
(package private) class |
JmolPanel.ExitAction |
(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.OpenMolAction |
(package private) class |
JmolPanel.OpenPdbAction |
(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.SurfaceToolAction |
(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 |
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
JmolPanel(JmolApp jmolApp,
Splash splash,
JFrame frame,
JmolPanel parent,
int startupWidth,
int startupHeight,
Map<String,Object> vwrOptions,
Point loc) |
Modifier and Type | Method and Description |
---|---|
private void |
addHelpMenuBar(JMenuBar menuBar) |
private void |
addMacrosMenuBar(JMenuBar menuBar) |
private void |
addNormalMenuBar(JMenuBar menuBar) |
(package private) String |
createImageStatus(String fileName,
String type,
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"
|
(package private) JMenu |
createMenu(String key)
Create a menu for the app.
|
private JMenuBar |
createMenubar()
Create the menubar for the app.
|
private JMenuItem |
createMenuItem(String cmd)
This is the hook through which all menu items are
created.
|
(package private) void |
createSurfaceTool() |
protected Component |
createTool(String key)
Hook through which every toolbar item is created.
|
private JToolBar |
createToolbar()
Create the toolbar.
|
protected AbstractButton |
createToolbarButton(String key)
Create a button to go inside of the toolbar.
|
(package private) void |
createWebExport() |
(package private) void |
dispose(JFrame f,
boolean saveSize) |
protected boolean |
doClose(boolean saveSize) |
(package private) void |
doNew() |
protected Action |
getAction(String cmd)
Fetch the action that was created for the given
command.
|
List<Action> |
getActions() |
private void |
getDialogs() |
private static void |
getJavaConsole(Jmol jmol) |
static Jmol |
getJmol(JmolApp jmolApp,
JFrame frame) |
static JsonNioServer |
getJsonNioServer() |
protected JMenuItem |
getMenuItem(String cmd)
Fetch the menu item that was created for the given
command.
|
NBOService |
getNBOService() |
Object |
getPreference(String key) |
static File |
getUserDirectory()
Returns a new File referenced by the property 'user.dir', or null
if the property is not defined.
|
void |
nioClosed(JsonNioServer jns) |
void |
nioRunContent(JsonNioServer jns) |
(package private) void |
notifyFileOpen(String fullPathName,
String title) |
(package private) void |
openFile() |
void |
print()
added print command, so that it can be used by RasmolScriptHandler
|
private void |
report(String str) |
(package private) void |
resizeDisplay(int width,
int height) |
(package private) int[] |
resizeInnerPanel(String data) |
(package private) void |
saveWindowSizes() |
private void |
say(String message) |
(package private) void |
sendNioMessage(int port,
String strInfo) |
void |
setBannerLabel(String label) |
(package private) void |
setMenuNBO(JMenu item) |
(package private) void |
setMenuState() |
void |
showStatus(String message) |
protected static void |
startJmol(JmolApp jmolApp) |
(package private) void |
startNBO(String type) |
void |
syncScript(String script) |
void |
updateConsoleFont() |
(package private) void |
updateLabels() |
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, hide, 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, 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 static HistoryFile historyFile
public Viewer vwr
JmolAdapter modelAdapter
JmolApp jmolApp
StatusBar status
int startupWidth
int startupHeight
JsonNioServer serverService
public NBOService nboService
protected String appletContext
protected PropertyChangeSupport pcs
protected DisplayPanel display
protected GaussianDialog gaussianDialog
protected NBODialog nboDialog
protected RecentFilesDialog recentFiles
protected AtomSetChooser atomSetChooser
public JFrame frame
protected SplashInterface splash
protected JFrame consoleframe
protected JsonNioServer service
protected int qualityJPG
protected int qualityPNG
protected String imageType
public GuiMap guimap
private JmolPanel.ExecuteScriptAction executeScriptAction
PreferencesDialog preferencesDialog
private StatusListener myStatusListener
private SurfaceTool surfaceTool
private JToolBar toolbar
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.SurfaceToolAction surfaceToolAction
private JmolPanel.PasteClipboardAction pasteClipboardAction
private JmolPanel.ViewMeasurementTableAction viewMeasurementTableAction
private static int numWindows
private static KioskFrame kioskFrame
private static BannerFrame bannerFrame
private static final String EDITOR_WINDOW_NAME
private static final String SCRIPT_WINDOW_NAME
private static final String FILE_OPEN_WINDOW_NAME
private static final String WEB_MAKER_WINDOW_NAME
private static final String SURFACETOOL_WINDOW_NAME
private static final Dimension screenSize
private static final String newwinAction
private static final String openAction
private static final String openurlAction
private static final String openpdbAction
private static final String openmolAction
private static final String newAction
private static final String exportActionProperty
private static final String closeAction
private static final String exitAction
private static final String aboutAction
private static final String whatsnewAction
private static final String creditsAction
private static final String uguideAction
private static final String printActionProperty
private static final String recentFilesAction
private static final String povrayActionProperty
private static final String writeActionProperty
private static final String editorAction
private static final String consoleAction
private static final String toWebActionProperty
private static final String atomsetchooserAction
private static final String copyImageActionProperty
private static final String copyScriptActionProperty
private static final String surfaceToolActionProperty
private static final String pasteClipboardActionProperty
private static final String gaussianAction
private static final String resizeAction
private Action[] defaultActions
static final String[] imageChoices
static final String[] imageExtensions
WebExport webExport
static final String chemFileProperty
private void getDialogs()
protected static void startJmol(JmolApp jmolApp)
private static void getJavaConsole(Jmol jmol)
public void showStatus(String message)
showStatus
in interface SplashInterface
private void report(String str)
private void say(String message)
public List<Action> getActions()
protected boolean doClose(boolean saveSize)
void dispose(JFrame f, boolean saveSize)
void saveWindowSizes()
private JMenuItem createMenuItem(String cmd)
cmd
- getMenuItem(java.lang.String)
protected JMenuItem getMenuItem(String cmd)
cmd
- Name of the action.protected Action getAction(String cmd)
cmd
- Name of the action.private JToolBar createToolbar()
protected Component createTool(String key)
key
- protected AbstractButton createToolbarButton(String key)
key
- The key in the resource file to serve as the basis
of lookups.private JMenuBar createMenubar()
private void addMacrosMenuBar(JMenuBar menuBar)
private void addNormalMenuBar(JMenuBar menuBar)
private void addHelpMenuBar(JMenuBar menuBar)
JMenu createMenu(String key)
key
- void setMenuState()
void doNew()
void setMenuNBO(JMenu item)
item
- void startNBO(String type)
public void print()
String createImageStatus(String fileName, String type, Object text_or_bytes, int quality)
fileName
- type
- text_or_bytes
- quality
- void createWebExport()
void createSurfaceTool()
public static File getUserDirectory()
void openFile()
int[] resizeInnerPanel(String data)
void resizeDisplay(int width, int height)
void updateLabels()
public void nioRunContent(JsonNioServer jns)
nioRunContent
in interface JsonNioClient
public void nioClosed(JsonNioServer jns)
nioClosed
in interface JsonNioClient
public void setBannerLabel(String label)
setBannerLabel
in interface JsonNioClient
void sendNioMessage(int port, String strInfo)
public static JsonNioServer getJsonNioServer()
public void syncScript(String script)
public NBOService getNBOService()
public void updateConsoleFont()