Class: QgsHollowScaleBarRenderer

class qgis.core.QgsHollowScaleBarRenderer

Bases: QgsScaleBarRenderer

Constructor for QgsHollowScaleBarRenderer.

QgsHollowScaleBarRenderer(QgsHollowScaleBarRenderer)

Scalebar style that draws a single box with alternating color for the segments, with horizontal lines through alternating segments. AKA “South African” style.

Methods

applyDefaultSettings

param settings

clone

rtype

QgsHollowScaleBarRenderer

draw

param context

drawDefaultLabels

firstLabelString

firstLabelXOffset

flags

rtype

QgsScaleBarRenderer.Flags

id

rtype

str

segmentPositions

segmentWidths

sortKey

rtype

int

visibleName

rtype

str

applyDefaultSettings(self, settings: QgsScaleBarSettings) → bool
Parameters

settings (QgsScaleBarSettings) –

Return type

bool

clone(self)QgsHollowScaleBarRenderer
Return type

QgsHollowScaleBarRenderer

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