|
||||||||||||
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 Manager
public void setLoaded(boolean set)
public void init()
public void start()
public void stop()
public java.lang.String getLastUsedDirectory()
getLastUsedDirectory
in interface Manager
public void setLastUsedDirectory(java.lang.String dir)
setLastUsedDirectory
in interface Manager
public void colorAction()
colorAction
in interface Manager
public void displayAction()
displayAction
in interface Manager
public void ribbonDisplayAction()
public void renderingAction()
renderingAction
in interface Manager
public void removeRamachandranDialog(Viewer viewer)
removeRamachandranDialog
in interface Manager
public void removeRamachandranDialog(Structure structure)
removeRamachandranDialog
in interface Manager
public RamachandranViewer getRamachandranViewer(Structure structure)
getRamachandranViewer
in interface Manager
public ListerDialog getDataListerDialog()
getDataListerDialog
in interface Manager
public void loadFile(java.io.File f)
public void displayErrorMessage(java.lang.String t)
Manager
displayErrorMessage
in interface Manager
t
- text of the messagepublic void displayExceptionMessage(java.lang.String t, java.lang.Exception ex)
Manager
displayExceptionMessage
in interface Manager
t
- text of the messageex
- the thrown exception objectpublic void displayWaitScreen()
Manager
displayWaitScreen
in interface Manager
public void removeWaitScreen()
Manager
removeWaitScreen
in interface Manager
public void displayMessage(java.lang.String text)
Manager
displayMessage
in interface Manager
text
- text of the messagepublic void destructor()
public void closeSequencePanel()
Manager
closeSequencePanel
in interface Manager
public void closeBuilderDialog()
Manager
closeBuilderDialog
in interface Manager
public void closeMonitorDialog()
Manager
closeMonitorDialog
in interface Manager
public void updateBuilderDialog()
Manager
updateBuilderDialog
in interface Manager
public void updateMonitorDialog()
Manager
updateMonitorDialog
in interface Manager
public MonitorDialog getMonitorDialog()
Manager
getMonitorDialog
in interface Manager
public void closeStructureBrowserPanel()
public void doRcsbLoad(java.lang.String in)
Manager
doRcsbLoad
in interface Manager
in
- PDB id of the structurepublic boolean isResetView()
isResetView
in interface Manager
public void addEntry(Entry entry, boolean resetView)
Manager
addEntry
in interface Manager
entry
- 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 Manager
public void removeCloseListener(Entry entry)
removeCloseListener
in interface Manager
public void removeCloseMenuItem(FileCloseListener listener)
removeCloseMenuItem
in interface Manager
public void clearEntries(boolean silent)
Manager
clearEntries
in interface Manager
public void clearStructureEntries()
Manager
clearStructureEntries
in interface Manager
public java.awt.Rectangle getContainerBounds()
Manager
getContainerBounds
in interface Manager
public DisplayDialog getDisplayDialog()
Manager
DisplayDialog
.
getDisplayDialog
in interface Manager
public boolean getDisplayDialogStatus()
Manager
getDisplayDialogStatus
in interface Manager
public void setBackgroundColor(float[] color)
Manager
setBackgroundColor
in interface Manager
public void setSelectionMode(int mode)
Manager
setSelectionMode
in interface Manager
mode
- public void setDisplayDialogStatus(boolean f)
Manager
setDisplayDialogStatus
in interface Manager
f
- open dialog flagpublic void setDisplayDialogStatus(boolean f, DisplayDialog displayDialog)
Manager
setDisplayDialogStatus
in interface Manager
f
- displayDialog
- public void updateAppearance()
Manager
updateAppearance
in interface Manager
public void updateView()
updateView
in interface Manager
public StylesPreferences getPreferences()
Manager
getPreferences
in interface Manager
public StructureViewer getStructureViewer()
Manager
getStructureViewer
in interface Manager
public SequenceViewer getSequenceViewer()
Manager
getSequenceViewer
in interface Manager
public StructureBrowser getStructureBrowser()
getStructureBrowser
in interface Manager
public static void main(java.lang.String[] args)
public void loadFragment(java.lang.String id)
Manager
loadFragment
in interface Manager
id
- identification number of the fragment in the librarypublic void updateBoundWaters()
Manager
updateBoundWaters
in interface Manager
public void updateMouseResponse(int f)
Manager
updateMouseResponse
in interface Manager
f
- integer value from 1 to 5, with 5 being the fastest response speed.public void setSeparateMotion(boolean flag)
Manager
setSeparateMotion
in interface Manager
flag
- public void setUndo(boolean enabled)
Manager
setUndo
in interface Manager
enabled
- boolean that indicates whether the undo mode should be enabledpublic void updateToolbar()
Manager
updateToolbar
in interface Manager
public void displayRamachandranPlot(Structure structure)
displayRamachandranPlot
in interface Manager
public boolean getSuperimpose()
getSuperimpose
in interface Manager
public void setSuperimpose(boolean flag)
setSuperimpose
in interface Manager
public void renameEntry(Entry e, java.lang.String name)
Manager
renameEntry
in interface Manager
e
- Entry to be renamedname
- new namepublic void setElement(java.lang.String element)
setElement
in interface ElementSettable
public void closeCommandPanel()
closeCommandPanel
in interface Manager
public void displayTextMessage(java.lang.String title, java.lang.String text)
displayTextMessage
in interface Manager
public void openImagePreviewPanel()
openImagePreviewPanel
in interface Manager
public void closeImagePreviewPanel()
closeImagePreviewPanel
in interface Manager
public ImagePreviewPanel getImagePreviewPanel()
getImagePreviewPanel
in interface Manager
public WBManager getWBManager()
getWBManager
in interface Manager
public RasmolReader getRasmolReader()
getRasmolReader
in interface Manager
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |