|
QGIS API Documentation
2.6.0-Brighton
|
A scale bar style that draws text in the form of '1:XXXXX'. More...
#include <qgsnumericscalebarstyle.h>

Public Member Functions | |
| QgsNumericScaleBarStyle (QgsComposerScaleBar *bar) | |
| ~QgsNumericScaleBarStyle () | |
| QString | name () const |
| void | draw (QPainter *p, double xOffset=0) const |
| Draws the style. | |
| QRectF | calculateBoxSize () const |
Public Member Functions inherited from QgsScaleBarStyle | |
| QgsScaleBarStyle (const QgsComposerScaleBar *bar) | |
| virtual | ~QgsScaleBarStyle () |
| virtual void | drawLabels (QPainter *p) const |
Additional Inherited Members | |
Protected Attributes inherited from QgsScaleBarStyle | |
| const QgsComposerScaleBar * | mScaleBar |
A scale bar style that draws text in the form of '1:XXXXX'.
| QgsNumericScaleBarStyle::QgsNumericScaleBarStyle | ( | QgsComposerScaleBar * | bar | ) |
| QgsNumericScaleBarStyle::~QgsNumericScaleBarStyle | ( | ) |
|
virtual |
Reimplemented from QgsScaleBarStyle.
|
virtual |
Draws the style.
| p | painter object |
| xOffset | offset to account for centered labeling |
Implements QgsScaleBarStyle.
|
virtual |
Implements QgsScaleBarStyle.
1.8.1.2