GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
QwtScaleWidget(3) Qwt User's Guide QwtScaleWidget(3)

QwtScaleWidget -

#include <qwt_scale_widget.h>


void scaleDivChanged ()
 


QwtScaleWidget (QWidget *parent=NULL)
 
QwtScaleWidget (QwtScaleDraw::Alignment, QWidget *parent=NULL)
 
virtual ~QwtScaleWidget ()
 
QwtScaleDraw::Alignment alignment () const
 
QwtDoubleInterval colorBarInterval () const
 
QRect colorBarRect (const QRect &) const
 
int colorBarWidth () const
 
const QwtColorMap & colorMap () const
 
int dimForLength (int length, const QFont &scaleFont) const
 
void drawColorBar (QPainter *painter, const QRect &rect) const
 
void drawTitle (QPainter *painter, QwtScaleDraw::Alignment, const QRect &rect) const
 
int endBorderDist () const
 
void getBorderDistHint (int &start, int &end) const
 
void getMinBorderDist (int &start, int &end) const
 
bool isColorBarEnabled () const
 
int margin () const
 
virtual QSize minimumSizeHint () const
 
int penWidth () const
 
const QwtScaleDraw * scaleDraw () const
 
QwtScaleDraw * scaleDraw ()
 
void setAlignment (QwtScaleDraw::Alignment)
 
void setBorderDist (int start, int end)
 
void setColorBarEnabled (bool)
 
void setColorBarWidth (int)
 
void setColorMap (const QwtDoubleInterval &, const QwtColorMap &)
 
void setLabelAlignment (Qt::Alignment)
 
void setLabelRotation (double rotation)
 
void setMargin (int)
 
void setMinBorderDist (int start, int end)
 
void setPenWidth (int)
 
void setScaleDiv (QwtScaleTransformation *, const QwtScaleDiv &sd)
 
void setScaleDraw (QwtScaleDraw *)
 
void setSpacing (int td)
 
void setTitle (const QString &title)
 
void setTitle (const QwtText &title)
 
virtual QSize sizeHint () const
 
int spacing () const
 
int startBorderDist () const
 
QwtText title () const
 
int titleHeightForWidth (int width) const
 


void draw (QPainter *p) const
 
void layoutScale (bool update=true)
 
virtual void paintEvent (QPaintEvent *e)
 
virtual void resizeEvent (QResizeEvent *e)
 
void scaleChange ()
 

A Widget which contains a scale.
This Widget can be used to decorate composite widgets with a scale.

Create a scale with the position QwtScaleWidget::Left. Parameters:
parent Parent widget

Constructor. Parameters:
align Alignment.
 
parent Parent widget

Returns:
position
See also:
setPosition()

Find the minimum dimension for a given length. dim is the height, length the width seen in direction of the title. Parameters:
length width for horizontal, height for vertical scales
 
scaleFont Font of the scale
Returns:
height for horizontal, width for vertical scales

Rotate and paint a title according to its position into a given rectangle.
Parameters:
painter Painter
 
align Alignment
 
rect Bounding rectangle

Returns:
end border distance
See also:
setBorderDist()

Calculate a hint for the border distances. 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.
Warning:
The minimum border distance depends on the font.
See also:
setMinBorderDist(), getMinBorderDist(), setBorderDist()

Get the minimum value for the distances of the scale's endpoints from the widget borders.
See also:
setMinBorderDist(), getBorderDistHint()

Returns:
margin
See also:
setMargin()

Returns:
a minimum size hint

Returns:
Scale pen width
See also:
setPenWidth()

Notify a change of the scale. This virtual function can be overloaded by derived classes. The default implementation updates the geometry and repaints the widget.

scaleDraw of this scale
See also:
setScaleDraw(), QwtScaleDraw::setScaleDraw()

scaleDraw of this scale
See also:
QwtScaleDraw::setScaleDraw()

Change the alignment
Parameters:
alignment New alignment
See also:
alignment()

Specify distances of the scale's endpoints from the widget's borders. The actual borders will never be less than minimum border distance.
Parameters:
dist1 Left or top Distance
 
dist2 Right or bottom distance
See also:
borderDist()

Change the alignment for the labels. See also:
QwtScaleDraw::setLabelAlignment(), setLabelRotation()

Change the rotation for the labels. See QwtScaleDraw::setLabelRotation(). Parameters:
rotation Rotation
See also:
QwtScaleDraw::setLabelRotation(), setLabelFlags()

Specify the margin to the colorBar/base line. Parameters:
margin Margin
See also:
margin()

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.
Parameters:
start Minimum for the start border
 
end Minimum for the end border
See also:
getMinBorderDist(), getBorderDistHint()

Specify the width of the scale pen. Parameters:
width Pen width
See also:
penWidth()

Assign a scale division. The scale division determines where to set the tick marks.
Parameters:
transformation Transformation, needed to translate between scale and pixal values
 
scaleDiv Scale Division
See also:
For more information about scale divisions, see QwtScaleDiv.

Set a scale draw sd has to be created with new and will be deleted in ~QwtScaleWidget() or the next call of setScaleDraw().
Parameters:
sd ScaleDraw object
See also:
scaleDraw()

Specify the distance between color bar, scale and title. Parameters:
spacing Spacing
See also:
spacing()

Give title new text contents
Parameters:
title New title
See also:
title(), setTitle(const QwtText &);

Give title new text contents
Parameters:
title New title
See also:
title()
Warning:
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.

Returns:
a size hint

Returns:
distance between scale and title
See also:
setMargin()

Returns:
start border distance
See also:
setBorderDist()

Returns:
title
See also:
setTitle()

Find the height of the title for a given width. Parameters:
width Width
Returns:
height Height

Generated automatically by Doxygen for Qwt User's Guide from the source code.
Tue Nov 20 2012 Version 5.2.3

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.