#include <ScaleDraw.h>

Public Types | |
| enum | TicksStyle { None = 0, Out = 1, Both = 2, In = 3 } |
Public Member Functions | |
| QString | formulaString () |
| virtual QwtText | label (double value) const |
| void | labelFormat (char &f, int &prec) const |
| Return the number format for the major scale labels. | |
| int | labelNumericPrecision () |
| int | majorTicksStyle () |
| int | minorTicksStyle () |
| ScaleDraw (const QString &s=QString::null) | |
| void | setFormulaString (const QString &formula) |
| void | setLabelFormat (char f, int prec) |
| Set the number format for the major scale labels. | |
| void | setMajorTicksStyle (TicksStyle type) |
| void | setMinorTicksStyle (TicksStyle type) |
| double | transformValue (double value) const |
| virtual | ~ScaleDraw () |
Protected Member Functions | |
| void | drawTick (QPainter *p, double value, int len) const |
Private Attributes | |
| char | d_fmt |
| int | d_majTicks |
| int | d_minTicks |
| int | d_prec |
| QString | formula_string |
| ScaleDraw::ScaleDraw | ( | const QString & | s = QString::null |
) |
| virtual ScaleDraw::~ScaleDraw | ( | ) | [inline, virtual] |
| void ScaleDraw::drawTick | ( | QPainter * | p, | |
| double | value, | |||
| int | len | |||
| ) | const [protected] |
| QString ScaleDraw::formulaString | ( | ) | [inline] |
| virtual QwtText ScaleDraw::label | ( | double | value | ) | const [inline, virtual] |
Reimplemented in QwtTextScaleDraw, TimeScaleDraw, DateScaleDraw, WeekDayScaleDraw, MonthScaleDraw, and QwtSupersciptsScaleDraw.
| void ScaleDraw::labelFormat | ( | char & | f, | |
| int & | prec | |||
| ) | const |
Return the number format for the major scale labels.
Format character and precision have the same meaning as for sprintf().
| f | format character 'e', 'f' or 'g' | |
| prec |
|
| int ScaleDraw::labelNumericPrecision | ( | ) | [inline] |
| int ScaleDraw::majorTicksStyle | ( | ) | [inline] |
| int ScaleDraw::minorTicksStyle | ( | ) | [inline] |
| void ScaleDraw::setFormulaString | ( | const QString & | formula | ) | [inline] |
| void ScaleDraw::setLabelFormat | ( | char | f, | |
| int | prec | |||
| ) |
Set the number format for the major scale labels.
Format character and precision have the same meaning as for sprintf().
| f | format character 'e', 'f', 'g' | |
| prec |
|
| void ScaleDraw::setMajorTicksStyle | ( | TicksStyle | type | ) | [inline] |
| void ScaleDraw::setMinorTicksStyle | ( | TicksStyle | type | ) | [inline] |
| double ScaleDraw::transformValue | ( | double | value | ) | const |
char ScaleDraw::d_fmt [private] |
int ScaleDraw::d_majTicks [private] |
int ScaleDraw::d_minTicks [private] |
int ScaleDraw::d_prec [private] |
QString ScaleDraw::formula_string [private] |
1.5.3