~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.0/doc/man/man3/QwtScaleWidget.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2008-05-26 10:26:31 UTC
  • mfrom: (1.1.3 upstream) (2.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080526102631-bp95mfccnrb957nx
Tags: 5.1.1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "QwtScaleWidget" 3 "1 May 2008" "Version 5.1.0" "Qwt User's Guide" \" -*- nroff -*-
2
 
.ad l
3
 
.nh
4
 
.SH NAME
5
 
QwtScaleWidget \- 
6
 
.SH SYNOPSIS
7
 
.br
8
 
.PP
9
 
.SH "Detailed Description"
10
 
.PP 
11
 
A Widget which contains a scale. 
12
 
 
13
 
This Widget can be used to decorate composite widgets with a scale. 
14
 
.PP
15
 
Definition at line 34 of file qwt_scale_widget.h.
16
 
.SS "Signals"
17
 
 
18
 
.in +1c
19
 
.ti -1c
20
 
.RI "void \fBscaleDivChanged\fP ()"
21
 
.br
22
 
.in -1c
23
 
.SS "Public Member Functions"
24
 
 
25
 
.in +1c
26
 
.ti -1c
27
 
.RI "\fBQwtScaleWidget\fP (QWidget *parent=NULL)"
28
 
.br
29
 
.ti -1c
30
 
.RI "\fBQwtScaleWidget\fP (\fBQwtScaleDraw::Alignment\fP, QWidget *parent=NULL)"
31
 
.br
32
 
.ti -1c
33
 
.RI "virtual \fB~QwtScaleWidget\fP ()"
34
 
.br
35
 
.ti -1c
36
 
.RI "void \fBsetTitle\fP (const QString &title)"
37
 
.br
38
 
.ti -1c
39
 
.RI "void \fBsetTitle\fP (const \fBQwtText\fP &title)"
40
 
.br
41
 
.ti -1c
42
 
.RI "\fBQwtText\fP \fBtitle\fP () const"
43
 
.br
44
 
.ti -1c
45
 
.RI "void \fBsetBorderDist\fP (int start, int end)"
46
 
.br
47
 
.ti -1c
48
 
.RI "int \fBstartBorderDist\fP () const"
49
 
.br
50
 
.ti -1c
51
 
.RI "int \fBendBorderDist\fP () const"
52
 
.br
53
 
.ti -1c
54
 
.RI "void \fBgetBorderDistHint\fP (int &start, int &end) const "
55
 
.br
56
 
.ti -1c
57
 
.RI "void \fBgetMinBorderDist\fP (int &start, int &end) const "
58
 
.br
59
 
.ti -1c
60
 
.RI "void \fBsetMinBorderDist\fP (int start, int end)"
61
 
.br
62
 
.ti -1c
63
 
.RI "void \fBsetMargin\fP (int)"
64
 
.br
65
 
.ti -1c
66
 
.RI "int \fBmargin\fP () const"
67
 
.br
68
 
.ti -1c
69
 
.RI "void \fBsetSpacing\fP (int td)"
70
 
.br
71
 
.ti -1c
72
 
.RI "int \fBspacing\fP () const"
73
 
.br
74
 
.ti -1c
75
 
.RI "void \fBsetPenWidth\fP (int)"
76
 
.br
77
 
.ti -1c
78
 
.RI "int \fBpenWidth\fP () const"
79
 
.br
80
 
.ti -1c
81
 
.RI "void \fBsetScaleDiv\fP (\fBQwtScaleTransformation\fP *, const \fBQwtScaleDiv\fP &sd)"
82
 
.br
83
 
.ti -1c
84
 
.RI "void \fBsetScaleDraw\fP (\fBQwtScaleDraw\fP *)"
85
 
.br
86
 
.ti -1c
87
 
.RI "const \fBQwtScaleDraw\fP * \fBscaleDraw\fP () const"
88
 
.br
89
 
.ti -1c
90
 
.RI "\fBQwtScaleDraw\fP * \fBscaleDraw\fP ()"
91
 
.br
92
 
.ti -1c
93
 
.RI "void \fBsetLabelAlignment\fP (Qt::Alignment)"
94
 
.br
95
 
.ti -1c
96
 
.RI "void \fBsetLabelRotation\fP (double rotation)"
97
 
.br
98
 
.ti -1c
99
 
.RI "void \fBsetColorBarEnabled\fP (bool)"
100
 
.br
101
 
.ti -1c
102
 
.RI "bool \fBisColorBarEnabled\fP () const"
103
 
.br
104
 
.ti -1c
105
 
.RI "void \fBsetColorBarWidth\fP (int)"
106
 
.br
107
 
.ti -1c
108
 
.RI "int \fBcolorBarWidth\fP () const"
109
 
.br
110
 
.ti -1c
111
 
.RI "void \fBsetColorMap\fP (const \fBQwtDoubleInterval\fP &, const \fBQwtColorMap\fP &)"
112
 
.br
113
 
.ti -1c
114
 
.RI "\fBQwtDoubleInterval\fP \fBcolorBarInterval\fP () const"
115
 
.br
116
 
.ti -1c
117
 
.RI "const \fBQwtColorMap\fP & \fBcolorMap\fP () const"
118
 
.br
119
 
.ti -1c
120
 
.RI "virtual QSize \fBsizeHint\fP () const"
121
 
.br
122
 
.ti -1c
123
 
.RI "virtual QSize \fBminimumSizeHint\fP () const"
124
 
.br
125
 
.ti -1c
126
 
.RI "int \fBtitleHeightForWidth\fP (int width) const"
127
 
.br
128
 
.ti -1c
129
 
.RI "int \fBdimForLength\fP (int length, const QFont &scaleFont) const"
130
 
.br
131
 
.ti -1c
132
 
.RI "void \fBdrawColorBar\fP (QPainter *painter, const QRect &rect) const"
133
 
.br
134
 
.ti -1c
135
 
.RI "void \fBdrawTitle\fP (QPainter *painter, \fBQwtScaleDraw::Alignment\fP, const QRect &rect) const"
136
 
.br
137
 
.ti -1c
138
 
.RI "void \fBsetAlignment\fP (\fBQwtScaleDraw::Alignment\fP)"
139
 
.br
140
 
.ti -1c
141
 
.RI "\fBQwtScaleDraw::Alignment\fP \fBalignment\fP () const"
142
 
.br
143
 
.ti -1c
144
 
.RI "QRect \fBcolorBarRect\fP (const QRect &) const "
145
 
.br
146
 
.in -1c
147
 
.SS "Protected Member Functions"
148
 
 
149
 
.in +1c
150
 
.ti -1c
151
 
.RI "virtual void \fBpaintEvent\fP (QPaintEvent *e)"
152
 
.br
153
 
.ti -1c
154
 
.RI "virtual void \fBresizeEvent\fP (QResizeEvent *e)"
155
 
.br
156
 
.ti -1c
157
 
.RI "void \fBdraw\fP (QPainter *p) const "
158
 
.br
159
 
.ti -1c
160
 
.RI "void \fBscaleChange\fP ()"
161
 
.br
162
 
.ti -1c
163
 
.RI "void \fBlayoutScale\fP (bool update=true)"
164
 
.br
165
 
.in -1c
166
 
.SH "Constructor & Destructor Documentation"
167
 
.PP 
168
 
.SS "QwtScaleWidget::QwtScaleWidget (QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
169
 
.PP
170
 
Create a scale with the position QwtScaleWidget::Left. 
171
 
.PP
172
 
\fBParameters:\fP
173
 
.RS 4
174
 
\fIparent\fP Parent widget 
175
 
.RE
176
 
.PP
177
 
 
178
 
.PP
179
 
Definition at line 63 of file qwt_scale_widget.cpp.
180
 
.SS "QwtScaleWidget::QwtScaleWidget (\fBQwtScaleDraw::Alignment\fP align, QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
181
 
.PP
182
 
Constructor. 
183
 
.PP
184
 
\fBParameters:\fP
185
 
.RS 4
186
 
\fIalign\fP Alignment. 
187
 
.br
188
 
\fIparent\fP Parent widget 
189
 
.RE
190
 
.PP
191
 
 
192
 
.PP
193
 
Definition at line 87 of file qwt_scale_widget.cpp.
194
 
.SS "QwtScaleWidget::~QwtScaleWidget ()\fC [virtual]\fP"
195
 
.PP
196
 
Destructor. 
197
 
.PP
198
 
Definition at line 95 of file qwt_scale_widget.cpp.
199
 
.SH "Member Function Documentation"
200
 
.PP 
201
 
.SS "void QwtScaleWidget::scaleDivChanged ()\fC [signal]\fP"
202
 
.PP
203
 
Signal emitted, whenever the scale divison changes. 
204
 
.PP
205
 
Referenced by setScaleDiv().
206
 
.SS "void QwtScaleWidget::setTitle (const \fBQwtText\fP & title)"
207
 
.PP
208
 
Give title new text contents. 
209
 
.PP
210
 
\fBParameters:\fP
211
 
.RS 4
212
 
\fItitle\fP New title 
213
 
.RE
214
 
.PP
215
 
\fBSee also:\fP
216
 
.RS 4
217
 
\fBQwtScaleWidget::title\fP 
218
 
.RE
219
 
.PP
220
 
\fBWarning:\fP
221
 
.RS 4
222
 
The title flags are interpreted in direction of the label, AlignTop, AlignBottom can't be set as the title will always be aligned to the scale. 
223
 
.RE
224
 
.PP
225
 
 
226
 
.PP
227
 
Definition at line 167 of file qwt_scale_widget.cpp.
228
 
.PP
229
 
References layoutScale(), QwtText::renderFlags(), QwtText::setRenderFlags(), and title().
230
 
.SS "\fBQwtText\fP QwtScaleWidget::title () const"
231
 
.PP
232
 
\fBReturns:\fP
233
 
.RS 4
234
 
title 
235
 
.RE
236
 
.PP
237
 
\fBSee also:\fP
238
 
.RS 4
239
 
\fBQwtScaleWidget::setTitle\fP 
240
 
.RE
241
 
.PP
242
 
 
243
 
.PP
244
 
Definition at line 357 of file qwt_scale_widget.cpp.
245
 
.PP
246
 
Referenced by QwtPlotPrintFilter::apply(), QwtPlot::axisTitle(), drawTitle(), and setTitle().
247
 
.SS "void QwtScaleWidget::setBorderDist (int dist1, int dist2)"
248
 
.PP
249
 
Specify distances of the scale's endpoints from the widget's borders. The actual borders will never be less than minimum border distance. 
250
 
.PP
251
 
\fBParameters:\fP
252
 
.RS 4
253
 
\fIdist1\fP Left or top Distance 
254
 
.br
255
 
\fIdist2\fP Right or bottom distance 
256
 
.RE
257
 
.PP
258
 
\fBSee also:\fP
259
 
.RS 4
260
 
QwtScaleWidget::borderDist 
261
 
.RE
262
 
.PP
263
 
 
264
 
.PP
265
 
Definition at line 233 of file qwt_scale_widget.cpp.
266
 
.PP
267
 
References layoutScale().
268
 
.PP
269
 
Referenced by QwtPlot::updateAxes().
270
 
.SS "int QwtScaleWidget::startBorderDist () const"
271
 
.PP
272
 
\fBReturns:\fP
273
 
.RS 4
274
 
start border distance 
275
 
.RE
276
 
.PP
277
 
\fBSee also:\fP
278
 
.RS 4
279
 
\fBQwtScaleWidget::setBorderDist\fP 
280
 
.RE
281
 
.PP
282
 
 
283
 
.PP
284
 
Definition at line 366 of file qwt_scale_widget.cpp.
285
 
.PP
286
 
Referenced by QwtPlot::canvasMap(), and QwtPlot::print().
287
 
.SS "int QwtScaleWidget::endBorderDist () const"
288
 
.PP
289
 
\fBReturns:\fP
290
 
.RS 4
291
 
end border distance 
292
 
.RE
293
 
.PP
294
 
\fBSee also:\fP
295
 
.RS 4
296
 
\fBQwtScaleWidget::setBorderDist\fP 
297
 
.RE
298
 
.PP
299
 
 
300
 
.PP
301
 
Definition at line 375 of file qwt_scale_widget.cpp.
302
 
.PP
303
 
Referenced by QwtPlot::canvasMap(), and QwtPlot::print().
304
 
.SS "void QwtScaleWidget::getBorderDistHint (int & start, int & end) const"
305
 
.PP
306
 
Calculate a hint for the border distances. 
307
 
.PP
308
 
This member function calculates the distance of the scale's endpoints from the widget borders which is required for the mark labels to fit into the widget. The maximum of this distance an the minimum border distance is returned.
309
 
.PP
310
 
\fBWarning:\fP
311
 
.RS 4
312
 
.PD 0
313
 
.IP "\(bu" 2
314
 
The minimum border distance depends on the font.
315
 
.PP
316
 
.RE
317
 
.PP
318
 
\fBSee also:\fP
319
 
.RS 4
320
 
\fBsetMinBorderDist()\fP, \fBgetMinBorderDist()\fP, \fBsetBorderDist()\fP 
321
 
.RE
322
 
.PP
323
 
 
324
 
.PP
325
 
Definition at line 774 of file qwt_scale_widget.cpp.
326
 
.PP
327
 
Referenced by layoutScale(), minimumSizeHint(), and QwtPlot::updateAxes().
328
 
.SS "void QwtScaleWidget::getMinBorderDist (int & start, int & end) const"
329
 
.PP
330
 
Get the minimum value for the distances of the scale's endpoints from the widget borders.
331
 
.PP
332
 
\fBSee also:\fP
333
 
.RS 4
334
 
\fBsetMinBorderDist()\fP, \fBgetBorderDistHint()\fP 
335
 
.RE
336
 
.PP
337
 
 
338
 
.PP
339
 
Definition at line 805 of file qwt_scale_widget.cpp.
340
 
.SS "void QwtScaleWidget::setMinBorderDist (int start, int end)"
341
 
.PP
342
 
Set a minimum value for the distances of the scale's endpoints from the widget borders. This is useful to avoid that the scales are 'jumping', when the tick labels or their positions change often.
343
 
.PP
344
 
\fBSee also:\fP
345
 
.RS 4
346
 
\fBgetMinBorderDist()\fP, \fBgetBorderDistHint()\fP 
347
 
.RE
348
 
.PP
349
 
 
350
 
.PP
351
 
Definition at line 793 of file qwt_scale_widget.cpp.
352
 
.SS "void QwtScaleWidget::setMargin (int margin)"
353
 
.PP
354
 
Specify the margin to the colorBar/base line. 
355
 
.PP
356
 
\fBParameters:\fP
357
 
.RS 4
358
 
\fImargin\fP Margin 
359
 
.RE
360
 
.PP
361
 
\fBSee also:\fP
362
 
.RS 4
363
 
\fBQwtScaleWidget::margin\fP 
364
 
.RE
365
 
.PP
366
 
 
367
 
.PP
368
 
Definition at line 248 of file qwt_scale_widget.cpp.
369
 
.PP
370
 
References layoutScale().
371
 
.PP
372
 
Referenced by QwtPlot::print().
373
 
.SS "int QwtScaleWidget::margin () const"
374
 
.PP
375
 
\fBReturns:\fP
376
 
.RS 4
377
 
margin 
378
 
.RE
379
 
.PP
380
 
\fBSee also:\fP
381
 
.RS 4
382
 
\fBQwtScaleWidget::setMargin\fP 
383
 
.RE
384
 
.PP
385
 
 
386
 
.PP
387
 
Definition at line 384 of file qwt_scale_widget.cpp.
388
 
.PP
389
 
Referenced by QwtPlot::print().
390
 
.SS "void QwtScaleWidget::setSpacing (int spacing)"
391
 
.PP
392
 
Specify the distance between color bar, scale and title. 
393
 
.PP
394
 
\fBParameters:\fP
395
 
.RS 4
396
 
\fIspacing\fP Spacing 
397
 
.RE
398
 
.PP
399
 
\fBSee also:\fP
400
 
.RS 4
401
 
\fBQwtScaleWidget::spacing\fP 
402
 
.RE
403
 
.PP
404
 
 
405
 
.PP
406
 
Definition at line 263 of file qwt_scale_widget.cpp.
407
 
.PP
408
 
References layoutScale().
409
 
.SS "int QwtScaleWidget::spacing () const"
410
 
.PP
411
 
\fBReturns:\fP
412
 
.RS 4
413
 
distance between scale and title 
414
 
.RE
415
 
.PP
416
 
\fBSee also:\fP
417
 
.RS 4
418
 
\fBQwtScaleWidget::setMargin\fP 
419
 
.RE
420
 
.PP
421
 
 
422
 
.PP
423
 
Definition at line 393 of file qwt_scale_widget.cpp.
424
 
.PP
425
 
Referenced by QwtPlot::printScale().
426
 
.SS "void QwtScaleWidget::setPenWidth (int width)"
427
 
.PP
428
 
Specify the width of the scale pen. 
429
 
.PP
430
 
\fBParameters:\fP
431
 
.RS 4
432
 
\fIwidth\fP Pen width 
433
 
.RE
434
 
.PP
435
 
\fBSee also:\fP
436
 
.RS 4
437
 
\fBQwtScaleWidget::penWidth\fP 
438
 
.RE
439
 
.PP
440
 
 
441
 
.PP
442
 
Definition at line 278 of file qwt_scale_widget.cpp.
443
 
.PP
444
 
References layoutScale().
445
 
.SS "int QwtScaleWidget::penWidth () const"
446
 
.PP
447
 
\fBReturns:\fP
448
 
.RS 4
449
 
Scale pen width 
450
 
.RE
451
 
.PP
452
 
\fBSee also:\fP
453
 
.RS 4
454
 
\fBQwtScaleWidget::setPenWidth\fP 
455
 
.RE
456
 
.PP
457
 
 
458
 
.PP
459
 
Definition at line 402 of file qwt_scale_widget.cpp.
460
 
.PP
461
 
Referenced by QwtPlot::printScale().
462
 
.SS "void QwtScaleWidget::setScaleDiv (\fBQwtScaleTransformation\fP * transformation, const \fBQwtScaleDiv\fP & scaleDiv)"
463
 
.PP
464
 
Assign a scale division. 
465
 
.PP
466
 
The scale division determines where to set the tick marks.
467
 
.PP
468
 
\fBParameters:\fP
469
 
.RS 4
470
 
\fItransformation\fP Transformation, needed to translate between scale and pixal values 
471
 
.br
472
 
\fIscaleDiv\fP Scale Division 
473
 
.RE
474
 
.PP
475
 
\fBSee also:\fP
476
 
.RS 4
477
 
For more information about scale divisions, see \fBQwtScaleDiv\fP. 
478
 
.RE
479
 
.PP
480
 
 
481
 
.PP
482
 
Definition at line 839 of file qwt_scale_widget.cpp.
483
 
.PP
484
 
References layoutScale(), QwtAbstractScaleDraw::map(), QwtAbstractScaleDraw::scaleDiv(), scaleDivChanged(), QwtAbstractScaleDraw::setScaleDiv(), QwtAbstractScaleDraw::setTransformation(), QwtScaleMap::transformation(), and QwtScaleTransformation::type().
485
 
.PP
486
 
Referenced by QwtPlot::updateAxes().
487
 
.SS "void QwtScaleWidget::setScaleDraw (\fBQwtScaleDraw\fP *)"
488
 
.PP
489
 
Set a scale draw sd has to be created with new and will be deleted in QwtScaleWidget::~QwtScale or the next call of \fBQwtScaleWidget::setScaleDraw\fP. 
490
 
.PP
491
 
Definition at line 321 of file qwt_scale_widget.cpp.
492
 
.PP
493
 
References layoutScale(), and QwtScaleDraw::setAlignment().
494
 
.PP
495
 
Referenced by QwtPlot::setAxisScaleDraw().
496
 
.SS "const \fBQwtScaleDraw\fP * QwtScaleWidget::scaleDraw () const"
497
 
.PP
498
 
scaleDraw of this scale 
499
 
.PP
500
 
\fBSee also:\fP
501
 
.RS 4
502
 
QwtScaleDraw::setScaleDraw 
503
 
.RE
504
 
.PP
505
 
 
506
 
.PP
507
 
Definition at line 339 of file qwt_scale_widget.cpp.
508
 
.PP
509
 
Referenced by alignment(), QwtPlot::axisScaleDraw(), QwtPlot::printScale(), and QwtPlot::sizeHint().
510
 
.SS "\fBQwtScaleDraw\fP * QwtScaleWidget::scaleDraw ()"
511
 
.PP
512
 
scaleDraw of this scale 
513
 
.PP
514
 
\fBSee also:\fP
515
 
.RS 4
516
 
QwtScaleDraw::setScaleDraw 
517
 
.RE
518
 
.PP
519
 
 
520
 
.PP
521
 
Definition at line 348 of file qwt_scale_widget.cpp.
522
 
.SS "void QwtScaleWidget::setLabelAlignment (Qt::Alignment alignment)"
523
 
.PP
524
 
Change the alignment for the labels. 
525
 
.PP
526
 
\fBSee also:\fP
527
 
.RS 4
528
 
\fBQwtScaleDraw::setLabelAlignment()\fP, \fBQwtScaleWidget::setLabelRotation()\fP 
529
 
.RE
530
 
.PP
531
 
 
532
 
.PP
533
 
Definition at line 298 of file qwt_scale_widget.cpp.
534
 
.SS "void QwtScaleWidget::setLabelRotation (double rotation)"
535
 
.PP
536
 
Change the rotation for the labels. See \fBQwtScaleDraw::setLabelRotation()\fP. 
537
 
.PP
538
 
\fBSee also:\fP
539
 
.RS 4
540
 
\fBQwtScaleDraw::setLabelRotation()\fP, QwtScaleWidget::setLabelFlags() 
541
 
.RE
542
 
.PP
543
 
 
544
 
.PP
545
 
Definition at line 310 of file qwt_scale_widget.cpp.
546
 
.PP
547
 
References layoutScale().
548
 
.PP
549
 
Referenced by QwtPlot::setAxisLabelRotation().
550
 
.SS "QSize QwtScaleWidget::sizeHint () const\fC [virtual]\fP"
551
 
.PP
552
 
\fBReturns:\fP
553
 
.RS 4
554
 
a size hint 
555
 
.RE
556
 
.PP
557
 
 
558
 
.PP
559
 
Definition at line 689 of file qwt_scale_widget.cpp.
560
 
.PP
561
 
References minimumSizeHint().
562
 
.SS "QSize QwtScaleWidget::minimumSizeHint () const\fC [virtual]\fP"
563
 
.PP
564
 
\fBReturns:\fP
565
 
.RS 4
566
 
a minimum size hint 
567
 
.RE
568
 
.PP
569
 
 
570
 
.PP
571
 
Definition at line 697 of file qwt_scale_widget.cpp.
572
 
.PP
573
 
References dimForLength(), and getBorderDistHint().
574
 
.PP
575
 
Referenced by QwtPlotLayout::minimumSizeHint(), sizeHint(), and QwtPlot::sizeHint().
576
 
.SS "int QwtScaleWidget::titleHeightForWidth (int width) const"
577
 
.PP
578
 
Find the height of the title for a given width. 
579
 
.PP
580
 
\fBParameters:\fP
581
 
.RS 4
582
 
\fIwidth\fP Width 
583
 
.RE
584
 
.PP
585
 
\fBReturns:\fP
586
 
.RS 4
587
 
height Height 
588
 
.RE
589
 
.PP
590
 
 
591
 
.PP
592
 
Definition at line 732 of file qwt_scale_widget.cpp.
593
 
.PP
594
 
Referenced by dimForLength().
595
 
.SS "int QwtScaleWidget::dimForLength (int length, const QFont & scaleFont) const"
596
 
.PP
597
 
Find the minimum dimension for a given length. dim is the height, length the width seen in direction of the title. 
598
 
.PP
599
 
\fBParameters:\fP
600
 
.RS 4
601
 
\fIlength\fP width for horizontal, height for vertical scales 
602
 
.br
603
 
\fIscaleFont\fP Font of the scale 
604
 
.RE
605
 
.PP
606
 
\fBReturns:\fP
607
 
.RS 4
608
 
height for horizontal, width for vertical scales 
609
 
.RE
610
 
.PP
611
 
 
612
 
.PP
613
 
Definition at line 746 of file qwt_scale_widget.cpp.
614
 
.PP
615
 
References titleHeightForWidth().
616
 
.PP
617
 
Referenced by minimumSizeHint().
618
 
.SS "void QwtScaleWidget::drawTitle (QPainter * painter, \fBQwtScaleDraw::Alignment\fP align, const QRect & rect) const"
619
 
.PP
620
 
Rotate and paint a title according to its position into a given rectangle. 
621
 
.PP
622
 
\fBParameters:\fP
623
 
.RS 4
624
 
\fIpainter\fP Painter 
625
 
.br
626
 
\fIalign\fP Alignment 
627
 
.br
628
 
\fIrect\fP Bounding rectangle 
629
 
.RE
630
 
.PP
631
 
 
632
 
.PP
633
 
Definition at line 621 of file qwt_scale_widget.cpp.
634
 
.PP
635
 
References QwtText::draw(), QwtText::setRenderFlags(), and title().
636
 
.PP
637
 
Referenced by draw(), and QwtPlot::printScale().
638
 
.SS "void QwtScaleWidget::setAlignment (\fBQwtScaleDraw::Alignment\fP alignment)"
639
 
.PP
640
 
Change the alignment
641
 
.PP
642
 
\fBParameters:\fP
643
 
.RS 4
644
 
\fIalignment\fP New alignment 
645
 
.RE
646
 
.PP
647
 
\fBSee also:\fP
648
 
.RS 4
649
 
\fBQwtScaleWidget::alignment\fP 
650
 
.RE
651
 
.PP
652
 
 
653
 
.PP
654
 
Definition at line 186 of file qwt_scale_widget.cpp.
655
 
.PP
656
 
References layoutScale().
657
 
.SS "\fBQwtScaleDraw::Alignment\fP QwtScaleWidget::alignment () const"
658
 
.PP
659
 
\fBReturns:\fP
660
 
.RS 4
661
 
position 
662
 
.RE
663
 
.PP
664
 
\fBSee also:\fP
665
 
.RS 4
666
 
QwtScaleWidget::setPosition 
667
 
.RE
668
 
.PP
669
 
 
670
 
.PP
671
 
Definition at line 217 of file qwt_scale_widget.cpp.
672
 
.PP
673
 
References QwtScaleDraw::alignment(), and scaleDraw().
674
 
.SS "void QwtScaleWidget::paintEvent (QPaintEvent * e)\fC [protected, virtual]\fP"
675
 
.PP
676
 
paintEvent 
677
 
.PP
678
 
Definition at line 409 of file qwt_scale_widget.cpp.
679
 
.PP
680
 
References draw().
681
 
.SS "void QwtScaleWidget::resizeEvent (QResizeEvent * e)\fC [protected, virtual]\fP"
682
 
.PP
683
 
resizeEvent 
684
 
.PP
685
 
Definition at line 541 of file qwt_scale_widget.cpp.
686
 
.PP
687
 
References layoutScale().
688
 
.SS "void QwtScaleWidget::draw (QPainter * p) const\fC [protected]\fP"
689
 
.PP
690
 
draw the scale 
691
 
.PP
692
 
Definition at line 427 of file qwt_scale_widget.cpp.
693
 
.PP
694
 
References colorBarRect(), drawColorBar(), and drawTitle().
695
 
.PP
696
 
Referenced by paintEvent().
697
 
.SS "void QwtScaleWidget::scaleChange ()\fC [protected]\fP"
698
 
.PP
699
 
Notify a change of the scale. 
700
 
.PP
701
 
This virtual function can be overloaded by derived classes. The default implementation updates the geometry and repaints the widget. 
702
 
.PP
703
 
Definition at line 681 of file qwt_scale_widget.cpp.
704
 
.PP
705
 
References layoutScale().
706
 
.SS "void QwtScaleWidget::layoutScale (bool update = \fCtrue\fP)\fC [protected]\fP"
707
 
.PP
708
 
Recalculate the scale's geometry and layout based on. 
709
 
.PP
710
 
Definition at line 551 of file qwt_scale_widget.cpp.
711
 
.PP
712
 
References colorBarWidth(), and getBorderDistHint().
713
 
.PP
714
 
Referenced by resizeEvent(), scaleChange(), setAlignment(), setBorderDist(), setColorBarEnabled(), setColorBarWidth(), setColorMap(), setLabelRotation(), setMargin(), setPenWidth(), setScaleDiv(), setScaleDraw(), setSpacing(), and setTitle().
715
 
 
716
 
.SH "Author"
717
 
.PP 
718
 
Generated automatically by Doxygen for Qwt User's Guide from the source code.