Class NMR_JmolPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.openscience.jmol.app.jmolpanel.JmolPanel
org.openscience.jmol.app.janocchio.NMR_JmolPanel
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible,JsonNioClient,SplashInterface
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classclassclassclassprivate class(package private) classclassclassclass(package private) classclassclassclassNested classes/interfaces inherited from class org.openscience.jmol.app.jmolpanel.JmolPanel
JmolPanel.AboutAction, JmolPanel.ActionChangedListener, JmolPanel.AnimButton, JmolPanel.AppCloser, JmolPanel.CloseAction, JmolPanel.ConsoleAction, JmolPanel.CopyImageAction, JmolPanel.CopyScriptAction, JmolPanel.CreditsAction, JmolPanel.ExecuteScriptAction, JmolPanel.ExitAction, JmolPanel.ExportAction, JmolPanel.GaussianAction, JmolPanel.NewAction, JmolPanel.NewwinAction, JmolPanel.OpenAction, JmolPanel.OpenMolAction, JmolPanel.OpenPdbAction, JmolPanel.OpenUrlAction, JmolPanel.PasteClipboardAction, JmolPanel.PovrayAction, JmolPanel.PrintAction, JmolPanel.RecentFilesAction, JmolPanel.ResizeAction, JmolPanel.ScriptEditorAction, JmolPanel.ScriptWindowAction, JmolPanel.SurfaceToolAction, JmolPanel.ToWebAction, JmolPanel.UguideAction, JmolPanel.ViewMeasurementTableAction, JmolPanel.WhatsNewAction, JmolPanel.WriteActionNested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyNested classes/interfaces inherited from interface org.openscience.jmol.app.jsonkiosk.JsonNioClient
JsonNioClient.TouchHandler -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static Pointstatic final Stringprotected static Fileprivate static final String(package private) JFileChooser(package private) static Boolean(package private) booleanprivate static final Stringprivate static final String(package private) static final int(package private) NmrAppletprivate NMR_DisplayPanelprivate NmrGuiMap(package private) FileChooserprivate static final String(package private) JFileChooserprivate static final String(package private) JFileChooserprivate static final String(package private) JFileChooserprivate static final String(package private) JFileChooserprivate static final StringFields inherited from class org.openscience.jmol.app.jmolpanel.JmolPanel
aboutAction, allowJavaConsole, appletContext, atomSetChooser, atomsetchooserAction, bannerFrame, clientService, closeAction, commands, consoleAction, consoleframe, copyImageAction, copyImageActionProperty, copyScriptAction, copyScriptActionProperty, creditsAction, display, EDITOR_WINDOW_NAME, editorAction, executeScriptAction, exitAction, exportAction, exportActionProperty, FILE_OPEN_WINDOW_NAME, frame, gaussianAction, gaussianDialog, guimap, historyFile, imageType, isPlugin, jmolApp, kioskFrame, measurementTable, menuItems, modelAdapter, myStatusListener, newAction, newwinAction, numWindows, openAction, openmolAction, openpdbAction, openurlAction, OUTSOCKET, pasteClipboardAction, pasteClipboardActionProperty, pcs, pluginFile, povrayAction, povrayActionProperty, preferencesDialog, printAction, printActionProperty, qualityJPG, qualityPNG, recentFiles, recentFilesAction, resizeAction, screenSize, SCRIPT_WINDOW_NAME, splash, startupHeight, startupWidth, status, surfaceTool, SURFACETOOL_WINDOW_NAME, surfaceToolAction, surfaceToolActionProperty, toolbar, toWebAction, toWebActionProperty, uguideAction, viewMeasurementTableAction, vwr, vwrOptions, WEB_MAKER_WINDOW_NAME, whatsnewAction, windowName, writeAction, writeActionPropertyFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface org.openscience.jmol.app.jsonkiosk.JsonNioClient
TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckLoadAndRun(String structureFile, Object fileData, String fileType) (package private) voidprotected voidprotected GuiMapprotected StatusBarprotected JToolBarCreate the toolbar.protected booleandoClose(boolean saveSize) protected static voiddumpContainer(Container c, String s) private static String(package private) javajs.util.BS[]protected void(package private) NmrMoleculegetDistanceJMolecule(javajs.util.BS mol, String[] labelArray, boolean forNOE) intprotected ImageIconvoidprotected voidgetMenuItem(String name) Fetch the menu item that was created for the given command.intprotected StringgetStringX(String cmd) static FileReturns a new File referenced by the property 'user.dir', or null if the property is not defined.(package private) Atom[]getViewerMeasurement(int vRow, int type) (package private) intgetViewerRow(int row, int type) protected Stringprotected void(package private) voidnotifyScriptCallback(String script) voidreadNmrData(File file) voidreadNmrDataJSON(File file) (package private) voidrunScriptWithCallback(Thread t, String command) protected voidprotected void(package private) voidsetCurrentDirectoryAll(File cDir) protected voidsetFrameLocation(Point loc, JmolPanel parent) protected voidprotected StringsetMenuKeys(String key, String tokens) opportunity to adjust menus for a custom applicationprotected voidprotected voidprotected voidsetupDnD()protected voidprotected static String[]Take the given string and chop it up into a series of strings on whitespace boundries.voidwriteNmrData(File file) Methods inherited from class org.openscience.jmol.app.jmolpanel.JmolPanel
addHelpMenuBar, addJmolProperties, addJmolProperty, addJmolWindowInfo, addJmolWindowInnerInfo, addMacrosMenu, addNormalMenuBar, addPluginMenu, createMenu, createMenubar, createMenuItem, createToolbarButton, getAction, getAndRegisterPlugin, getConsole, getInstanceWithParams, getJavaConsole, getJmolProperty, getJsonNioServer, getPluginOption, getPreference, isServer, newToolbar, nioClosed, print, processNioMessage, report, say, serverCycle, setCommandHooks, setMenuState, setPluginOption, setStatus, showStatus, updateConsoleFontMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, updateMethods 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, validateTreeMethods 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 Details
-
MIN_SIZE
static final int MIN_SIZE- See Also:
-
nmrDisplay
-
mainSplitPane
-
noeTable
-
coupleTable
-
frameCounter
-
labelSetter
-
populationDisplay
-
frameDeltaDisplay
-
currentDir
-
openChooser
FileChooser openChooser -
exportChooser
JFileChooser exportChooser -
saveNmrChooser
JFileChooser saveNmrChooser -
readNmrChooser
JFileChooser readNmrChooser -
saveNamfisChooser
JFileChooser saveNamfisChooser -
readNamfisChooser
JFileChooser readNamfisChooser -
nmrApplet
NmrApplet nmrApplet -
isApplet
boolean isApplet -
nmrguimap
-
border
-
haveBorder
-
htGuiChanges
-
saveNmrAction
- See Also:
-
readNmrAction
- See Also:
-
detachAppletAction
- See Also:
-
reattachAppletAction
- See Also:
-
writeNamfisAction
- See Also:
-
readNamfisAction
- See Also:
-
jumpBestFrameAction
- See Also:
-
labelNmrAction
- See Also:
-
chemFileProperty
- See Also:
-
htMessageCallbacks
-
-
Constructor Details
-
NMR_JmolPanel
-
-
Method Details
-
getMenuItem
Description copied from class:JmolPanelFetch the menu item that was created for the given command.- Overrides:
getMenuItemin classJmolPanel- Parameters:
name- Name of the action.- Returns:
- item created for the given command or null if one wasn't created.
-
getDistanceJMolecule
-
getAllMolecules
javajs.util.BS[] getAllMolecules() -
getWindowName
- Overrides:
getWindowNamein classJmolPanel
-
getFrameActions
- Overrides:
getFrameActionsin classJmolPanel- Returns:
- A list of Actions that is understood by the upper level application
-
getStringX
- Overrides:
getStringXin classJmolPanel
-
getIconX
-
createGuiMap
- Overrides:
createGuiMapin classJmolPanel
-
createStatusBar
- Overrides:
createStatusBarin classJmolPanel
-
createToolBar
Description copied from class:JmolPanelCreate the toolbar. By default this reads the resource file for the definition of the toolbars.- Overrides:
createToolBarin classJmolPanel- Returns:
- The toolbar
-
createDisplayAndAddStatusListener
protected void createDisplayAndAddStatusListener()- Overrides:
createDisplayAndAddStatusListenerin classJmolPanel
-
setupModelAdapterAndViewer
protected void setupModelAdapterAndViewer()- Overrides:
setupModelAdapterAndViewerin classJmolPanel
-
getDialogs
protected void getDialogs()- Overrides:
getDialogsin classJmolPanel
-
getMeasurementTable
protected void getMeasurementTable()- Overrides:
getMeasurementTablein classJmolPanel
-
setupDisplay
protected void setupDisplay()- Overrides:
setupDisplayin classJmolPanel
-
setFrameLocation
- Overrides:
setFrameLocationin classJmolPanel
-
setIntoFrame
protected void setIntoFrame()- Overrides:
setIntoFramein classJmolPanel
-
setupConsole
protected void setupConsole()- Overrides:
setupConsolein classJmolPanel
-
setupDnD
protected void setupDnD() -
setAtomChooser
protected void setAtomChooser()- Overrides:
setAtomChooserin classJmolPanel
-
launchMainFrame
protected void launchMainFrame()- Overrides:
launchMainFramein classJmolPanel
-
saveWindowSizes
protected void saveWindowSizes()- Overrides:
saveWindowSizesin classJmolPanel
-
getJavaConsole
public void getJavaConsole()- Overrides:
getJavaConsolein classJmolPanel
-
setMenuKeys
Description copied from class:JmolPanelopportunity to adjust menus for a custom application- Overrides:
setMenuKeysin classJmolPanel- Returns:
- possibly changed token string
-
doClose
protected boolean doClose(boolean saveSize) -
setCurrentDirectoryAll
-
getMinindex
public int getMinindex() -
getCurrentStructureFile
-
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
-
dumpContainer
-
tokenize
Take the given string and chop it up into a series of strings on whitespace boundries. This is useful for trying to get an array of strings out of the resource file.- Parameters:
input- String to chop- Returns:
- Strings chopped on whitespace boundries
-
writeNmrData
- Throws:
IOException
-
readNmrData
- Throws:
Exception
-
readNmrDataJSON
- Throws:
Exception
-
checkLoadAndRun
-
firstLineOf
-
runScriptWithCallback
-
notifyScriptCallback
-
getFrameAtomCount
public int getFrameAtomCount() -
getViewerMeasurement
-
getViewerRow
int getViewerRow(int row, int type) -
clearViewerSelection
void clearViewerSelection()
-