Qwt User's Guide svn
Public Types | Public Member Functions | Protected Member Functions
QwtColumnSymbol Class Reference

#include <qwt_column_symbol.h>

List of all members.

Public Types

enum  FrameStyle {
  NoFrame,
  Plain,
  Raised
}
enum  Style {
  NoStyle = -1,
  Box,
  UserStyle = 1000
}

Public Member Functions

virtual void draw (QPainter *, const QwtColumnRect &) const
FrameStyle frameStyle () const
int lineWidth () const
const QPalette & palette () const
 QwtColumnSymbol (Style=NoStyle)
void setFrameStyle (FrameStyle style)
void setLineWidth (int width)
void setPalette (const QPalette &)
void setStyle (Style)
Style style () const
virtual ~QwtColumnSymbol ()

Protected Member Functions

void drawBox (QPainter *, const QwtColumnRect &) const

Detailed Description

A drawing primitive for columns.


Member Enumeration Documentation

Frame Style used in Box style().

See also:
Style, setFrameStyle(), frameStyle(), setStyle(), setPalette()
Enumerator:
NoFrame 

No frame.

Plain 

A plain frame style.

Raised 

A raised frame style.

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 ( Style  style = NoStyle)

Constructor

Parameters:
styleStyle of the symbol
See also:
setStyle(), style(), Style
QwtColumnSymbol::~QwtColumnSymbol ( ) [virtual]

Destructor.


Member Function Documentation

void QwtColumnSymbol::draw ( QPainter *  painter,
const QwtColumnRect rect 
) const [virtual]

Draw the symbol depending on its style.

Parameters:
painterPainter
rectDirected rectangle
See also:
drawBox()
void QwtColumnSymbol::drawBox ( QPainter *  painter,
const QwtColumnRect rect 
) const [protected]

Draw the symbol when it is in Box style.

Parameters:
painterPainter
rectDirected rectangle
See also:
draw()
QwtColumnSymbol::FrameStyle QwtColumnSymbol::frameStyle ( ) const
Returns:
Current frame style, that is used for the Box style.
See also:
setFrameStyle(), lineWidth(), setStyle()
int QwtColumnSymbol::lineWidth ( ) const
Returns:
Line width of the frame, that is used for the Box style.
See also:
setLineWidth(), frameStyle(), setStyle()
const QPalette & QwtColumnSymbol::palette ( ) const
Returns:
Current palette
See also:
setPalette()
void QwtColumnSymbol::setFrameStyle ( FrameStyle  frameStyle)

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

Parameters:
frameStyleFrame style
See also:
frameStyle(), setLineWidth(), setStyle()
void QwtColumnSymbol::setLineWidth ( int  width)

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

Parameters:
widthWidth
See also:
lineWidth(), setFrameStyle()
void QwtColumnSymbol::setPalette ( const QPalette &  palette)

Assign a palette for the symbol

Parameters:
palettePalette
See also:
palette(), setStyle()
void QwtColumnSymbol::setStyle ( Style  style)

Specify the symbol style

Parameters:
styleStyle
See also:
style(), setPalette()
QwtColumnSymbol::Style QwtColumnSymbol::style ( ) const
Returns:
Current symbol style
See also:
setStyle()
qmi style