#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 () |
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.
QgsDoubleBoxScaleBarStyle::QgsDoubleBoxScaleBarStyle | ( | ) | [private] |
Definition at line 27 of file qgsdoubleboxscalebarstyle.cpp.
QString QgsDoubleBoxScaleBarStyle::name | ( | ) | const [virtual] |
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().