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
QgsNumericScaleBarStyle Class Reference

A scale bar style that draws text in the form of '1:XXXXX'. More...

#include <qgsnumericscalebarstyle.h>

Inheritance diagram for QgsNumericScaleBarStyle:
Inheritance graph
[legend]

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from QgsScaleBarStyle
const QgsComposerScaleBarmScaleBar
 

Detailed Description

A scale bar style that draws text in the form of '1:XXXXX'.

Constructor & Destructor Documentation

QgsNumericScaleBarStyle::QgsNumericScaleBarStyle ( QgsComposerScaleBar bar)
QgsNumericScaleBarStyle::~QgsNumericScaleBarStyle ( )

Member Function Documentation

QRectF QgsNumericScaleBarStyle::calculateBoxSize ( ) const
virtual

Reimplemented from QgsScaleBarStyle.

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

Draws the style.

Parameters
ppainter object
xOffsetoffset to account for centered labeling

Implements QgsScaleBarStyle.

QString QgsNumericScaleBarStyle::name ( ) const
virtual

Implements QgsScaleBarStyle.


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