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

« back to all changes in this revision

Viewing changes to qwt-5.0.1/doc/man/man3/QwtScaleDraw.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2007-10-05 15:20:41 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071005152041-qmybqh4fj9jejyo2
Tags: 5.0.2-2
* Handle nostrip build option. (Closes: #437877)
* Build libqwt5-doc package in binary-indep target. (Closes: #443110)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
.TH "QwtScaleDraw" 3 "26 Feb 2007" "Version 5.0.1" "Qwt User's Guide" \" -*- nroff -*-
2
 
.ad l
3
 
.nh
4
 
.SH NAME
5
 
QwtScaleDraw \- 
6
 
.SH SYNOPSIS
7
 
.br
8
 
.PP
9
 
Inherits \fBQwtAbstractScaleDraw\fP.
10
 
.PP
11
 
.SH "Detailed Description"
12
 
.PP 
13
 
A class for drawing scales. 
14
 
 
15
 
\fBQwtScaleDraw\fP can be used to draw linear or logarithmic scales. A scale has a position, an alignment and a length, which can be specified . The labels can be rotated and aligned to the ticks using \fBsetLabelRotation()\fP and \fBsetLabelAlignment()\fP.
16
 
.PP
17
 
After a scale division has been specified as a \fBQwtScaleDiv\fP object using \fBQwtAbstractScaleDraw::setScaleDiv(const QwtScaleDiv &s)\fP, the scale can be drawn with the \fBQwtAbstractScaleDraw::draw()\fP member. 
18
 
.PP
19
 
Definition at line 30 of file qwt_scale_draw.h.
20
 
.SS "Public Types"
21
 
 
22
 
.in +1c
23
 
.ti -1c
24
 
.RI "enum \fBAlignment\fP { \fBBottomScale\fP, \fBTopScale\fP, \fBLeftScale\fP, \fBRightScale\fP }"
25
 
.br
26
 
.in -1c
27
 
.SS "Public Member Functions"
28
 
 
29
 
.in +1c
30
 
.ti -1c
31
 
.RI "\fBQwtScaleDraw\fP ()"
32
 
.br
33
 
.ti -1c
34
 
.RI "\fBQwtScaleDraw\fP (const \fBQwtScaleDraw\fP &)"
35
 
.br
36
 
.ti -1c
37
 
.RI "virtual \fB~QwtScaleDraw\fP ()"
38
 
.br
39
 
.ti -1c
40
 
.RI "\fBQwtScaleDraw\fP & \fBoperator=\fP (const \fBQwtScaleDraw\fP &other)"
41
 
.br
42
 
.ti -1c
43
 
.RI "void \fBgetBorderDistHint\fP (const QFont &, int &start, int &end) const "
44
 
.br
45
 
.ti -1c
46
 
.RI "int \fBminLabelDist\fP (const QFont &) const "
47
 
.br
48
 
.ti -1c
49
 
.RI "int \fBminLength\fP (const QPen &, const QFont &) const "
50
 
.br
51
 
.ti -1c
52
 
.RI "virtual int \fBextent\fP (const QPen &, const QFont &) const "
53
 
.br
54
 
.ti -1c
55
 
.RI "void \fBmove\fP (int x, int y)"
56
 
.br
57
 
.ti -1c
58
 
.RI "void \fBmove\fP (const QPoint &)"
59
 
.br
60
 
.ti -1c
61
 
.RI "void \fBsetLength\fP (int length)"
62
 
.br
63
 
.ti -1c
64
 
.RI "\fBAlignment\fP \fBalignment\fP () const "
65
 
.br
66
 
.ti -1c
67
 
.RI "void \fBsetAlignment\fP (\fBAlignment\fP)"
68
 
.br
69
 
.ti -1c
70
 
.RI "Qt::Orientation \fBorientation\fP () const "
71
 
.br
72
 
.ti -1c
73
 
.RI "QPoint \fBpos\fP () const "
74
 
.br
75
 
.ti -1c
76
 
.RI "int \fBlength\fP () const "
77
 
.br
78
 
.ti -1c
79
 
.RI "void \fBsetLabelAlignment\fP (Qt::Alignment)"
80
 
.br
81
 
.ti -1c
82
 
.RI "Qt::Alignment \fBlabelAlignment\fP () const "
83
 
.br
84
 
.ti -1c
85
 
.RI "void \fBsetLabelRotation\fP (double rotation)"
86
 
.br
87
 
.ti -1c
88
 
.RI "double \fBlabelRotation\fP () const "
89
 
.br
90
 
.ti -1c
91
 
.RI "int \fBmaxLabelHeight\fP (const QFont &) const "
92
 
.br
93
 
.ti -1c
94
 
.RI "int \fBmaxLabelWidth\fP (const QFont &) const "
95
 
.br
96
 
.ti -1c
97
 
.RI "QPoint \fBlabelPosition\fP (double val) const "
98
 
.br
99
 
.ti -1c
100
 
.RI "QRect \fBlabelRect\fP (const QFont &, double val) const "
101
 
.br
102
 
.ti -1c
103
 
.RI "QSize \fBlabelSize\fP (const QFont &, double val) const "
104
 
.br
105
 
.in -1c
106
 
.SS "Protected Member Functions"
107
 
 
108
 
.in +1c
109
 
.ti -1c
110
 
.RI "QMatrix \fBlabelMatrix\fP (const QPoint &, const QSize &) const "
111
 
.br
112
 
.ti -1c
113
 
.RI "virtual void \fBdrawTick\fP (QPainter *p, double val, int len) const "
114
 
.br
115
 
.ti -1c
116
 
.RI "virtual void \fBdrawBackbone\fP (QPainter *p) const "
117
 
.br
118
 
.ti -1c
119
 
.RI "virtual void \fBdrawLabel\fP (QPainter *p, double val) const "
120
 
.br
121
 
.in -1c
122
 
.SH "Member Enumeration Documentation"
123
 
.PP 
124
 
.SS "enum \fBQwtScaleDraw::Alignment\fP"
125
 
.PP
126
 
Alignment of the scale draw 
127
 
.PP
128
 
\fBSee also:\fP
129
 
.RS 4
130
 
\fBsetAlignment()\fP, \fBalignment()\fP 
131
 
.RE
132
 
.PP
133
 
 
134
 
.PP
135
 
Definition at line 37 of file qwt_scale_draw.h.
136
 
.SH "Constructor & Destructor Documentation"
137
 
.PP 
138
 
.SS "QwtScaleDraw::QwtScaleDraw ()"
139
 
.PP
140
 
Constructor. 
141
 
.PP
142
 
The range of the scale is initialized to [0, 100], The position is at (0, 0) with a length of 100. The orientation is QwtAbstractScaleDraw::Bottom. 
143
 
.PP
144
 
Definition at line 60 of file qwt_scale_draw.cpp.
145
 
.PP
146
 
References setLength().
147
 
.SS "QwtScaleDraw::QwtScaleDraw (const \fBQwtScaleDraw\fP &)"
148
 
.PP
149
 
Copy constructor. 
150
 
.PP
151
 
Definition at line 67 of file qwt_scale_draw.cpp.
152
 
.PP
153
 
References d_data.
154
 
.SS "QwtScaleDraw::~QwtScaleDraw ()\fC [virtual]\fP"
155
 
.PP
156
 
Destructor. 
157
 
.PP
158
 
Definition at line 74 of file qwt_scale_draw.cpp.
159
 
.SH "Member Function Documentation"
160
 
.PP 
161
 
.SS "\fBQwtScaleDraw::Alignment\fP QwtScaleDraw::alignment () const"
162
 
.PP
163
 
Return alignment of the scale 
164
 
.PP
165
 
\fBSee also:\fP
166
 
.RS 4
167
 
\fBsetAlignment()\fP 
168
 
.RE
169
 
.PP
170
 
 
171
 
.PP
172
 
Definition at line 91 of file qwt_scale_draw.cpp.
173
 
.PP
174
 
Referenced by QwtScaleWidget::alignment(), drawBackbone(), labelMatrix(), and labelPosition().
175
 
.SS "void QwtScaleDraw::drawBackbone (QPainter * painter) const\fC [protected, virtual]\fP"
176
 
.PP
177
 
Draws the baseline of the scale 
178
 
.PP
179
 
\fBParameters:\fP
180
 
.RS 4
181
 
\fIpainter\fP Painter
182
 
.RE
183
 
.PP
184
 
\fBSee also:\fP
185
 
.RS 4
186
 
\fBdrawTick()\fP, \fBdrawLabel()\fP 
187
 
.RE
188
 
.PP
189
 
 
190
 
.PP
191
 
Implements \fBQwtAbstractScaleDraw\fP.
192
 
.PP
193
 
Definition at line 507 of file qwt_scale_draw.cpp.
194
 
.PP
195
 
References alignment(), QwtPainter::drawLine(), and pos().
196
 
.SS "void QwtScaleDraw::drawLabel (QPainter * painter, double value) const\fC [protected, virtual]\fP"
197
 
.PP
198
 
Draws the label for a major scale tick
199
 
.PP
200
 
\fBParameters:\fP
201
 
.RS 4
202
 
\fIpainter\fP Painter 
203
 
.br
204
 
\fIvalue\fP Value
205
 
.RE
206
 
.PP
207
 
\fBSee also:\fP
208
 
.RS 4
209
 
\fBdrawTick\fP, \fBdrawBackbone\fP 
210
 
.RE
211
 
.PP
212
 
 
213
 
.PP
214
 
Implements \fBQwtAbstractScaleDraw\fP.
215
 
.PP
216
 
Definition at line 612 of file qwt_scale_draw.cpp.
217
 
.PP
218
 
References QwtText::draw(), QwtText::isEmpty(), labelMatrix(), labelPosition(), labelSize(), pos(), QwtText::textSize(), and QwtAbstractScaleDraw::tickLabel().
219
 
.SS "void QwtScaleDraw::drawTick (QPainter * painter, double value, int len) const\fC [protected, virtual]\fP"
220
 
.PP
221
 
Draw a tick
222
 
.PP
223
 
\fBParameters:\fP
224
 
.RS 4
225
 
\fIpainter\fP Painter 
226
 
.br
227
 
\fIvalue\fP Value of the tick 
228
 
.br
229
 
\fIlen\fP Lenght of the tick
230
 
.RE
231
 
.PP
232
 
\fBSee also:\fP
233
 
.RS 4
234
 
\fBdrawBackbone()\fP, \fBdrawLabel()\fP 
235
 
.RE
236
 
.PP
237
 
 
238
 
.PP
239
 
Implements \fBQwtAbstractScaleDraw\fP.
240
 
.PP
241
 
Definition at line 406 of file qwt_scale_draw.cpp.
242
 
.PP
243
 
References QwtMetricsMap::isIdentity(), QwtMetricsMap::layoutToDevice(), QwtMetricsMap::layoutToDeviceX(), QwtMetricsMap::layoutToDeviceY(), QwtAbstractScaleDraw::map(), QwtPainter::metricsMap(), orientation(), pos(), QwtPainter::resetMetricsMap(), and QwtAbstractScaleDraw::scaleMap().
244
 
.SS "int QwtScaleDraw::extent (const QPen & pen, const QFont & font) const\fC [virtual]\fP"
245
 
.PP
246
 
Calculate the width/height that is needed for a vertical/horizontal scale.
247
 
.PP
248
 
The extent is calculated from the pen width of the backbone, the major tick length, the spacing and the maximum width/height of the labels.
249
 
.PP
250
 
\fBParameters:\fP
251
 
.RS 4
252
 
\fIpen\fP Pen that is used for painting backbone and ticks 
253
 
.br
254
 
\fIfont\fP Font used for painting the labels
255
 
.RE
256
 
.PP
257
 
\fBSee also:\fP
258
 
.RS 4
259
 
\fBminLength()\fP 
260
 
.RE
261
 
.PP
262
 
 
263
 
.PP
264
 
Implements \fBQwtAbstractScaleDraw\fP.
265
 
.PP
266
 
Definition at line 280 of file qwt_scale_draw.cpp.
267
 
.PP
268
 
References QwtAbstractScaleDraw::hasComponent(), QwtAbstractScaleDraw::majTickLength(), maxLabelHeight(), maxLabelWidth(), QwtAbstractScaleDraw::minimumExtent(), orientation(), and QwtAbstractScaleDraw::spacing().
269
 
.PP
270
 
Referenced by QwtThermo::minimumSizeHint(), and QwtSlider::minimumSizeHint().
271
 
.SS "void QwtScaleDraw::getBorderDistHint (const QFont & font, int & start, int & end) const"
272
 
.PP
273
 
Determine the minimum border distance. 
274
 
.PP
275
 
This member function returns the minimum space needed to draw the mark labels at the scale's endpoints.
276
 
.PP
277
 
\fBParameters:\fP
278
 
.RS 4
279
 
\fIfont\fP Font 
280
 
.br
281
 
\fIstart\fP Start border distance 
282
 
.br
283
 
\fIend\fP End border distance 
284
 
.RE
285
 
.PP
286
 
 
287
 
.PP
288
 
Definition at line 139 of file qwt_scale_draw.cpp.
289
 
.PP
290
 
References QwtAbstractScaleDraw::hasComponent(), labelRect(), QwtAbstractScaleDraw::map(), orientation(), QwtAbstractScaleDraw::scaleDiv(), and QwtScaleDiv::ticks().
291
 
.PP
292
 
Referenced by QwtSlider::layoutSlider(), QwtThermo::layoutThermo(), QwtSlider::minimumSizeHint(), and minLength().
293
 
.SS "Qt::Alignment QwtScaleDraw::labelAlignment () const"
294
 
.PP
295
 
\fBReturns:\fP
296
 
.RS 4
297
 
the label flags 
298
 
.RE
299
 
.PP
300
 
\fBSee also:\fP
301
 
.RS 4
302
 
\fBsetLabelAlignment()\fP, \fBlabelRotation()\fP 
303
 
.RE
304
 
.PP
305
 
 
306
 
.PP
307
 
Definition at line 834 of file qwt_scale_draw.cpp.
308
 
.PP
309
 
Referenced by labelMatrix().
310
 
.SS "QMatrix QwtScaleDraw::labelMatrix (const QPoint & pos, const QSize & size) const\fC [protected]\fP"
311
 
.PP
312
 
Calculate the matrix that is needed to paint a label depending on its alignment and rotation.
313
 
.PP
314
 
\fBParameters:\fP
315
 
.RS 4
316
 
\fIpos\fP Position where to paint the label 
317
 
.br
318
 
\fIsize\fP Size of the label
319
 
.RE
320
 
.PP
321
 
\fBSee also:\fP
322
 
.RS 4
323
 
\fBsetLabelAlignment()\fP, \fBsetLabelRotation()\fP 
324
 
.RE
325
 
.PP
326
 
 
327
 
.PP
328
 
Definition at line 646 of file qwt_scale_draw.cpp.
329
 
.PP
330
 
References alignment(), labelAlignment(), and labelRotation().
331
 
.PP
332
 
Referenced by drawLabel().
333
 
.SS "QPoint QwtScaleDraw::labelPosition (double value) const"
334
 
.PP
335
 
Find the position, where to paint a label
336
 
.PP
337
 
The position has a distance of \fBmajTickLength()\fP + \fBspacing()\fP + 1 from the backbone. The direction depends on the \fBalignment()\fP
338
 
.PP
339
 
\fBParameters:\fP
340
 
.RS 4
341
 
\fIvalue\fP Value 
342
 
.RE
343
 
.PP
344
 
 
345
 
.PP
346
 
Definition at line 356 of file qwt_scale_draw.cpp.
347
 
.PP
348
 
References alignment(), QwtAbstractScaleDraw::hasComponent(), QwtAbstractScaleDraw::majTickLength(), QwtAbstractScaleDraw::map(), QwtAbstractScaleDraw::spacing(), and QwtScaleMap::transform().
349
 
.PP
350
 
Referenced by drawLabel(), and labelRect().
351
 
.SS "QRect QwtScaleDraw::labelRect (const QFont & font, double value) const"
352
 
.PP
353
 
Find the bounding rect for the label. The coordinates of the rect are relative to spacing + ticklength from the backbone in direction of the tick.
354
 
.PP
355
 
\fBParameters:\fP
356
 
.RS 4
357
 
\fIfont\fP Font used for painting 
358
 
.br
359
 
\fIvalue\fP Value 
360
 
.RE
361
 
.PP
362
 
 
363
 
.PP
364
 
Definition at line 717 of file qwt_scale_draw.cpp.
365
 
.PP
366
 
References QwtText::isEmpty(), labelPosition(), labelSize(), pos(), QwtText::textSize(), and QwtAbstractScaleDraw::tickLabel().
367
 
.PP
368
 
Referenced by getBorderDistHint(), labelSize(), and minLabelDist().
369
 
.SS "double QwtScaleDraw::labelRotation () const"
370
 
.PP
371
 
\fBReturns:\fP
372
 
.RS 4
373
 
the label rotation 
374
 
.RE
375
 
.PP
376
 
\fBSee also:\fP
377
 
.RS 4
378
 
\fBsetLabelRotation()\fP, \fBlabelAlignment()\fP 
379
 
.RE
380
 
.PP
381
 
 
382
 
.PP
383
 
Definition at line 788 of file qwt_scale_draw.cpp.
384
 
.PP
385
 
Referenced by labelMatrix().
386
 
.SS "QSize QwtScaleDraw::labelSize (const QFont & font, double value) const"
387
 
.PP
388
 
Calculate the size that is needed to draw a label
389
 
.PP
390
 
\fBParameters:\fP
391
 
.RS 4
392
 
\fIfont\fP Label font 
393
 
.br
394
 
\fIvalue\fP Value 
395
 
.RE
396
 
.PP
397
 
 
398
 
.PP
399
 
Definition at line 761 of file qwt_scale_draw.cpp.
400
 
.PP
401
 
References labelRect().
402
 
.PP
403
 
Referenced by drawLabel(), labelRect(), maxLabelHeight(), and maxLabelWidth().
404
 
.SS "int QwtScaleDraw::length () const"
405
 
.PP
406
 
\fBReturns:\fP
407
 
.RS 4
408
 
the length of the backbone 
409
 
.RE
410
 
.PP
411
 
\fBSee also:\fP
412
 
.RS 4
413
 
\fBsetLength()\fP, \fBpos()\fP 
414
 
.RE
415
 
.PP
416
 
 
417
 
.PP
418
 
Definition at line 599 of file qwt_scale_draw.cpp.
419
 
.SS "int QwtScaleDraw::maxLabelHeight (const QFont & font) const"
420
 
.PP
421
 
\fBParameters:\fP
422
 
.RS 4
423
 
\fIfont\fP Font 
424
 
.RE
425
 
.PP
426
 
\fBReturns:\fP
427
 
.RS 4
428
 
the maximum height of a label 
429
 
.RE
430
 
.PP
431
 
 
432
 
.PP
433
 
Definition at line 867 of file qwt_scale_draw.cpp.
434
 
.PP
435
 
References labelSize(), QwtAbstractScaleDraw::scaleDiv(), and QwtScaleDiv::ticks().
436
 
.PP
437
 
Referenced by extent().
438
 
.SS "int QwtScaleDraw::maxLabelWidth (const QFont & font) const"
439
 
.PP
440
 
\fBParameters:\fP
441
 
.RS 4
442
 
\fIfont\fP Font 
443
 
.RE
444
 
.PP
445
 
\fBReturns:\fP
446
 
.RS 4
447
 
the maximum width of a label 
448
 
.RE
449
 
.PP
450
 
 
451
 
.PP
452
 
Definition at line 844 of file qwt_scale_draw.cpp.
453
 
.PP
454
 
References labelSize(), QwtAbstractScaleDraw::scaleDiv(), and QwtScaleDiv::ticks().
455
 
.PP
456
 
Referenced by extent().
457
 
.SS "int QwtScaleDraw::minLabelDist (const QFont & font) const"
458
 
.PP
459
 
Determine the minimum distance between two labels, that is necessary that the texts don't overlap.
460
 
.PP
461
 
\fBParameters:\fP
462
 
.RS 4
463
 
\fIfont\fP Font 
464
 
.RE
465
 
.PP
466
 
\fBReturns:\fP
467
 
.RS 4
468
 
The maximum width of a label
469
 
.RE
470
 
.PP
471
 
\fBSee also:\fP
472
 
.RS 4
473
 
\fBgetBorderDistHint()\fP 
474
 
.RE
475
 
.PP
476
 
 
477
 
.PP
478
 
Definition at line 192 of file qwt_scale_draw.cpp.
479
 
.PP
480
 
References QwtAbstractScaleDraw::hasComponent(), labelRect(), orientation(), QwtAbstractScaleDraw::scaleDiv(), and QwtScaleDiv::ticks().
481
 
.PP
482
 
Referenced by minLength().
483
 
.SS "int QwtScaleDraw::minLength (const QPen & pen, const QFont & font) const"
484
 
.PP
485
 
Calculate the minimum length that is needed to draw the scale
486
 
.PP
487
 
\fBParameters:\fP
488
 
.RS 4
489
 
\fIpen\fP Pen that is used for painting backbone and ticks 
490
 
.br
491
 
\fIfont\fP Font used for painting the labels
492
 
.RE
493
 
.PP
494
 
\fBSee also:\fP
495
 
.RS 4
496
 
\fBextent()\fP 
497
 
.RE
498
 
.PP
499
 
 
500
 
.PP
501
 
Definition at line 318 of file qwt_scale_draw.cpp.
502
 
.PP
503
 
References getBorderDistHint(), QwtAbstractScaleDraw::hasComponent(), minLabelDist(), QwtAbstractScaleDraw::scaleDiv(), and QwtScaleDiv::ticks().
504
 
.PP
505
 
Referenced by QwtThermo::minimumSizeHint(), and QwtSlider::minimumSizeHint().
506
 
.SS "void QwtScaleDraw::move (const QPoint & pos)"
507
 
.PP
508
 
Move the position of the scale. 
509
 
.PP
510
 
The meaning of the parameter pos depends on the alignment: 
511
 
.IP "\fBQwtScaleDraw::LeftScale \fP" 1c
512
 
The origin is the topmost point of the backbone. The backbone is a vertical line. Scale marks and labels are drawn at the left of the backbone. 
513
 
.IP "\fBQwtScaleDraw::RightScale \fP" 1c
514
 
The origin is the topmost point of the backbone. The backbone is a vertical line. Scale marks and labels are drawn at the right of the backbone. 
515
 
.IP "\fBQwtScaleDraw::TopScale \fP" 1c
516
 
The origin is the leftmost point of the backbone. The backbone is a horizontal line. Scale marks and labels are drawn above the backbone. 
517
 
.IP "\fBQwtScaleDraw::BottomScale \fP" 1c
518
 
The origin is the leftmost point of the backbone. The backbone is a horizontal line Scale marks and labels are drawn below the backbone. 
519
 
.PP
520
 
.PP
521
 
\fBParameters:\fP
522
 
.RS 4
523
 
\fIpos\fP Origin of the scale
524
 
.RE
525
 
.PP
526
 
\fBSee also:\fP
527
 
.RS 4
528
 
\fBpos()\fP, \fBsetLength()\fP 
529
 
.RE
530
 
.PP
531
 
 
532
 
.PP
533
 
Definition at line 566 of file qwt_scale_draw.cpp.
534
 
.SS "\fBQwtScaleDraw\fP & QwtScaleDraw::operator= (const \fBQwtScaleDraw\fP & other)"
535
 
.PP
536
 
Assignment operator. 
537
 
.PP
538
 
Definition at line 80 of file qwt_scale_draw.cpp.
539
 
.PP
540
 
References d_data.
541
 
.SS "Qt::Orientation QwtScaleDraw::orientation () const"
542
 
.PP
543
 
Return the orientation
544
 
.PP
545
 
TopScale, BottomScale are horizontal (Qt::Horizontal) scales, LeftScale, RightScale are vertical (Qt::Vertical) scales.
546
 
.PP
547
 
\fBSee also:\fP
548
 
.RS 4
549
 
\fBalignment()\fP 
550
 
.RE
551
 
.PP
552
 
 
553
 
.PP
554
 
Definition at line 115 of file qwt_scale_draw.cpp.
555
 
.PP
556
 
Referenced by QwtScaleWidget::drawColorBar(), drawTick(), extent(), getBorderDistHint(), minLabelDist(), and QwtPlot::printScale().
557
 
.SS "QPoint QwtScaleDraw::pos () const"
558
 
.PP
559
 
\fBReturns:\fP
560
 
.RS 4
561
 
Origin of the scale 
562
 
.RE
563
 
.PP
564
 
\fBSee also:\fP
565
 
.RS 4
566
 
\fBmove()\fP, \fBlength()\fP 
567
 
.RE
568
 
.PP
569
 
 
570
 
.PP
571
 
Definition at line 576 of file qwt_scale_draw.cpp.
572
 
.PP
573
 
Referenced by drawBackbone(), drawLabel(), drawTick(), and labelRect().
574
 
.SS "void QwtScaleDraw::setAlignment (\fBAlignment\fP align)"
575
 
.PP
576
 
Set the alignment of the scale
577
 
.PP
578
 
The default alignment is QwtScaleDraw::BottomScale 
579
 
.PP
580
 
\fBSee also:\fP
581
 
.RS 4
582
 
\fBalignment()\fP 
583
 
.RE
584
 
.PP
585
 
 
586
 
.PP
587
 
Definition at line 102 of file qwt_scale_draw.cpp.
588
 
.PP
589
 
Referenced by QwtThermo::layoutThermo(), and QwtScaleWidget::setScaleDraw().
590
 
.SS "void QwtScaleDraw::setLabelAlignment (Qt::Alignment alignment)"
591
 
.PP
592
 
Change the label flags. 
593
 
.PP
594
 
Labels are aligned to the point ticklength + spacing away from the backbone.
595
 
.PP
596
 
The alignment is relative to the orientation of the label text. In case of an flags of 0 the label will be aligned depending on the orientation of the scale:
597
 
.PP
598
 
QwtScaleDraw::TopScale: Qt::AlignHCenter | Qt::AlignTop
599
 
.br
600
 
 QwtScaleDraw::BottomScale: Qt::AlignHCenter | Qt::AlignBottom
601
 
.br
602
 
 QwtScaleDraw::LeftScale: Qt::AlignLeft | Qt::AlignVCenter
603
 
.br
604
 
 QwtScaleDraw::RightScale: Qt::AlignRight | Qt::AlignVCenter
605
 
.br
606
 
.PP
607
 
Changing the alignment is often necessary for rotated labels.
608
 
.PP
609
 
\fBParameters:\fP
610
 
.RS 4
611
 
\fIalignment\fP Or'd Qt::AlignmentFlags <see qnamespace.h>
612
 
.RE
613
 
.PP
614
 
\fBSee also:\fP
615
 
.RS 4
616
 
\fBsetLabelRotation()\fP, \fBlabelRotation()\fP, \fBlabelAlignment()\fP 
617
 
.RE
618
 
.PP
619
 
\fBWarning:\fP
620
 
.RS 4
621
 
The various alignments might be confusing. The alignment of the label is not the alignment of the scale and is not the alignment of the flags (QwtText::flags()) returned from \fBQwtAbstractScaleDraw::label()\fP. 
622
 
.RE
623
 
.PP
624
 
 
625
 
.PP
626
 
Definition at line 821 of file qwt_scale_draw.cpp.
627
 
.SS "void QwtScaleDraw::setLabelRotation (double rotation)"
628
 
.PP
629
 
Rotate all labels.
630
 
.PP
631
 
When changing the rotation, it might be necessary to adjust the label flags too. Finding a useful combination is often the result of try and error.
632
 
.PP
633
 
\fBParameters:\fP
634
 
.RS 4
635
 
\fIrotation\fP Angle in degrees. When changing the label rotation, the label flags often needs to be adjusted too.
636
 
.RE
637
 
.PP
638
 
\fBSee also:\fP
639
 
.RS 4
640
 
\fBsetLabelAlignment()\fP, \fBlabelRotation()\fP, \fBlabelAlignment()\fP. 
641
 
.RE
642
 
.PP
643
 
 
644
 
.PP
645
 
Definition at line 779 of file qwt_scale_draw.cpp.
646
 
.SS "void QwtScaleDraw::setLength (int length)"
647
 
.PP
648
 
Set the length of the backbone.
649
 
.PP
650
 
The length doesn't include the space needed for overlapping labels.
651
 
.PP
652
 
\fBSee also:\fP
653
 
.RS 4
654
 
\fBmove()\fP, \fBminLabelDist()\fP 
655
 
.RE
656
 
.PP
657
 
 
658
 
.PP
659
 
Definition at line 589 of file qwt_scale_draw.cpp.
660
 
.PP
661
 
Referenced by QwtSlider::layoutSlider(), QwtThermo::layoutThermo(), and QwtScaleDraw().
662
 
 
663
 
.SH "Author"
664
 
.PP 
665
 
Generated automatically by Doxygen for Qwt User's Guide from the source code.