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

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

#include <qgssingleboxscalebarstyle.h>

Inheritance diagram for QgsSingleBoxScaleBarStyle:
Inheritance graph
[legend]
Collaboration diagram for QgsSingleBoxScaleBarStyle:
Collaboration graph
[legend]

Public Member Functions

 QgsSingleBoxScaleBarStyle (const QgsComposerScaleBar *bar)
 
 ~QgsSingleBoxScaleBarStyle ()
 
QString name () const
 
void draw (QPainter *p, double xOffset=0) const
 
- Public Member Functions inherited from QgsScaleBarStyle
 QgsScaleBarStyle (const QgsComposerScaleBar *bar)
 
virtual ~QgsScaleBarStyle ()
 
virtual void drawLabels (QPainter *p) const
 
virtual QRectF calculateBoxSize () const
 

Private Member Functions

 QgsSingleBoxScaleBarStyle ()
 

Additional Inherited Members

- Protected Attributes inherited from QgsScaleBarStyle
const QgsComposerScaleBarmScaleBar
 

Detailed Description

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

Definition at line 26 of file qgssingleboxscalebarstyle.h.

Constructor & Destructor Documentation

QgsSingleBoxScaleBarStyle::QgsSingleBoxScaleBarStyle ( const QgsComposerScaleBar bar)

Definition at line 23 of file qgssingleboxscalebarstyle.cpp.

QgsSingleBoxScaleBarStyle::~QgsSingleBoxScaleBarStyle ( )

Definition at line 33 of file qgssingleboxscalebarstyle.cpp.

QgsSingleBoxScaleBarStyle::QgsSingleBoxScaleBarStyle ( )
private

Definition at line 28 of file qgssingleboxscalebarstyle.cpp.

Member Function Documentation

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

Implements QgsScaleBarStyle.

Definition at line 80 of file qgssingleboxscalebarstyle.cpp.


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