Abstract base class for legend widgets. More...
#include <qwt_abstract_legend.h>
Public Slots | |
virtual void | updateLegend (const QVariant &itemInfo, const QList< QwtLegendData > &data)=0 |
Update the entries for a plot item. | |
Public Member Functions | |
virtual bool | isEmpty () const =0 |
QwtAbstractLegend (QWidget *parent=NULL) | |
virtual void | renderLegend (QPainter *painter, const QRectF &rect, bool fillBackground) const =0 |
virtual int | scrollExtent (Qt::Orientation) const |
virtual | ~QwtAbstractLegend () |
Destructor. |
Abstract base class for legend widgets.
Legends, that need to be under control of the QwtPlot layout system need to be derived from QwtAbstractLegend.
Definition at line 34 of file qwt_abstract_legend.h.
QwtAbstractLegend::QwtAbstractLegend | ( | QWidget * | parent = NULL | ) | [explicit] |
QwtAbstractLegend::~QwtAbstractLegend | ( | ) | [virtual] |
Destructor.
Definition at line 23 of file qwt_abstract_legend.cpp.
virtual bool QwtAbstractLegend::isEmpty | ( | ) | const [pure virtual] |
Implemented in QwtLegend.
virtual void QwtAbstractLegend::renderLegend | ( | QPainter * | painter, |
const QRectF & | rect, | ||
bool | fillBackground | ||
) | const [pure virtual] |
Render the legend into a given rectangle.
painter | Painter |
rect | Bounding rectangle |
fillBackground | When true, fill rect with the widget background |
Implemented in QwtLegend.
int QwtAbstractLegend::scrollExtent | ( | Qt::Orientation | orientation | ) | const [virtual] |
Return the extent, that is needed for elements to scroll the legend ( usually scrollbars ),
orientation | Orientation |
Reimplemented in QwtLegend.
Definition at line 34 of file qwt_abstract_legend.cpp.
virtual void QwtAbstractLegend::updateLegend | ( | const QVariant & | itemInfo, |
const QList< QwtLegendData > & | data | ||
) | [pure virtual, slot] |
Update the entries for a plot item.
itemInfo | Info about an item |
data | List of legend entry attributes for the item |
Implemented in QwtLegend.