method returns a circular gradient depending on a given center, radius and color
Parameters: |
|
---|---|
Returns: | a gradient |
Return type: | QRadialGradient |
default blackPen
dictionary of connection-colors each type which Connection-Class-Name should have a different color if you add a new connection and want it to be shown differently, you can assign different QColors to it
dictionary of connection-pens each type which Connection-Class-Name shoukd have a different look if you add a new connection and want it to be shown differently, you can assign different Qt.PenStyle to it:
Qt.NoPen 0 no line at all. For example, QPainter.drawRect() fills but does not draw any boundary line.
Qt.SolidLine 1 A plain line.
Qt.DashLine 2 Dashes separated by a few pixels.
Qt.DotLine 3 Dots separated by a few pixels.
Qt.DashDotLine 4 Alternate dots and dashes.
Qt.DashDotDotLine 5 One dash, two dots, one dash, two dots.
Qt.CustomDashLine 6 A custom pattern defined using QPainterPathStroker.setDashPattern().
method is a wrapper for getColorFromString as it converts the given objects class name to a string
Parameters: | inputObject (variant object) – any object |
---|---|
Returns: | a color |
Return type: | QColor |
calculates a color by using the hash-code of the given string
Parameters: | inputString (string) – string which should be converted |
---|---|
Returns: | a color |
Return type: | QColor |
returns the brush for a connection
Parameters: | asset (AbstractAsset) – an asset |
---|---|
Returns: | a brush from the connectionColors dictionary |
Return type: | QBrush |
returns the brush for a connection
Parameters: | asset (AbstractAsset) – an asset |
---|---|
Returns: | a pen from the connectionPens and connectionColors dictionary |
Return type: | QPen |
calculates the color for selected objects
Parameters: | baseColor (QColor) – color of an unselected object |
---|---|
Returns: | the color the object shoud get if selected |
Return type: | QColor |
function returns a brush depending on the urgency of an asset:
urgency == 2 -->bad
urgency == 1 -->middle
any other case -->good
Parameters: | urgency (int) – assets urgency |
---|---|
Returns: | a brush from the stateColors dictionary |
Return type: | QBrush |
header-font
header2-font
shadow brush
shadow color
dictionary of colors by state
icons of different user-types
default white pen