QgsSingleBoxScaleBarStyle Class Reference
[MapComposer]

#include <qgssingleboxscalebarstyle.h>

Inheritance diagram for QgsSingleBoxScaleBarStyle:

Inheritance graph
[legend]
Collaboration diagram for QgsSingleBoxScaleBarStyle:

Collaboration graph
[legend]
List of all members.

Detailed Description

Scalebar style that draws a single box with alternating color for the segments.

Definition at line 26 of file qgssingleboxscalebarstyle.h.

Public Member Functions

 QgsSingleBoxScaleBarStyle (const QgsComposerScaleBar *bar)
 ~QgsSingleBoxScaleBarStyle ()
QString name () const
void draw (QPainter *p, double xOffset=0) const
 Draws the style.

Private Member Functions

 QgsSingleBoxScaleBarStyle ()


Constructor & Destructor Documentation

QgsSingleBoxScaleBarStyle::QgsSingleBoxScaleBarStyle ( const QgsComposerScaleBar bar  ) 

Definition at line 22 of file qgssingleboxscalebarstyle.cpp.

QgsSingleBoxScaleBarStyle::~QgsSingleBoxScaleBarStyle (  ) 

Definition at line 32 of file qgssingleboxscalebarstyle.cpp.

QgsSingleBoxScaleBarStyle::QgsSingleBoxScaleBarStyle (  )  [private]

Definition at line 27 of file qgssingleboxscalebarstyle.cpp.


Member Function Documentation

QString QgsSingleBoxScaleBarStyle::name (  )  const [virtual]

Implements QgsScaleBarStyle.

Definition at line 76 of file qgssingleboxscalebarstyle.cpp.

void QgsSingleBoxScaleBarStyle::draw ( QPainter *  p,
double  xOffset = 0 
) const [virtual]

Draws the style.

Parameters:
xOffset offset to account for centered labeling

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, and QgsComposerScaleBar::segmentPositions().


The documentation for this class was generated from the following files:
Generated on Tue Jan 6 16:51:23 2009 for Quantum GIS API Documentation by  doxygen 1.5.1