A drawing primitive for columns. More...
#include <qwt_column_symbol.h>
Classes | |
class | PrivateData |
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) |
void | setLineWidth (int width) |
void | setPalette (const QPalette &) |
void | setStyle (Style) |
Style | style () const |
virtual | ~QwtColumnSymbol () |
Destructor. More... | |
Protected Member Functions | |
void | drawBox (QPainter *, const QwtColumnRect &) const |
Private Attributes | |
PrivateData * | d_data |
A drawing primitive for columns.
Definition at line 74 of file qwt_column_symbol.h.
Frame Style used in Box style().
Enumerator | |
---|---|
NoFrame |
No frame. |
Plain |
A plain frame style. |
Raised |
A raised frame style. |
Definition at line 104 of file qwt_column_symbol.h.
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. |
Definition at line 81 of file qwt_column_symbol.h.
Constructor
style | Style of the symbol |
Definition at line 136 of file qwt_column_symbol.cpp.
|
virtual |
Destructor.
Definition at line 143 of file qwt_column_symbol.cpp.
|
virtual |
Draw the symbol depending on its style.
painter | Painter |
rect | Directed rectangle |
Definition at line 239 of file qwt_column_symbol.cpp.
|
protected |
Draw the symbol when it is in Box style.
painter | Painter |
rect | Directed rectangle |
Definition at line 265 of file qwt_column_symbol.cpp.
QwtColumnSymbol::FrameStyle QwtColumnSymbol::frameStyle | ( | ) | const |
Definition at line 203 of file qwt_column_symbol.cpp.
int QwtColumnSymbol::lineWidth | ( | ) | const |
Definition at line 226 of file qwt_column_symbol.cpp.
const QPalette & QwtColumnSymbol::palette | ( | ) | const |
void QwtColumnSymbol::setFrameStyle | ( | FrameStyle | frameStyle | ) |
Set the frame, that is used for the Box style.
frameStyle | Frame style |
Definition at line 194 of file qwt_column_symbol.cpp.
void QwtColumnSymbol::setLineWidth | ( | int | width | ) |
Set the line width of the frame, that is used for the Box style.
width | Width |
Definition at line 214 of file qwt_column_symbol.cpp.
void QwtColumnSymbol::setPalette | ( | const QPalette & | palette | ) |
Assign a palette for the symbol
palette | Palette |
Definition at line 174 of file qwt_column_symbol.cpp.
void QwtColumnSymbol::setStyle | ( | Style | style | ) |
Specify the symbol style
style | Style |
Definition at line 154 of file qwt_column_symbol.cpp.
QwtColumnSymbol::Style QwtColumnSymbol::style | ( | ) | const |
Definition at line 163 of file qwt_column_symbol.cpp.
|
private |
Definition at line 140 of file qwt_column_symbol.h.