Class: QgsSingleBoxScaleBarRenderer

class qgis.core.QgsSingleBoxScaleBarRenderer

Bases: QgsScaleBarRenderer

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

New in version 3.0.

QgsSingleBoxScaleBarRenderer() Constructor for QgsSingleBoxScaleBarRenderer.

QgsSingleBoxScaleBarRenderer(QgsSingleBoxScaleBarRenderer)

Methods

clone

rtype

QgsSingleBoxScaleBarRenderer

draw

param context

flags

rtype

QgsScaleBarRenderer.Flags

id

rtype

str

sortKey

rtype

int

visibleName

rtype

str

clone(self) QgsSingleBoxScaleBarRenderer
Return type

QgsSingleBoxScaleBarRenderer

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

QgsScaleBarRenderer.Flags

id(self) str
Return type

str

sortKey(self) int
Return type

int

visibleName(self) str
Return type

str