Package schrodinger :: Package application :: Package msv :: Package gui :: Module delegates :: Class SequenceLogoDelegate
[hide private]
[frames] | no frames]

Class SequenceLogoDelegate

           object --+                            
                    |                            
    sip.simplewrapper --+                        
                        |                        
              sip.wrapper --+                    
                            |                    
         PyQt4.QtCore.QObject --+                
                                |                
PyQt4.QtGui.QAbstractItemDelegate --+            
                                    |            
      PyQt4.QtGui.QStyledItemDelegate --+        
                                        |        
                          BaseRowDelegate --+    
                                            |    
                  DoubleElementHeightDelegate --+
                                                |
                                               SequenceLogoDelegate

This delegate is used to draw scaled residue 1-letter code at each alignment position. The letters need to be drawn from bottom to top, in the order of increasing frequency,

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
 
_paintSelection(self, painter, option, index)
We want the selection painted in the default way, but without colors
 
_paintDefault(self, painter, option, index, use_color_dict=True)
Draws sequence logo according to bits and frequencies of residues at each position

Inherited from DoubleElementHeightDelegate: sizeHint

Inherited from BaseRowDelegate: clearCache, helpEvent, initStyleOption, paint

Inherited from BaseRowDelegate (private): _getSelectionText, _getText

Inherited from PyQt4.QtGui.QStyledItemDelegate: createEditor, displayText, editorEvent, eventFilter, itemEditorFactory, setEditorData, setItemEditorFactory, setModelData, updateEditorGeometry

Inherited from PyQt4.QtGui.QAbstractItemDelegate: closeEditor, commitData, elidedText, sizeHintChanged

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  ANNOTATION_TYPE = <ANNOTATION_TYPES.sequence_logo: 7>
hash(x)

Inherited from PyQt4.QtGui.QAbstractItemDelegate: EditNextItem, EditPreviousItem, NoHint, RevertModelCache, SubmitModelCache

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from DoubleElementHeightDelegate: element_height

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_paintSelection(self, painter, option, index)

 

We want the selection painted in the default way, but without colors

Parameters:
  • painter - The painter for the cell
  • option - The option for the cell
  • index - The index in the table
Overrides: BaseRowDelegate._paintSelection

_paintDefault(self, painter, option, index, use_color_dict=True)

 

Draws sequence logo according to bits and frequencies of residues at each position

Parameters:
  • option (QtGui.QStyleOptionViewItemV4) - The option to modify with cached information
  • index (QtCore.QModelIndex) - The index in the model
  • use_color_dict (bool) - Whether to use the color dict to paint text
Overrides: BaseRowDelegate._paintDefault