Quantum GIS API Documentation
1.8
|
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. | |
Private Member Functions | |
QgsDoubleBoxScaleBarStyle () |
Double box with alternating colors.
Definition at line 25 of file qgsdoubleboxscalebarstyle.h.
Definition at line 22 of file qgsdoubleboxscalebarstyle.cpp.
Definition at line 32 of file qgsdoubleboxscalebarstyle.cpp.
QgsDoubleBoxScaleBarStyle::QgsDoubleBoxScaleBarStyle | ( | ) | [private] |
Definition at line 27 of file qgsdoubleboxscalebarstyle.cpp.
void QgsDoubleBoxScaleBarStyle::draw | ( | QPainter * | p, |
double | xOffset = 0 |
||
) | const [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, and QgsComposerScaleBar::segmentPositions().
QString QgsDoubleBoxScaleBarStyle::name | ( | ) | const [virtual] |
Implements QgsScaleBarStyle.
Definition at line 37 of file qgsdoubleboxscalebarstyle.cpp.