QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
QgsDoubleBoxScaleBarStyle Class Reference

Double box with alternating colors. More...

#include <qgsdoubleboxscalebarstyle.h>

Inheritance diagram for QgsDoubleBoxScaleBarStyle:
Inheritance graph
[legend]

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
 

Additional Inherited Members

- Protected Attributes inherited from QgsScaleBarStyle
const QgsComposerScaleBarmScaleBar
 

Detailed Description

Double box with alternating colors.

Constructor & Destructor Documentation

QgsDoubleBoxScaleBarStyle::QgsDoubleBoxScaleBarStyle ( const QgsComposerScaleBar bar)
QgsDoubleBoxScaleBarStyle::~QgsDoubleBoxScaleBarStyle ( )

Member Function Documentation

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

Draws the style.

Parameters
ppainter object
xOffsetoffset to account for centered labeling

Implements QgsScaleBarStyle.

QString QgsDoubleBoxScaleBarStyle::name ( ) const
virtual

Implements QgsScaleBarStyle.


The documentation for this class was generated from the following files: