QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
QgsTicksScaleBarStyle Class Reference

A scale bar that draws segments using short ticks. More...

#include <qgsticksscalebarstyle.h>

Inheritance diagram for QgsTicksScaleBarStyle:
Inheritance graph
[legend]

Public Types

enum  TickPosition { TicksUp, TicksDown, TicksMiddle }

Public Member Functions

 QgsTicksScaleBarStyle (const QgsComposerScaleBar *bar)
 ~QgsTicksScaleBarStyle ()
QString name () const
void draw (QPainter *p, double xOffset=0) const
void setTickPosition (TickPosition p)
- 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

A scale bar that draws segments using short ticks.

Member Enumeration Documentation

Enumerator:
TicksUp 
TicksDown 
TicksMiddle 

Constructor & Destructor Documentation

QgsTicksScaleBarStyle::QgsTicksScaleBarStyle ( const QgsComposerScaleBar bar)
QgsTicksScaleBarStyle::~QgsTicksScaleBarStyle ( )

Member Function Documentation

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

draw method

Parameters
ppainter object
xOffsetoffset

Implements QgsScaleBarStyle.

QString QgsTicksScaleBarStyle::name ( ) const
virtual

Implements QgsScaleBarStyle.

void QgsTicksScaleBarStyle::setTickPosition ( TickPosition  p)
inline

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