#include <qwt_scale.h>
Inherits QWidget.
Inheritance diagram for QwtScale
Public Types | |
enum | Orientation { Left, Right, Top, Bottom } |
Public Methods | |
QwtScale (Orientation, QWidget *parent, const char *name = 0) | |
~QwtScale () | |
void | setTitle (const char *title) |
void | setBorderDist (int start, int end) |
void | setScale (const QwtScaleDiv &sd) |
void | setLabelFormat (char f, int prec) |
void | setBaselineDist (int bd) |
void | setTitleFont (const QFont &f) |
void | setTitleColor (const QColor &c) |
void | enableTitle (bool tf) |
const QFont& | titleFont () const |
const QColor& | titleColor () const |
const QString& | title () const |
int | minBorderDist () const |
void | labelFormat (char &f, int &prec) const |
QSize | sizeHint () const |
Protected Methods | |
void | paintEvent (QPaintEvent *e) |
void | resizeEvent (QResizeEvent *e) |
void | scaleChange () |
void | fontChange (const QFont &oldfont) |
const QwtDiMap& | map () const |
This Widget can be used to decorate composite widgets with a scale.
|
Constructor.
|
|
Destroy a QwtScale object.
|
|
Notify a change of the font.
This virtual function may be overloaded by derived widgets. The default implementation resizes the scale and repaints the widget.
|
|
Format character and precision have the same meaning as for the QString class.
|
|
Determine the minimum Border distance.
This member function returns the minimum distance of the scale's endpoints from the widget borders which is required for the mark labels to fit into the widget.
|
|
Notify a change of the scale.
This virtual function can be overloaded by derived classes. The default implementation repaints the widget. |
|
Specify the border distance of the scale's base line.
|
|
Specify distances of the scale's endpoints from the widget's borders.
|
|
Set the number format for the major scale labels.
Format character and precision have the same meaning as for the QString class.
|
|
Assign a scale division.
The scale division determines where to set the tick marks.
|
|
Assign a title.
|
|
Change the title color.
|
|
Change the title font.
|
|
|