Inherited by QwtLegendButton, and QwtLegendLabel.
A legend item
See also:
Definition at line 41 of file qwt_legend.h.
enum IdentifierMode { NoIdentifier = 0, ShowLine = 1, ShowSymbol = 2, ShowText = 4 }
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
virtual QwtText * titleText () const =0
virtual void updateItem ()
Identifier mode.
Default is ShowLine | ShowText
See also:
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
Parameters:
Definition at line 36 of file qwt_legend.cpp.
Destructor.
Definition at line 44 of file qwt_legend.cpp.
Returns:
See also:
Definition at line 117 of file qwt_legend.cpp.
Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset().
Paint the identifier to a given rect.
Parameters:
Definition at line 132 of file qwt_legend.cpp.
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.
Parameters:
Definition at line 188 of file qwt_legend.cpp.
References QwtText::draw(), drawIdentifier(), and QwtPainter::metricsMap().
Referenced by QwtPlot::printLegendItem().
Or'd values of IdentifierMode.
See also:
Definition at line 68 of file qwt_legend.cpp.
Set curve pen.
Parameters:
See also:
Definition at line 104 of file qwt_legend.cpp.
References updateItem().
Referenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::updateLegendItem().
Set identifier mode. Default is ShowLine | ShowText.
Parameters:
See also:
Definition at line 55 of file qwt_legend.cpp.
References updateItem().
Referenced by QwtPlot::updateLegendItem().
Set curve symbol.
Parameters:
See also:
Definition at line 79 of file qwt_legend.cpp.
References updateItem().
Referenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and QwtPlot::updateLegendItem().
Returns:
See also:
Definition at line 92 of file qwt_legend.cpp.
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().
Generated automatically by Doxygen for Qwt User's Guide from the source code.