Class: QgsNumericScaleBarRenderer

class qgis.core.QgsNumericScaleBarRenderer

Bases: QgsScaleBarRenderer

Constructor for QgsNumericScaleBarRenderer.

QgsNumericScaleBarRenderer(QgsNumericScaleBarRenderer)

A scale bar style that draws text in the form of ‘1:XXXXX’.

Methods

calculateBoxSize

calculateBoxSize(self, settings: QgsScaleBarSettings, scaleContext: QgsScaleBarRenderer.ScaleBarContext) -> QSizeF

clone

rtype

QgsNumericScaleBarRenderer

draw

param context

drawDefaultLabels

firstLabelString

firstLabelXOffset

flags

rtype

QgsScaleBarRenderer.Flags

id

rtype

str

segmentPositions

segmentWidths

sortKey

rtype

int

visibleName

rtype

str

calculateBoxSize(self, context: QgsRenderContext, settings: QgsScaleBarSettings, scaleContext: QgsScaleBarRenderer.ScaleBarContext) → QSizeF

calculateBoxSize(self, settings: QgsScaleBarSettings, scaleContext: QgsScaleBarRenderer.ScaleBarContext) -> QSizeF

Parameters
Return type

QSizeF

clone(self)QgsNumericScaleBarRenderer
Return type

QgsNumericScaleBarRenderer

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