60 void setTitle(
const QString& title );
61 void setTitle(
const QwtText& title );
67 void setBorderDist(
int dist1,
int dist2 );
68 int startBorderDist()
const;
69 int endBorderDist()
const;
71 void getBorderDistHint(
int& start,
int& end )
const;
73 void getMinBorderDist(
int& start,
int& end )
const;
74 void setMinBorderDist(
int start,
int end );
76 void setMargin(
int );
79 void setSpacing(
int );
89 void setLabelAlignment( Qt::Alignment );
90 void setLabelRotation(
double rotation );
92 void setColorBarEnabled(
bool );
93 bool isColorBarEnabled()
const;
95 void setColorBarWidth(
int );
96 int colorBarWidth()
const;
103 virtual QSize sizeHint() const QWT_OVERRIDE;
104 virtual QSize minimumSizeHint() const QWT_OVERRIDE;
106 int titleHeightForWidth(
int width ) const;
107 int dimForLength(
int length, const QFont& scaleFont ) const;
109 void drawColorBar( QPainter*, const QRectF& ) const;
111 const QRectF& rect ) const;
116 QRectF colorBarRect( const QRectF& ) const;
119 virtual
void paintEvent( QPaintEvent* ) QWT_OVERRIDE;
120 virtual
void resizeEvent( QResizeEvent* ) QWT_OVERRIDE;
121 virtual
void changeEvent( QEvent* ) QWT_OVERRIDE;
123 void draw( QPainter* ) const;
126 void layoutScale(
bool update_geometry = true );
A class representing a text.