Package org.openscience.jmol.app.nbo
Class NBODialog
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Dialog
-
- javax.swing.JDialog
-
- All Implemented Interfaces:
java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,javax.accessibility.Accessible
,javax.swing.RootPaneContainer
,javax.swing.WindowConstants
public class NBODialog extends NBODialogSearch
A dialog for interacting with NBOServer The NBODialog class includes all public entry points. In addition, there are several superclasses: JDialog NBODialogConfig -- NBODialogModel ---- NBODialogRun ------ NBODialogView -------- NBODialogSearch ---------- NBODialog All of these are one object, just separated this way to allow some compartmentalization of tasks along the lines of NBOPro6.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openscience.jmol.app.nbo.NBODialogConfig
NBODialogConfig.StyledComboBoxUI
-
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
-
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
-
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isSet
private javax.swing.JTextField
jtRawInput
-
Fields inherited from class org.openscience.jmol.app.nbo.NBODialogSearch
at1, at2, bas2, bend, col, comboBox, dip, e2, home, keyProp, keyW, listM, mo, nbo, nbo1, nbo2, nlmo, npa, nrt, op, opBas, operator, orb, orbStart, row, splitPane, steric, unit, viewAll
-
Fields inherited from class org.openscience.jmol.app.nbo.NBODialogView
basis, basSet, btnProf, btnShow, btnView3D, camFieldIDs, camFields, contourFieldIDs, contourFields, dispBox, dList, goBtn2, iLast, iLastD, inLobes, keywordNumber, list, lists, model, numStor, oneD, orbBox, pLab, planeFieldIDs, planeFields, positiveSign, profBox, selectPanel, vectorFieldIDs, vectorFields, VIEW_STATE_CAMERA, VIEW_STATE_MAIN, VIEW_STATE_PLANE, VIEW_STATE_VECTOR, viewState, vLab
-
Fields inherited from class org.openscience.jmol.app.nbo.NBODialogRun
choose3C, chooseBonds, delDeloc, deleteAtomBlocks, deleteBlocks, deleteElements, deleteGeminal, deleteLewisOrbs, deleteVicinal, delOrbs, delOrbsL, editOps, fileData, fileData2, keywordButtons, keywordList, lastEss, nboKeywords, plotFileName, valid3C, validBonds, validLP
-
Fields inherited from class org.openscience.jmol.app.nbo.NBODialogModel
atomNumBox, CONFIRM_SAVE, CONFIRM_VIEWOUTPUT, currVal, editAction, editBox, editMode, jbEdit, jtJmolInput, jtLineInput, jtSelectAtoms, savePath, selected, tfExtS, tfFolderS, tfNameS, titleColor, titleFont, usePath, valLab, VALUE
-
Fields inherited from class org.openscience.jmol.app.nbo.NBODialogConfig
alterHelp, bodyText, browse, chbHelp, clipHelp, DEFAULT_PARAMS, DIALOG_CONFIG, DIALOG_LIST, DIALOG_MODEL, DIALOG_RUN, DIALOG_SEARCH, DIALOG_VIEW, dialogMode, fuseHelp, haveService, helpBtn, helpConfig, helpModel, icon, inputFile, isJmolNBO, jCheckAtomNum, jCheckNboView, jmolAtomCount, jobStem, jpNboOutput, linkHelp, lonePairs, mainButtons, modelButton, mutateHelp, nboFont, nboService, nboView, rebondHelp, reqInfo, runButton, saveHelp, searchButton, searchHelp, sep, serverPathLabel, showHelp, showRunDone, showWorkPathDone, statusLab, statusPanel, switchHelp, symHelp, tfExt, tfFolder, tfName, topPanel, twistHelp, unifyHelp, useHelp, viewButton, vwr, workingPath
-
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
Constructor Summary
Constructors Constructor Description NBODialog(javax.swing.JFrame f, Viewer vwr, NBOService nboService)
Creates a dialog for getting info related to output frames in nbo format.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLine(int type, java.lang.String line)
(package private) void
alert(java.lang.String msg)
protected javax.swing.JPanel
buildStatusPanel()
private boolean
checkEnabled()
protected void
close()
protected boolean
connect()
private void
createDialog(int width, int height)
private javax.swing.JButton
getMainButton(java.lang.String path, char mode)
void
notifyCallback(CBK type, java.lang.Object[] data)
Callback from Jmol Viewer indicating user actionsvoid
openPanel(char type)
protected void
rawInput()
void
setStatus(java.lang.String statusInfo)
private void
setThis(javax.swing.JButton btn)
protected void
showErrorFile(java.lang.String err)
protected void
showHelp(java.lang.String key)
protected void
showWorkpathDialog(java.lang.String workingPath)
-
Methods inherited from class org.openscience.jmol.app.nbo.NBODialogSearch
basChange, buildSearch, changeKey, getList1, goSearchClicked, labelAt, listClicked, notifyCallbackS, opBas, rawInputS, setLists, showMessage
-
Methods inherited from class org.openscience.jmol.app.nbo.NBODialogView
basisSel, buildView, cam1, cam2, cam3, cam4, cam5, cam6, dispBox, goViewClicked, nboResetV, notifyCallbackV, plane, processOrbitalList, rawInputV, select, showOrbJmol, showOrbJmol, showView1D2D, stip, vector, view3D
-
Methods inherited from class org.openscience.jmol.app.nbo.NBODialogRun
addBond, addChooseKeylist, addDelFieldEl, addManualEditor, addNBOKeylist, buildRun, deleteBlocks, editOpChanged, essChanged, getChooseList, getCurrentChooseList, getDelList, getFileContents, goRunClicked, readInputFile, removeListParams, resetBadChooseList, resetRunFile, runS, setBonds, showConfDialog, showInputDialog
-
Methods inherited from class org.openscience.jmol.app.nbo.NBODialogModel
actionSelected, buildModel, clearModel, clearSelected, clip, editModel, getModel, getSymmetry, getValue, helpDialogM, loadModel, modelCmd, modelOut, notifyCallbackM, notifyLoadModel, rawInputM, saveHistoryM, saveModel, showConfirmationDialog, showSaveDialog, showWorkpathDialogM
-
Methods inherited from class org.openscience.jmol.app.nbo.NBODialogConfig
appendOutput, appendOutputWithCaret, appendToFile, buildConfig, buildTopPanel, centerDialog, checkJmolNBO, clearInputFile, clearOutput, enableComponentsR, folderBox, getExt, getHelp, getJobStem, nboReset, newNBOFile, placeNBODialog, rawCmd, resetColorScheme, saveHistory, saveWorkHistory, setComponents, setInputFile, setNBOColorScheme, setVisible, showAtomNums, showNboOutput, showNBOPathDialog, showSelected
-
Methods inherited from class javax.swing.JDialog
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
-
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
-
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, 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
-
Methods inherited from class java.awt.Container
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
-
Methods inherited from class java.awt.Component
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
-
-
-
-
Constructor Detail
-
NBODialog
public NBODialog(javax.swing.JFrame f, Viewer vwr, NBOService nboService)
Creates a dialog for getting info related to output frames in nbo format.- Parameters:
f
- The frame assosiated with the dialogvwr
- The interacting display we are reproducing (source of view angle info etc)nboService
-
-
-
Method Detail
-
createDialog
private void createDialog(int width, int height)
-
getMainButton
private javax.swing.JButton getMainButton(java.lang.String path, char mode)
-
showWorkpathDialog
protected void showWorkpathDialog(java.lang.String workingPath)
- Specified by:
showWorkpathDialog
in classNBODialogConfig
-
showErrorFile
protected void showErrorFile(java.lang.String err)
-
buildStatusPanel
protected javax.swing.JPanel buildStatusPanel()
-
close
protected void close()
-
checkEnabled
private boolean checkEnabled()
-
connect
protected boolean connect()
- Specified by:
connect
in classNBODialogConfig
-
openPanel
public void openPanel(char type)
-
setThis
private void setThis(javax.swing.JButton btn)
-
rawInput
protected void rawInput()
-
notifyCallback
public void notifyCallback(CBK type, java.lang.Object[] data)
Callback from Jmol Viewer indicating user actions- Parameters:
type
-data
-
-
alert
void alert(java.lang.String msg)
-
showHelp
protected void showHelp(java.lang.String key)
-
addLine
public void addLine(int type, java.lang.String line)
-
setStatus
public void setStatus(java.lang.String statusInfo)
-
-