QgsDoubleBoxScaleBarStyle Class Reference
[MapComposer]

#include <qgsdoubleboxscalebarstyle.h>

Inheritance diagram for QgsDoubleBoxScaleBarStyle:

Inheritance graph
[legend]
Collaboration diagram for QgsDoubleBoxScaleBarStyle:

Collaboration graph
[legend]
List of all members.

Detailed Description

Double box with alternating colors.

Definition at line 25 of file 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 ()


Constructor & Destructor Documentation

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.


Member Function Documentation

QString QgsDoubleBoxScaleBarStyle::name (  )  const [virtual]

Implements QgsScaleBarStyle.

Definition at line 37 of file qgsdoubleboxscalebarstyle.cpp.

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

Draws the style.

Parameters:
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().


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