Definition at line 41 of file qwt_legend.h.
Public Types | |
enum | IdentifierMode { NoIdentifier = 0, ShowLine = 1, ShowSymbol = 2, ShowText = 4 } |
Public Member Functions | |
QwtLegendItem () | |
QwtLegendItem (const QwtSymbol &, const QPen &) | |
virtual | ~QwtLegendItem () |
void | setIdentifierMode (int) |
int | identifierMode () const |
void | setSymbol (const QwtSymbol &) |
const QwtSymbol & | symbol () const |
void | setCurvePen (const QPen &) |
const QPen & | curvePen () const |
virtual void | drawIdentifier (QPainter *, const QRect &) const |
virtual void | drawItem (QPainter *p, const QRect &) const |
virtual void | setTitle (const QString &)=0 |
virtual QString | title () const =0 |
Protected Member Functions | |
virtual QwtText * | titleText () const =0 |
virtual void | updateItem () |
|
Identifier mode. Default is ShowLine | ShowText Definition at line 51 of file qwt_legend.h. |
|
Create an item with mode = ShowLine|ShowText and no pen. Definition at line 25 of file qwt_legend.cpp. |
|
Constructor with mode = ShowLine|ShowText
|
|
Destructor. Definition at line 44 of file qwt_legend.cpp. |
|
Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset(). |
|
Paint the identifier to a given rect.
References QwtSymbol::brush(), QwtSymbol::draw(), QwtPainter::drawLine(), QwtPainter::metricsMap(), QwtSymbol::pen(), QwtSymbol::size(), and QwtSymbol::style(). Referenced by QwtLegendLabel::drawContents(), drawItem(), and QwtLegendButton::updateIconset(). |
|
Draw the legend item to a given rect.
References QwtText::draw(), drawIdentifier(), and QwtPainter::metricsMap(). Referenced by QwtPlot::printLegendItem(). |
|
Or'd values of IdentifierMode. Definition at line 68 of file qwt_legend.cpp. |
|
Set curve pen.
References updateItem(). Referenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::updateLegendItem(). |
|
Set identifier mode. Default is ShowLine | ShowText.
References updateItem(). Referenced by QwtPlot::updateLegendItem(). |
|
Set curve symbol.
References updateItem(). Referenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::updateLegendItem(). |
|
Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset(). |
|
Update the item.
Reimplemented in QwtLegendButton, and QwtLegendLabel. Definition at line 123 of file qwt_legend.cpp. Referenced by setCurvePen(), setIdentifierMode(), and setSymbol(). |