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

#include <qgsgraduatedsymbolrendererv2.h>

Public Member Functions

 QgsRendererRangeV2LabelFormat ()
 QgsRendererRangeV2LabelFormat (QString format, int precision=4, bool trimTrailingZeroes=false)
bool operator== (const QgsRendererRangeV2LabelFormat &other) const
bool operator!= (const QgsRendererRangeV2LabelFormat &other) const
QString format () const
void setFormat (QString format)
int precision () const
void setPrecision (int precision)
bool trimTrailingZeroes () const
void setTrimTrailingZeroes (bool trimTrailingZeroes)
QString labelForRange (double lower, double upper) const
QString labelForRange (const QgsRendererRangeV2 &range) const
QString formatNumber (double value) const
void setFromDomElement (QDomElement &element)
void saveToDomElement (QDomElement &element)

Static Public Attributes

static int MaxPrecision = 15
static int MinPrecision = -6

Protected Attributes

QString mFormat
int mPrecision
bool mTrimTrailingZeroes
double mNumberScale
QString mNumberSuffix
QRegExp mReTrailingZeroes
QRegExp mReNegativeZero

Constructor & Destructor Documentation

QgsRendererRangeV2LabelFormat::QgsRendererRangeV2LabelFormat ( )
QgsRendererRangeV2LabelFormat::QgsRendererRangeV2LabelFormat ( QString  format,
int  precision = 4,
bool  trimTrailingZeroes = false 
)

Member Function Documentation

QString QgsRendererRangeV2LabelFormat::format ( ) const
inline
QString QgsRendererRangeV2LabelFormat::formatNumber ( double  value) const
QString QgsRendererRangeV2LabelFormat::labelForRange ( double  lower,
double  upper 
) const
Note
labelForLowerUpper in python bindings
QString QgsRendererRangeV2LabelFormat::labelForRange ( const QgsRendererRangeV2 range) const
bool QgsRendererRangeV2LabelFormat::operator!= ( const QgsRendererRangeV2LabelFormat other) const
bool QgsRendererRangeV2LabelFormat::operator== ( const QgsRendererRangeV2LabelFormat other) const
int QgsRendererRangeV2LabelFormat::precision ( ) const
inline
void QgsRendererRangeV2LabelFormat::saveToDomElement ( QDomElement &  element)
void QgsRendererRangeV2LabelFormat::setFormat ( QString  format)
inline
void QgsRendererRangeV2LabelFormat::setFromDomElement ( QDomElement &  element)
void QgsRendererRangeV2LabelFormat::setPrecision ( int  precision)
void QgsRendererRangeV2LabelFormat::setTrimTrailingZeroes ( bool  trimTrailingZeroes)
inline
bool QgsRendererRangeV2LabelFormat::trimTrailingZeroes ( ) const
inline

Member Data Documentation

int QgsRendererRangeV2LabelFormat::MaxPrecision = 15
static
QString QgsRendererRangeV2LabelFormat::mFormat
protected
int QgsRendererRangeV2LabelFormat::MinPrecision = -6
static
double QgsRendererRangeV2LabelFormat::mNumberScale
protected
QString QgsRendererRangeV2LabelFormat::mNumberSuffix
protected
int QgsRendererRangeV2LabelFormat::mPrecision
protected
QRegExp QgsRendererRangeV2LabelFormat::mReNegativeZero
protected
QRegExp QgsRendererRangeV2LabelFormat::mReTrailingZeroes
protected
bool QgsRendererRangeV2LabelFormat::mTrimTrailingZeroes
protected

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