SYNOPSIS

#include <qwt_column_symbol.h>

Public Types

enum Style { NoStyle = -1, Box, UserStyle = 1000 }

enum FrameStyle { NoFrame, Plain, Raised }

Public Member Functions

QwtColumnSymbol (Style=NoStyle)

virtual ~QwtColumnSymbol ()

void setFrameStyle (FrameStyle style)

FrameStyle frameStyle () const

void setLineWidth (int width)

int lineWidth () const

void setPalette (const QPalette &)

const QPalette & palette () const

void setStyle (Style)

Style style () const

virtual void draw (QPainter *, const QwtColumnRect &) const

Protected Member Functions

void drawBox (QPainter *, const QwtColumnRect &) const

Detailed Description

A drawing primitive for columns.

Member Enumeration Documentation

enum \fBQwtColumnSymbol::FrameStyle\fP Frame Style used in Box \fBstyle()\fP.

See also:

Style, setFrameStyle(), frameStyle(), setStyle(), setPalette()

Enumerator:

NoFrame

No frame.

Plain

A plain frame style.

Raised

A raised frame style.

enum \fBQwtColumnSymbol::Style\fP Style

See also:

setStyle(), style()

Enumerator:

NoStyle

No Style, the symbol draws nothing.

Box

The column is painted with a frame depending on the frameStyle() and lineWidth() using the palette().

UserStyle

Styles >= QwtColumnSymbol::UserStyle are reserved for derived classes of QwtColumnSymbol that overload draw() with additional application specific symbol types.

Constructor & Destructor Documentation

QwtColumnSymbol::QwtColumnSymbol (\fBStyle\fPstyle = \fCNoStyle\fP) Constructor

Parameters:

style Style of the symbol

See also:

setStyle(), style(), Style

QwtColumnSymbol::~QwtColumnSymbol ()\fC [virtual]\fP

Destructor.

Member Function Documentation

void QwtColumnSymbol::draw (QPainter *painter, const \fBQwtColumnRect\fP &rect) const\fC [virtual]\fP Draw the symbol depending on its style.

Parameters:

painter Painter

rect Directed rectangle

See also:

drawBox()

void QwtColumnSymbol::drawBox (QPainter *painter, const \fBQwtColumnRect\fP &rect) const\fC [protected]\fP Draw the symbol when it is in Box style.

Parameters:

painter Painter

rect Directed rectangle

See also:

draw()

\fBQwtColumnSymbol::FrameStyle\fP QwtColumnSymbol::frameStyle () const \fBReturns:\fP

Current frame style, that is used for the Box style.

See also:

setFrameStyle(), lineWidth(), setStyle()

int QwtColumnSymbol::lineWidth () const \fBReturns:\fP

Line width of the frame, that is used for the Box style.

See also:

setLineWidth(), frameStyle(), setStyle()

const QPalette & QwtColumnSymbol::palette () const \fBReturns:\fP

Current palette

See also:

setPalette()

void QwtColumnSymbol::setFrameStyle (\fBFrameStyle\fPframeStyle) Set the frame, that is used for the Box style.

Parameters:

frameStyle Frame style

See also:

frameStyle(), setLineWidth(), setStyle()

void QwtColumnSymbol::setLineWidth (intwidth) Set the line width of the frame, that is used for the Box style.

Parameters:

width Width

See also:

lineWidth(), setFrameStyle()

void QwtColumnSymbol::setPalette (const QPalette &palette) Assign a palette for the symbol

Parameters:

palette Palette

See also:

palette(), setStyle()

void QwtColumnSymbol::setStyle (\fBStyle\fPstyle) Specify the symbol style

Parameters:

style Style

See also:

style(), setPalette()

\fBQwtColumnSymbol::Style\fP QwtColumnSymbol::style () const \fBReturns:\fP

Current symbol style

See also:

setStyle()

Author

Generated automatically by Doxygen for Qwt User's Guide from the source code.