SciDAVis  1.D4
Public Types | Public Member Functions | Private Attributes
MonthScaleDraw Class Reference

#include <ScaleDraw.h>

Inheritance diagram for MonthScaleDraw:
ScaleDraw

List of all members.

Public Types

enum  NameFormat { ShortName, LongName, Initial }
- Public Types inherited from ScaleDraw
enum  TicksStyle { None = 0, Out = 1, Both = 2, In = 3 }

Public Member Functions

NameFormat format ()
QwtText label (double value) const
 MonthScaleDraw (NameFormat format=ShortName)
 MonthScaleDraw (const ScaleDraw &other, NameFormat format=ShortName)
 ~MonthScaleDraw ()
- Public Member Functions inherited from ScaleDraw
QString formulaString ()
void labelFormat (char &f, int &prec) const
 Return the number format for the major scale labels.
int labelNumericPrecision () const
int majorTicksStyle () const
int minorTicksStyle () const
 ScaleDraw (const QString &s=QString::null)
 ScaleDraw (const ScaleDraw &other, 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 ()

Private Attributes

NameFormat d_format

Additional Inherited Members

- Protected Member Functions inherited from ScaleDraw
void drawTick (QPainter *p, double value, int len) const

Member Enumeration Documentation

Enumerator:
ShortName 
LongName 
Initial 

Constructor & Destructor Documentation

MonthScaleDraw::MonthScaleDraw ( NameFormat  format = ShortName)
MonthScaleDraw::MonthScaleDraw ( const ScaleDraw other,
NameFormat  format = ShortName 
)
inline
MonthScaleDraw::~MonthScaleDraw ( )
inline

Member Function Documentation

NameFormat MonthScaleDraw::format ( )
inline

References d_format.

QwtText MonthScaleDraw::label ( double  value) const
virtual

Reimplemented from ScaleDraw.

References d_format, Initial, LongName, ShortName, and ScaleDraw::transformValue().


Member Data Documentation

NameFormat MonthScaleDraw::d_format
private

Referenced by format(), and label().


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