|
QGIS API Documentation
2.4.0-Chugiak
|
Double box with alternating colors. More...
#include <qgsdoubleboxscalebarstyle.h>


Public Member Functions | |
| QgsDoubleBoxScaleBarStyle (const QgsComposerScaleBar *bar) | |
| ~QgsDoubleBoxScaleBarStyle () | |
| QString | name () const |
| void | draw (QPainter *p, double xOffset=0) const |
| Draws the style. More... | |
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 | |
| QgsDoubleBoxScaleBarStyle () | |
Additional Inherited Members | |
Protected Attributes inherited from QgsScaleBarStyle | |
| const QgsComposerScaleBar * | mScaleBar |
Double box with alternating colors.
Definition at line 25 of file qgsdoubleboxscalebarstyle.h.
| QgsDoubleBoxScaleBarStyle::QgsDoubleBoxScaleBarStyle | ( | const QgsComposerScaleBar * | bar | ) |
Definition at line 22 of file qgsdoubleboxscalebarstyle.cpp.
| QgsDoubleBoxScaleBarStyle::~QgsDoubleBoxScaleBarStyle | ( | ) |
Definition at line 32 of file qgsdoubleboxscalebarstyle.cpp.
|
private |
Definition at line 27 of file qgsdoubleboxscalebarstyle.cpp.
|
virtual |
Draws the style.
| p | painter object |
| xOffset | offset to account for centered labeling |
Implements QgsScaleBarStyle.
Definition at line 42 of file qgsdoubleboxscalebarstyle.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 37 of file qgsdoubleboxscalebarstyle.cpp.
1.8.7