Class: QgsDoubleBoxScaleBarRenderer

class qgis.core.QgsDoubleBoxScaleBarRenderer

Bases: QgsScaleBarRenderer

Constructor for QgsDoubleBoxScaleBarRenderer.

QgsDoubleBoxScaleBarRenderer(QgsDoubleBoxScaleBarRenderer)

Double box with alternating colors.

Methods

clone

rtype

QgsDoubleBoxScaleBarRenderer

draw

param context

drawDefaultLabels

firstLabelString

firstLabelXOffset

flags

rtype

QgsScaleBarRenderer.Flags

id

rtype

str

segmentPositions

segmentWidths

sortKey

rtype

int

visibleName

rtype

str

clone(self)QgsDoubleBoxScaleBarRenderer
Return type

QgsDoubleBoxScaleBarRenderer

draw(self, context: QgsRenderContext, settings: QgsScaleBarSettings, scaleContext: QgsScaleBarRenderer.ScaleBarContext)
Parameters
drawDefaultLabels()
firstLabelString()
firstLabelXOffset()
flags(self) → QgsScaleBarRenderer.Flags
Return type

QgsScaleBarRenderer.Flags

id(self) → str
Return type

str

segmentPositions()
segmentWidths()
sortKey(self) → int
Return type

int

visibleName(self) → str
Return type

str