Subgroup: Single
Class: QgsSingleBoxScaleBarRenderer¶
-
class
qgis.core.
QgsSingleBoxScaleBarRenderer
¶ Bases:
qgis._core.QgsScaleBarRenderer
Scalebar style that draws a single box with alternating color for the segments.
New in version 3.0: Methods
calculateBoxSize
Calculates the required box size (in millimeters) for a scalebar using the specified settings
andscaleContext
.draw
drawDefaultLabels
firstLabelString
firstLabelXOffset
name
segmentPositions
segmentWidths
Attributes
-
draw
(self, context: QgsRenderContext, settings: QgsScaleBarSettings, scaleContext: QgsScaleBarRenderer.ScaleBarContext)¶
-
drawDefaultLabels
()¶
-
firstLabelString
()¶
-
firstLabelXOffset
()¶
-
name
(self) → str¶
-
segmentPositions
()¶
-
segmentWidths
()¶
-