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

Class BidirectionalBarDelegate

               object --+                                    
                        |                                    
        sip.simplewrapper --+                                
                            |                                
                  sip.wrapper --+                            
                                |                            
             PyQt5.QtCore.QObject --+                        
                                    |                        
PyQt5.QtWidgets.QAbstractItemDelegate --+                    
                                        |                    
      PyQt5.QtWidgets.QStyledItemDelegate --+                
                                            |                
                      AbstractBaseRowDelegate --+            
                                                |            
              AbstractSingleElementHeightDelegate --+        
                                                    |        
                  AbstractDoubleElementHeightDelegate --+    
                                                        |    
                                AbstractBarHeightDelegate --+
                                                            |
                                                           BidirectionalBarDelegate

Delegate used for bar charts that represent positive and negative values. Positive values are drawn above the midpoint of the bar and negative values below.

Nested Classes [hide private]

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
float
_getScalingFactor(self, min_val, max_val)
Get a scaling factor to adjust a data value by.
tuple of QtCore.QPointF
getBarCoordinates(self, option, index)
Returns the coordinates for the bar to be drawn in the element at the specified index

Inherited from AbstractBarHeightDelegate: getScaledValue

Inherited from AbstractDoubleElementHeightDelegate: __init__

Inherited from AbstractSingleElementHeightDelegate: heightHint, sizeHint

Inherited from AbstractBaseRowDelegate: paint

Inherited from PyQt5.QtWidgets.QStyledItemDelegate: createEditor, displayText, editorEvent, eventFilter, initStyleOption, itemEditorFactory, setEditorData, setItemEditorFactory, setModelData, updateEditorGeometry

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: closeEditor, commitData, destroyEditor, helpEvent, sizeHintChanged

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

Inherited from sip.simplewrapper: __new__

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

Class Variables [hide private]
enum.Enum or None ANNOTATION_TYPE = (<ANNOTATION_TYPES.hydrophobicity: 11>, <ANN...
The annotation type associated with this class

Inherited from AbstractBaseRowDelegate: SAMPLE_DATA

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EditNextItem, EditPreviousItem, NoHint, RevertModelCache, SubmitModelCache

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from AbstractDoubleElementHeightDelegate: element_height

Inherited from object: __class__

Method Details [hide private]

_getScalingFactor(self, min_val, max_val)

 

Get a scaling factor to adjust a data value by.

Parameters:
  • min_val (float) - Minimum value
  • max_val (float) - Max value
Returns: float
Scaling factor
Overrides: AbstractBarHeightDelegate._getScalingFactor

getBarCoordinates(self, option, index)

 

Returns the coordinates for the bar to be drawn in the element at the specified index

Parameters:
  • option - The option to modify with cached information
  • index - The index in the model
Returns: tuple of QtCore.QPointF
The top left and bottom right coordinates of the bar
Overrides: AbstractBarHeightDelegate.getBarCoordinates
(inherited documentation)

Class Variable Details [hide private]

ANNOTATION_TYPE

The annotation type associated with this class
Type:
enum.Enum or None
Value:
(<ANNOTATION_TYPES.hydrophobicity: 11>,
 <ANNOTATION_TYPES.mean_hydrophobicity: 2>)