Package schrodinger :: Package application :: Package canvas :: Module clustergui :: Class DistanceMatrixPlotDialog
[hide private]
[frames] | no frames]

Class DistanceMatrixPlotDialog

    PyQt4.QtGui.QMainWindow --+    
                              |    
ui.qt.appframework.AppFramework --+
                                  |
                                 DistanceMatrixPlotDialog

A class which displays a dialog with a plot of the distance matrix associated with the most recent clustering

Instance Methods [hide private]
 
__init__(self, canvas_cluster, num_clusters_edit, distance_matrix_callback, structures=True)
Create an instance of the dialog.
 
setPlotType(self, plot_type)
Called when the plot type combobox is changed
 
setColormap(self, color_map)
Called when the color map combobox is changed
 
redraw(self)
Force a redraw with refetching of the distance map data
 
draw(self)
Called when the plot type option menu is changed
 
show(self)
Show the plot dialog
 
close(self)
Dismiss the window
 
click(self, event)
Click in plot handler
 
drawStructure(self, canv, eid, title_label)
Draw the structure from the project with entry id 'eid' in the Canvas 'canv'

Inherited from ui.qt.appframework.AppFramework: addButtonToBottomLayout, addCentralWidget, askOverwrite, askOverwriteIfNecessary, closeEvent, closePanel, createMenus, error, exec_, getApp, getInputFile, getInputSource, getOpenFileName, getOpenFileNames, help, info, interior, isDockableInMaestro, monitorJob, processEvents, question, quitPanel, restoreCursor, runCommand, setButtonEnabled, setButtonState, setJobViewname, setJobname, setProgress, setProgressError, setWaitCursor, setupJobParameters, showEvent, timerEvent, trackJobProgress, updateJobname, updateStatusBar, warning

Inherited from ui.qt.appframework.AppFramework (private): _applyStartDialogParams, _commandCallback, _createMenuItem, _jobprefersettings, _makeItem, _makeMenu, _periodicCallback, _populateEmptyJobname, _read, _reset, _setButtonDefaults, _settings, _setupBottomButtons, _setupDESResIcon, _start, _start_wrapper, _updatePanelJobname, _updateToolWindowFlag, _write

Class Variables [hide private]
  PLOT_TYPES = ["Cluster Order", "Original Order"]

Inherited from ui.qt.appframework.AppFramework: jobCompleted, start_wrapper_timeout

Method Details [hide private]

__init__(self, canvas_cluster, num_clusters_edit, distance_matrix_callback, structures=True)
(Constructor)

 

Create an instance of the dialog.

Parameters:
  • canvas_clsuter - object that contains the clustering statistics
  • num_clusters_edit (QLineEdit) - the widget that contains the number of clusters
  • distance_matrix_callback (function) - function called with the IDs of the structures which are clicked
  • structures (bool) - True if the distance matrix should show structures when the user clicks on the plot, False if not
  • canvas_cluster (CanvasFingerprintCluster object)
Overrides: ui.qt.appframework.AppFramework.__init__

setPlotType(self, plot_type)

 

Called when the plot type combobox is changed

Parameters:
  • plot_type (string) - the new plot type

setColormap(self, color_map)

 

Called when the color map combobox is changed

Parameters:
  • color_map (string) - the new color map

show(self)

 

Show the plot dialog

Parameters:
  • also_raise - If True (default), the raise_ method will also be called on the window. If False it is not. This is important on some Window managers to ensure the window is placed on top of other windows.
  • also_activate - If True (default), the activateWindow method will also be called on the window. If False it is not. This is important on some Window managers to ensure the window is placed on top of other windows.
Overrides: ui.qt.appframework.AppFramework.show