Class: QgsSingleBoxScaleBarRenderer

class qgis.core.QgsSingleBoxScaleBarRenderer

Bases: QgsScaleBarRenderer

Constructor for QgsSingleBoxScaleBarRenderer.

QgsSingleBoxScaleBarRenderer(QgsSingleBoxScaleBarRenderer)

Scalebar style that draws a single box with alternating color for the segments.

Methods

clone

rtype

QgsSingleBoxScaleBarRenderer

draw

param context

drawDefaultLabels

firstLabelString

firstLabelXOffset

flags

rtype

QgsScaleBarRenderer.Flags

id

rtype

str

segmentPositions

segmentWidths

sortKey

rtype

int

visibleName

rtype

str

clone(self)QgsSingleBoxScaleBarRenderer
Return type

QgsSingleBoxScaleBarRenderer

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