Class JmolPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- org.openscience.jmol.app.jmolpanel.JmolPanel
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible,JsonNioClient,SplashInterface
- Direct Known Subclasses:
Jmol
public class JmolPanel extends javax.swing.JPanel implements SplashInterface, JsonNioClient
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classJmolPanel.AboutActionprivate static classJmolPanel.ActionChangedListenerprivate classJmolPanel.AnimButtonprotected classJmolPanel.AppCloserTo shutdown when run as an application.(package private) classJmolPanel.AtomSetChooserAction(package private) classJmolPanel.CloseAction(package private) classJmolPanel.ConsoleAction(package private) classJmolPanel.CopyImageActionAn Action to copy the current image into the clipboard.(package private) classJmolPanel.CopyScriptAction(package private) classJmolPanel.CreditsAction(package private) classJmolPanel.ExecuteScriptAction(package private) classJmolPanel.ExitAction(package private) classJmolPanel.ExportAction(package private) classJmolPanel.GaussianAction(package private) classJmolPanel.NewAction(package private) classJmolPanel.NewwinAction(package private) classJmolPanel.OpenAction(package private) classJmolPanel.OpenMolAction(package private) classJmolPanel.OpenPdbAction(package private) classJmolPanel.OpenUrlAction(package private) classJmolPanel.PasteClipboardAction(package private) classJmolPanel.PovrayAction(package private) classJmolPanel.PrintAction(package private) classJmolPanel.RecentFilesAction(package private) classJmolPanel.ResizeAction(package private) classJmolPanel.ScriptEditorAction(package private) classJmolPanel.ScriptWindowAction(package private) classJmolPanel.SurfaceToolAction(package private) classJmolPanel.ToWebAction(package private) classJmolPanel.UguideAction(package private) classJmolPanel.ViewMeasurementTableAction(package private) classJmolPanel.WhatsNewAction(package private) classJmolPanel.WriteAction-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringaboutActionprotected java.lang.StringappletContextprotected AtomSetChooseratomSetChooserprivate static java.lang.StringatomsetchooserActionprivate static BannerFramebannerFrame(package private) static java.lang.StringchemFilePropertyprivate static java.lang.StringcloseActionprivate java.util.Map<java.lang.String,javax.swing.Action>commandsprivate static java.lang.StringconsoleActionprotected javax.swing.JFrameconsoleframeprivate JmolPanel.CopyImageActioncopyImageActionprivate static java.lang.StringcopyImageActionPropertyprivate JmolPanel.CopyScriptActioncopyScriptActionprivate static java.lang.StringcopyScriptActionPropertyprivate static java.lang.StringcreditsActionprivate javax.swing.Action[]defaultActionsActions defined by the Jmol classprotected DisplayPaneldisplayprivate static java.lang.StringEDITOR_WINDOW_NAMEprivate static java.lang.StringeditorActionprivate JmolPanel.ExecuteScriptActionexecuteScriptActionprivate static java.lang.StringexitActionprivate JmolPanel.ExportActionexportActionprivate static java.lang.StringexportActionPropertyprivate static java.lang.StringFILE_OPEN_WINDOW_NAMEjavax.swing.JFrameframeprivate static java.lang.StringgaussianActionprotected GaussianDialoggaussianDialogGuiMapguimapstatic HistoryFilehistoryFile(package private) static java.lang.String[]imageChoices(package private) static java.lang.String[]imageExtensionsprotected java.lang.StringimageType(package private) JmolAppjmolAppprivate static KioskFramekioskFrameprivate java.util.Map<java.lang.String,javax.swing.JMenuItem>menuItems(package private) JmolAdaptermodelAdapterprivate StatusListenermyStatusListenerprotected NBODialognboDialogNBOServicenboServiceprivate static java.lang.StringnewActionprivate static java.lang.StringnewwinActionprivate static intnumWindowsprivate static java.lang.StringopenActionprivate static java.lang.StringopenmolActionprivate static java.lang.StringopenpdbActionprivate static java.lang.StringopenurlActionprivate JmolPanel.PasteClipboardActionpasteClipboardActionprivate static java.lang.StringpasteClipboardActionPropertyprotected java.beans.PropertyChangeSupportpcsprivate JmolPanel.PovrayActionpovrayActionprivate static java.lang.StringpovrayActionProperty(package private) PreferencesDialogpreferencesDialogprivate JmolPanel.PrintActionprintActionprivate static java.lang.StringprintActionPropertyprotected intqualityJPGprotected intqualityPNGprotected RecentFilesDialogrecentFilesprivate static java.lang.StringrecentFilesActionprivate static java.lang.StringresizeActionprivate static java.awt.DimensionscreenSizeprivate static java.lang.StringSCRIPT_WINDOW_NAME(package private) JsonNioServerserverServiceprotected JsonNioServerserviceprotected SplashInterfacesplash(package private) intstartupHeight(package private) intstartupWidth(package private) StatusBarstatusprivate SurfaceToolsurfaceToolprivate static java.lang.StringSURFACETOOL_WINDOW_NAMEprivate JmolPanel.SurfaceToolActionsurfaceToolActionprivate static java.lang.StringsurfaceToolActionPropertyprivate javax.swing.JToolBartoolbarprivate JmolPanel.ToWebActiontoWebActionprivate static java.lang.StringtoWebActionPropertyprivate static java.lang.StringuguideActionprivate JmolPanel.ViewMeasurementTableActionviewMeasurementTableActionViewervwr(package private) java.util.Map<java.lang.String,java.lang.Object>vwrOptionsprivate static java.lang.StringWEB_MAKER_WINDOW_NAME(package private) WebExportwebExportprivate static java.lang.StringwhatsnewActionprivate JmolPanel.WriteActionwriteActionprivate static java.lang.StringwriteActionProperty-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddHelpMenuBar(javax.swing.JMenuBar menuBar)private voidaddMacrosMenuBar(javax.swing.JMenuBar menuBar)private voidaddNormalMenuBar(javax.swing.JMenuBar menuBar)(package private) java.lang.StringcreateImageStatus(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"(package private) javax.swing.JMenucreateMenu(java.lang.String key)Create a menu for the app.private javax.swing.JMenuBarcreateMenubar()Create the menubar for the app.private javax.swing.JMenuItemcreateMenuItem(java.lang.String cmd)This is the hook through which all menu items are created.(package private) voidcreateSurfaceTool()protected java.awt.ComponentcreateTool(java.lang.String key)Hook through which every toolbar item is created.private javax.swing.JToolBarcreateToolbar()Create the toolbar.protected javax.swing.AbstractButtoncreateToolbarButton(java.lang.String key)Create a button to go inside of the toolbar.(package private) voidcreateWebExport()(package private) voiddispose(javax.swing.JFrame f, boolean saveSize)protected booleandoClose(boolean saveSize)(package private) voiddoNew()protected javax.swing.ActiongetAction(java.lang.String cmd)Fetch the action that was created for the given command.java.util.List<javax.swing.Action>getActions()private voidgetDialogs()private static voidgetJavaConsole(Jmol jmol)static JmolgetJmol(JmolApp jmolApp, javax.swing.JFrame frame)static JsonNioServergetJsonNioServer()protected javax.swing.JMenuItemgetMenuItem(java.lang.String cmd)Fetch the menu item that was created for the given command.NBOServicegetNBOService()java.lang.ObjectgetPreference(java.lang.String key)static java.io.FilegetUserDirectory()Returns a new File referenced by the property 'user.dir', or null if the property is not defined.voidnioClosed(JsonNioServer jns)voidnioRunContent(JsonNioServer jns)(package private) voidnotifyFileOpen(java.lang.String fullPathName, java.lang.String title)(package private) voidopenFile()voidprint()added print command, so that it can be used by RasmolScriptHandlerprivate voidreport(java.lang.String str)(package private) voidresizeDisplay(int width, int height)(package private) int[]resizeInnerPanel(java.lang.String data)(package private) voidsaveWindowSizes()private voidsay(java.lang.String message)(package private) voidsendNioMessage(int port, java.lang.String strInfo)voidsetBannerLabel(java.lang.String label)(package private) voidsetMenuNBO(javax.swing.JMenu item)(package private) voidsetMenuState()voidshowStatus(java.lang.String message)protected static voidstartJmol(JmolApp jmolApp)(package private) voidstartNBO(java.lang.String type)voidsyncScript(java.lang.String script)voidupdateConsoleFont()(package private) voidupdateLabels()-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
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
-
Methods inherited from class java.awt.Container
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
-
Methods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
historyFile
public static HistoryFile historyFile
-
vwr
public Viewer vwr
-
modelAdapter
JmolAdapter modelAdapter
-
jmolApp
JmolApp jmolApp
-
status
StatusBar status
-
startupWidth
int startupWidth
-
startupHeight
int startupHeight
-
serverService
JsonNioServer serverService
-
nboService
public NBOService nboService
-
appletContext
protected java.lang.String appletContext
-
pcs
protected java.beans.PropertyChangeSupport pcs
-
display
protected DisplayPanel display
-
gaussianDialog
protected GaussianDialog gaussianDialog
-
nboDialog
protected NBODialog nboDialog
-
recentFiles
protected RecentFilesDialog recentFiles
-
atomSetChooser
protected AtomSetChooser atomSetChooser
-
frame
public javax.swing.JFrame frame
-
splash
protected SplashInterface splash
-
consoleframe
protected javax.swing.JFrame consoleframe
-
service
protected JsonNioServer service
-
qualityJPG
protected int qualityJPG
-
qualityPNG
protected int qualityPNG
-
imageType
protected java.lang.String imageType
-
guimap
public GuiMap guimap
-
executeScriptAction
private JmolPanel.ExecuteScriptAction executeScriptAction
-
preferencesDialog
PreferencesDialog preferencesDialog
-
myStatusListener
private StatusListener myStatusListener
-
surfaceTool
private SurfaceTool surfaceTool
-
commands
private java.util.Map<java.lang.String,javax.swing.Action> commands
-
menuItems
private java.util.Map<java.lang.String,javax.swing.JMenuItem> menuItems
-
toolbar
private javax.swing.JToolBar toolbar
-
exportAction
private JmolPanel.ExportAction exportAction
-
povrayAction
private JmolPanel.PovrayAction povrayAction
-
toWebAction
private JmolPanel.ToWebAction toWebAction
-
writeAction
private JmolPanel.WriteAction writeAction
-
printAction
private JmolPanel.PrintAction printAction
-
copyImageAction
private JmolPanel.CopyImageAction copyImageAction
-
copyScriptAction
private JmolPanel.CopyScriptAction copyScriptAction
-
surfaceToolAction
private JmolPanel.SurfaceToolAction surfaceToolAction
-
pasteClipboardAction
private JmolPanel.PasteClipboardAction pasteClipboardAction
-
viewMeasurementTableAction
private JmolPanel.ViewMeasurementTableAction viewMeasurementTableAction
-
vwrOptions
java.util.Map<java.lang.String,java.lang.Object> vwrOptions
-
numWindows
private static int numWindows
-
kioskFrame
private static KioskFrame kioskFrame
-
bannerFrame
private static BannerFrame bannerFrame
-
EDITOR_WINDOW_NAME
private static final java.lang.String EDITOR_WINDOW_NAME
- See Also:
- Constant Field Values
-
SCRIPT_WINDOW_NAME
private static final java.lang.String SCRIPT_WINDOW_NAME
- See Also:
- Constant Field Values
-
FILE_OPEN_WINDOW_NAME
private static final java.lang.String FILE_OPEN_WINDOW_NAME
- See Also:
- Constant Field Values
-
WEB_MAKER_WINDOW_NAME
private static final java.lang.String WEB_MAKER_WINDOW_NAME
- See Also:
- Constant Field Values
-
SURFACETOOL_WINDOW_NAME
private static final java.lang.String SURFACETOOL_WINDOW_NAME
- See Also:
- Constant Field Values
-
screenSize
private static final java.awt.Dimension screenSize
-
newwinAction
private static final java.lang.String newwinAction
- See Also:
- Constant Field Values
-
openAction
private static final java.lang.String openAction
- See Also:
- Constant Field Values
-
openurlAction
private static final java.lang.String openurlAction
- See Also:
- Constant Field Values
-
openpdbAction
private static final java.lang.String openpdbAction
- See Also:
- Constant Field Values
-
openmolAction
private static final java.lang.String openmolAction
- See Also:
- Constant Field Values
-
newAction
private static final java.lang.String newAction
- See Also:
- Constant Field Values
-
exportActionProperty
private static final java.lang.String exportActionProperty
- See Also:
- Constant Field Values
-
closeAction
private static final java.lang.String closeAction
- See Also:
- Constant Field Values
-
exitAction
private static final java.lang.String exitAction
- See Also:
- Constant Field Values
-
aboutAction
private static final java.lang.String aboutAction
- See Also:
- Constant Field Values
-
whatsnewAction
private static final java.lang.String whatsnewAction
- See Also:
- Constant Field Values
-
creditsAction
private static final java.lang.String creditsAction
- See Also:
- Constant Field Values
-
uguideAction
private static final java.lang.String uguideAction
- See Also:
- Constant Field Values
-
printActionProperty
private static final java.lang.String printActionProperty
- See Also:
- Constant Field Values
-
recentFilesAction
private static final java.lang.String recentFilesAction
- See Also:
- Constant Field Values
-
povrayActionProperty
private static final java.lang.String povrayActionProperty
- See Also:
- Constant Field Values
-
writeActionProperty
private static final java.lang.String writeActionProperty
- See Also:
- Constant Field Values
-
editorAction
private static final java.lang.String editorAction
- See Also:
- Constant Field Values
-
consoleAction
private static final java.lang.String consoleAction
- See Also:
- Constant Field Values
-
toWebActionProperty
private static final java.lang.String toWebActionProperty
- See Also:
- Constant Field Values
-
atomsetchooserAction
private static final java.lang.String atomsetchooserAction
- See Also:
- Constant Field Values
-
copyImageActionProperty
private static final java.lang.String copyImageActionProperty
- See Also:
- Constant Field Values
-
copyScriptActionProperty
private static final java.lang.String copyScriptActionProperty
- See Also:
- Constant Field Values
-
surfaceToolActionProperty
private static final java.lang.String surfaceToolActionProperty
- See Also:
- Constant Field Values
-
pasteClipboardActionProperty
private static final java.lang.String pasteClipboardActionProperty
- See Also:
- Constant Field Values
-
gaussianAction
private static final java.lang.String gaussianAction
- See Also:
- Constant Field Values
-
resizeAction
private static final java.lang.String resizeAction
- See Also:
- Constant Field Values
-
defaultActions
private javax.swing.Action[] defaultActions
Actions defined by the Jmol class
-
imageChoices
static final java.lang.String[] imageChoices
-
imageExtensions
static final java.lang.String[] imageExtensions
-
webExport
WebExport webExport
-
chemFileProperty
static final java.lang.String chemFileProperty
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDialogs
private void getDialogs()
-
startJmol
protected static void startJmol(JmolApp jmolApp)
-
getJavaConsole
private static void getJavaConsole(Jmol jmol)
-
showStatus
public void showStatus(java.lang.String message)
- Specified by:
showStatusin interfaceSplashInterface
-
report
private void report(java.lang.String str)
-
say
private void say(java.lang.String message)
-
getActions
public java.util.List<javax.swing.Action> getActions()
- Returns:
- A list of Actions that is understood by the upper level application
-
doClose
protected boolean doClose(boolean saveSize)
-
dispose
void dispose(javax.swing.JFrame f, boolean saveSize)
-
saveWindowSizes
void saveWindowSizes()
-
createMenuItem
private javax.swing.JMenuItem createMenuItem(java.lang.String cmd)
This is the hook through which all menu items are created. It registers the result with the menuitem hashtable so that it can be fetched with getMenuItem().- Parameters:
cmd-- Returns:
- Menu item created
- See Also:
getMenuItem(java.lang.String)
-
getMenuItem
protected javax.swing.JMenuItem getMenuItem(java.lang.String cmd)
Fetch the menu item that was created for the given command.- Parameters:
cmd- Name of the action.- Returns:
- item created for the given command or null if one wasn't created.
-
getAction
protected javax.swing.Action getAction(java.lang.String cmd)
Fetch the action that was created for the given command.- Parameters:
cmd- Name of the action.- Returns:
- The action
-
createToolbar
private javax.swing.JToolBar createToolbar()
Create the toolbar. By default this reads the resource file for the definition of the toolbars.- Returns:
- The toolbar
-
createTool
protected java.awt.Component createTool(java.lang.String key)
Hook through which every toolbar item is created.- Parameters:
key-- Returns:
- Toolbar item
-
createToolbarButton
protected javax.swing.AbstractButton createToolbarButton(java.lang.String key)
Create a button to go inside of the toolbar. By default this will load an image resource. The image filename is relative to the classpath (including the '.' directory if its a part of the classpath), and may either be in a JAR file or a separate file.- Parameters:
key- The key in the resource file to serve as the basis of lookups.- Returns:
- Button
-
createMenubar
private javax.swing.JMenuBar createMenubar()
Create the menubar for the app. By default this pulls the definition of the menu from the associated resource file.- Returns:
- Menubar
-
addMacrosMenuBar
private void addMacrosMenuBar(javax.swing.JMenuBar menuBar)
-
addNormalMenuBar
private void addNormalMenuBar(javax.swing.JMenuBar menuBar)
-
addHelpMenuBar
private void addHelpMenuBar(javax.swing.JMenuBar menuBar)
-
createMenu
javax.swing.JMenu createMenu(java.lang.String key)
Create a menu for the app. By default this pulls the definition of the menu from the associated resource file.- Parameters:
key-- Returns:
- Menu created
-
setMenuState
void setMenuState()
-
doNew
void doNew()
-
setMenuNBO
void setMenuNBO(javax.swing.JMenu item)
- Parameters:
item-
-
startNBO
void startNBO(java.lang.String type)
-
print
public void print()
added print command, so that it can be used by RasmolScriptHandler
-
createImageStatus
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"- Parameters:
fileName-type-text_or_bytes-quality-- Returns:
- null (you do it) or a message starting with OK or an error message
-
createWebExport
void createWebExport()
-
createSurfaceTool
void createSurfaceTool()
-
getUserDirectory
public static java.io.File getUserDirectory()
Returns a new File referenced by the property 'user.dir', or null if the property is not defined.- Returns:
- a File to the user directory
-
openFile
void openFile()
-
notifyFileOpen
void notifyFileOpen(java.lang.String fullPathName, java.lang.String title)
-
resizeInnerPanel
int[] resizeInnerPanel(java.lang.String data)
-
resizeDisplay
void resizeDisplay(int width, int height)
-
updateLabels
void updateLabels()
-
nioRunContent
public void nioRunContent(JsonNioServer jns)
- Specified by:
nioRunContentin interfaceJsonNioClient
-
nioClosed
public void nioClosed(JsonNioServer jns)
- Specified by:
nioClosedin interfaceJsonNioClient
-
setBannerLabel
public void setBannerLabel(java.lang.String label)
- Specified by:
setBannerLabelin interfaceJsonNioClient
-
sendNioMessage
void sendNioMessage(int port, java.lang.String strInfo)
-
getJsonNioServer
public static JsonNioServer getJsonNioServer()
-
syncScript
public void syncScript(java.lang.String script)
-
getNBOService
public NBOService getNBOService()
-
updateConsoleFont
public void updateConsoleFont()
-
getPreference
public java.lang.Object getPreference(java.lang.String key)
-
-