Class: QgsSteppedLineScaleBarRenderer

class qgis.core.QgsSteppedLineScaleBarRenderer

Bases: QgsScaleBarRenderer

Constructor for QgsSteppedLineScaleBarRenderer.

QgsSteppedLineScaleBarRenderer(QgsSteppedLineScaleBarRenderer)

Scalebar style that draws a stepped line representation of a scalebar.

Methods

clone

rtype

QgsSteppedLineScaleBarRenderer

draw

param context

drawDefaultLabels

firstLabelString

firstLabelXOffset

flags

rtype

QgsScaleBarRenderer.Flags

id

rtype

str

segmentPositions

segmentWidths

sortKey

rtype

int

visibleName

rtype

str

clone(self)QgsSteppedLineScaleBarRenderer
Return type

QgsSteppedLineScaleBarRenderer

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