|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
Viewer
| Field Summary | |
static boolean |
resetViewOnLoad
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
Viewer()
|
|
| Method Summary | |
void |
addEntry(Entry entry,
boolean resetView)
Adds the specified Entry to the application. |
void |
clearEntries(boolean silent)
Removes all entries from the application. |
void |
clearStructureEntries()
Clear only the entries that have structure representation. |
void |
closeBuilderDialog()
Closes the builder dialog |
void |
closeCommandPanel()
|
void |
closeImagePreviewPanel()
|
void |
closeMonitorDialog()
Closes the dialog that manages display markers |
void |
closeSequencePanel()
Closes the panel that displays sequence data |
void |
closeStructureBrowserPanel()
|
void |
colorAction()
|
void |
destructor()
|
void |
displayAction()
|
void |
displayErrorMessage(java.lang.String t)
Displays an error message. |
void |
displayExceptionMessage(java.lang.String t,
java.lang.Exception ex)
Displays an error message with an option to display details of the exception. |
void |
displayMessage(java.lang.String text)
Displays a message in an information dialog. |
void |
displayRamachandranPlot(Structure structure)
|
void |
displayTextMessage(java.lang.String title,
java.lang.String text)
|
void |
displayWaitScreen()
Displays a wait screen. |
void |
doRcsbLoad(java.lang.String in)
Loads entries from the PDB ftp server. |
javax.swing.JFrame |
getApplicationFrame()
Returns a reference to the frame of the main application. |
java.awt.Rectangle |
getContainerBounds()
Returns bounds of the application frame as a Rectangle object |
ListerDialog |
getDataListerDialog()
|
DisplayDialog |
getDisplayDialog()
Returns a reference to the currently displayed DisplayDialog. |
boolean |
getDisplayDialogStatus()
Indicates whether any dialogs are currently open. |
ImagePreviewPanel |
getImagePreviewPanel()
|
java.lang.String |
getLastUsedDirectory()
|
MonitorDialog |
getMonitorDialog()
Returns a reference to the currently open dialog that manages current display markers (distances, hydrogen bonds, labels, etc) |
StylesPreferences |
getPreferences()
Returns current StylesPreferences. |
RamachandranViewer |
getRamachandranViewer(Structure structure)
|
RasmolReader |
getRasmolReader()
|
SequenceViewer |
getSequenceViewer()
Returns a reference to SequenceViewer |
StructureBrowser |
getStructureBrowser()
|
StructureViewer |
getStructureViewer()
Returns a reference to the StructureViewer |
boolean |
getSuperimpose()
|
WBManager |
getWBManager()
|
void |
init()
|
boolean |
isResetView()
|
void |
loadFile(java.io.File f)
|
void |
loadFragment(java.lang.String id)
Loads fragment with specified id into the structure viewer. |
static void |
main(java.lang.String[] args)
|
void |
openImagePreviewPanel()
|
void |
openSequence()
|
void |
removeCloseListener(Entry entry)
Called by the structure or sequence viewer when an entry is added or removed internally, without clicking the close menu items |
void |
removeCloseMenuItem(FileCloseListener listener)
|
void |
removeRamachandranDialog(Structure structure)
|
void |
removeRamachandranDialog(Viewer viewer)
|
void |
removeWaitScreen()
Removes wait screen. |
void |
renameEntry(Entry e,
java.lang.String name)
Triggers renaming of the specified Entry |
void |
renderingAction()
|
void |
ribbonDisplayAction()
|
void |
setBackgroundColor(float[] color)
Sets background of the 3D display area. |
void |
setDisplayDialogStatus(boolean f)
Sets a flag that indicates whether there are any dialogs open. |
void |
setDisplayDialogStatus(boolean f,
DisplayDialog displayDialog)
Sets a flag indicating whether a dialog is open, and sets the reference to the currently open dialog. |
void |
setElement(java.lang.String element)
This method is called by element palette to set element selection |
void |
setLastUsedDirectory(java.lang.String dir)
|
void |
setLoaded(boolean set)
|
void |
setSelectionMode(int mode)
Sets selection mode to either atom or residue level |
void |
setSeparateMotion(boolean flag)
Sets mode of inndependent motion |
void |
setSuperimpose(boolean flag)
|
void |
setUndo(boolean enabled)
Sets undo mode |
void |
start()
|
void |
stop()
|
void |
updateAppearance()
Causes the main application to refresh all visual elements. |
void |
updateBoundWaters()
Update display of crystallographic waters |
void |
updateBuilderDialog()
This method is called when the builder dialog is updated, e.g. |
void |
updateMonitorDialog()
This method is called when any change has been made to the display markers and causes the dialog to redraw itself to reflect the change. |
void |
updateMouseResponse(int f)
Update variables that control speed of the structure motion response to the motion of the mouse pointer |
void |
updateToolbar()
Update the toolbar in response to any change in its configuration. |
void |
updateView()
This method is different from updateAppearance, in that it doesn't mark all renderables as dirty, but only forces the geometry viewer to update the view by calling its display method. |
| Methods inherited from class java.applet.Applet |
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus |
| Methods inherited from class java.awt.Panel |
addNotify |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean resetViewOnLoad
| Constructor Detail |
public Viewer()
| Method Detail |
public javax.swing.JFrame getApplicationFrame()
Manager
getApplicationFrame in interface Managerpublic void setLoaded(boolean set)
public void init()
public void start()
public void stop()
public java.lang.String getLastUsedDirectory()
getLastUsedDirectory in interface Managerpublic void setLastUsedDirectory(java.lang.String dir)
setLastUsedDirectory in interface Managerpublic void colorAction()
colorAction in interface Managerpublic void displayAction()
displayAction in interface Managerpublic void ribbonDisplayAction()
public void renderingAction()
renderingAction in interface Managerpublic void removeRamachandranDialog(Viewer viewer)
removeRamachandranDialog in interface Managerpublic void removeRamachandranDialog(Structure structure)
removeRamachandranDialog in interface Managerpublic RamachandranViewer getRamachandranViewer(Structure structure)
getRamachandranViewer in interface Managerpublic ListerDialog getDataListerDialog()
getDataListerDialog in interface Managerpublic void loadFile(java.io.File f)
public void displayErrorMessage(java.lang.String t)
Manager
displayErrorMessage in interface Managert - text of the message
public void displayExceptionMessage(java.lang.String t,
java.lang.Exception ex)
Manager
displayExceptionMessage in interface Managert - text of the messageex - the thrown exception objectpublic void displayWaitScreen()
Manager
displayWaitScreen in interface Managerpublic void removeWaitScreen()
Manager
removeWaitScreen in interface Managerpublic void displayMessage(java.lang.String text)
Manager
displayMessage in interface Managertext - text of the messagepublic void destructor()
public void closeSequencePanel()
Manager
closeSequencePanel in interface Managerpublic void closeBuilderDialog()
Manager
closeBuilderDialog in interface Managerpublic void closeMonitorDialog()
Manager
closeMonitorDialog in interface Managerpublic void updateBuilderDialog()
Manager
updateBuilderDialog in interface Managerpublic void updateMonitorDialog()
Manager
updateMonitorDialog in interface Managerpublic MonitorDialog getMonitorDialog()
Manager
getMonitorDialog in interface Managerpublic void closeStructureBrowserPanel()
public void doRcsbLoad(java.lang.String in)
Manager
doRcsbLoad in interface Managerin - PDB id of the structurepublic boolean isResetView()
isResetView in interface Manager
public void addEntry(Entry entry,
boolean resetView)
Manager
addEntry in interface Managerentry - the Entry object that should be loadedresetView - indicates whether the view should be redrawn. If multiple entries are loaded, should be set to false
to minimize repainting of the entire display after each addition.public void openSequence()
openSequence in interface Managerpublic void removeCloseListener(Entry entry)
removeCloseListener in interface Managerpublic void removeCloseMenuItem(FileCloseListener listener)
removeCloseMenuItem in interface Managerpublic void clearEntries(boolean silent)
Manager
clearEntries in interface Managerpublic void clearStructureEntries()
Manager
clearStructureEntries in interface Managerpublic java.awt.Rectangle getContainerBounds()
Manager
getContainerBounds in interface Managerpublic DisplayDialog getDisplayDialog()
ManagerDisplayDialog.
getDisplayDialog in interface Managerpublic boolean getDisplayDialogStatus()
Manager
getDisplayDialogStatus in interface Managerpublic void setBackgroundColor(float[] color)
Manager
setBackgroundColor in interface Managerpublic void setSelectionMode(int mode)
Manager
setSelectionMode in interface Managermode - public void setDisplayDialogStatus(boolean f)
Manager
setDisplayDialogStatus in interface Managerf - open dialog flag
public void setDisplayDialogStatus(boolean f,
DisplayDialog displayDialog)
Manager
setDisplayDialogStatus in interface Managerf - displayDialog - public void updateAppearance()
Manager
updateAppearance in interface Managerpublic void updateView()
updateView in interface Managerpublic StylesPreferences getPreferences()
Manager
getPreferences in interface Managerpublic StructureViewer getStructureViewer()
Manager
getStructureViewer in interface Managerpublic SequenceViewer getSequenceViewer()
Manager
getSequenceViewer in interface Managerpublic StructureBrowser getStructureBrowser()
getStructureBrowser in interface Managerpublic static void main(java.lang.String[] args)
public void loadFragment(java.lang.String id)
Manager
loadFragment in interface Managerid - identification number of the fragment in the librarypublic void updateBoundWaters()
Manager
updateBoundWaters in interface Managerpublic void updateMouseResponse(int f)
Manager
updateMouseResponse in interface Managerf - integer value from 1 to 5, with 5 being the fastest response speed.public void setSeparateMotion(boolean flag)
Manager
setSeparateMotion in interface Managerflag - public void setUndo(boolean enabled)
Manager
setUndo in interface Managerenabled - boolean that indicates whether the undo mode should be enabledpublic void updateToolbar()
Manager
updateToolbar in interface Managerpublic void displayRamachandranPlot(Structure structure)
displayRamachandranPlot in interface Managerpublic boolean getSuperimpose()
getSuperimpose in interface Managerpublic void setSuperimpose(boolean flag)
setSuperimpose in interface Manager
public void renameEntry(Entry e,
java.lang.String name)
Manager
renameEntry in interface Managere - Entry to be renamedname - new namepublic void setElement(java.lang.String element)
setElement in interface ElementSettablepublic void closeCommandPanel()
closeCommandPanel in interface Manager
public void displayTextMessage(java.lang.String title,
java.lang.String text)
displayTextMessage in interface Managerpublic void openImagePreviewPanel()
openImagePreviewPanel in interface Managerpublic void closeImagePreviewPanel()
closeImagePreviewPanel in interface Managerpublic ImagePreviewPanel getImagePreviewPanel()
getImagePreviewPanel in interface Managerpublic WBManager getWBManager()
getWBManager in interface Managerpublic RasmolReader getRasmolReader()
getRasmolReader in interface Manager
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||