10 #ifndef QWT_SCALE_DRAW_H 
   11 #define QWT_SCALE_DRAW_H 
   13 #include "qwt_global.h" 
   14 #include "qwt_abstract_scale_draw.h" 
   17 #include <qtransform.h> 
   56     void getBorderDistHint( 
const QFont &, 
int &start, 
int &end ) 
const;
 
   57     int minLabelDist( 
const QFont & ) 
const;
 
   59     int minLength( 
const QFont & ) 
const;
 
   60     virtual double extent( 
const QFont & ) 
const;
 
   62     void move( 
double x, 
double y );
 
   63     void move( 
const QPointF & );
 
   64     void setLength( 
double length );
 
   66     Alignment alignment() 
const;
 
   67     void setAlignment( Alignment );
 
   69     Qt::Orientation orientation() 
const;
 
   72     double length() 
const;
 
   74     void setLabelAlignment( Qt::Alignment );
 
   75     Qt::Alignment labelAlignment() 
const;
 
   77     void setLabelRotation( 
double rotation );
 
   78     double labelRotation() 
const;
 
   80     int maxLabelHeight( 
const QFont & ) 
const;
 
   81     int maxLabelWidth( 
const QFont & ) 
const;
 
   83     QPointF labelPosition( 
double val ) 
const;
 
   85     QRectF labelRect( 
const QFont &, 
double val ) 
const;
 
   86     QSizeF labelSize( 
const QFont &, 
double val ) 
const;
 
   88     QRect boundingLabelRect( 
const QFont &, 
double val ) 
const;
 
   91     QTransform labelTransformation( 
const QPointF &, 
const QSizeF & ) 
const;
 
   93     virtual void drawTick( QPainter *, 
double val, 
double len ) 
const;
 
   95     virtual void drawLabel( QPainter *, 
double val ) 
const;
 
  117     move( QPointF( x, y ) );
 
A abstract base class for drawing scales. 
Definition: qwt_abstract_scale_draw.h:31
Alignment
Definition: qwt_scale_draw.h:38
A class for drawing scales. 
Definition: qwt_scale_draw.h:31
virtual double extent(const QFont &font) const =0
The scale is above. 
Definition: qwt_scale_draw.h:44
virtual void drawTick(QPainter *painter, double value, double len) const =0
The scale is below. 
Definition: qwt_scale_draw.h:41
virtual void drawBackbone(QPainter *painter) const =0
virtual void drawLabel(QPainter *painter, double value) const =0
The scale is left. 
Definition: qwt_scale_draw.h:47
void move(double x, double y)
Definition: qwt_scale_draw.h:115