QGIS API Documentation
2.2.0-Valmiera
|
Scalebar style that draws a single box with alternating color for the segments. More...
#include <qgssingleboxscalebarstyle.h>
Public Member Functions | |
QgsSingleBoxScaleBarStyle (const QgsComposerScaleBar *bar) | |
~QgsSingleBoxScaleBarStyle () | |
QString | name () const |
void | draw (QPainter *p, double xOffset=0) const |
Public Member Functions inherited from QgsScaleBarStyle | |
QgsScaleBarStyle (const QgsComposerScaleBar *bar) | |
virtual | ~QgsScaleBarStyle () |
virtual void | drawLabels (QPainter *p) const |
virtual QRectF | calculateBoxSize () const |
Private Member Functions | |
QgsSingleBoxScaleBarStyle () |
Additional Inherited Members | |
Protected Attributes inherited from QgsScaleBarStyle | |
const QgsComposerScaleBar * | mScaleBar |
Scalebar style that draws a single box with alternating color for the segments.
Definition at line 26 of file qgssingleboxscalebarstyle.h.
QgsSingleBoxScaleBarStyle::QgsSingleBoxScaleBarStyle | ( | const QgsComposerScaleBar * | bar | ) |
Definition at line 22 of file qgssingleboxscalebarstyle.cpp.
QgsSingleBoxScaleBarStyle::~QgsSingleBoxScaleBarStyle | ( | ) |
Definition at line 32 of file qgssingleboxscalebarstyle.cpp.
|
private |
Definition at line 27 of file qgssingleboxscalebarstyle.cpp.
|
virtual |
draw method
p | painter object |
xOffset | x offset |
Implements QgsScaleBarStyle.
Definition at line 37 of file qgssingleboxscalebarstyle.cpp.
References QgsComposerScaleBar::boxContentSpace(), QgsComposerScaleBar::brush(), QgsScaleBarStyle::drawLabels(), QgsComposerScaleBar::font(), QgsComposerItem::fontAscentMillimeters(), QgsComposerScaleBar::height(), QgsComposerScaleBar::labelBarSpace(), QgsScaleBarStyle::mScaleBar, QgsComposerScaleBar::pen(), and QgsComposerScaleBar::segmentPositions().
|
virtual |
Implements QgsScaleBarStyle.
Definition at line 77 of file qgssingleboxscalebarstyle.cpp.