QwtLegendCurveItem Class Reference

A legend item for curves. More...

#include <qwt_legend_item.h>

Inheritance diagram for QwtLegendCurveItem:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 QwtLegendCurveItem (QWidget *parent=0)
 QwtLegendCurveItem (const QwtSymbol &, const QPen &, const QwtText &, QWidget *parent=0)
virtual ~QwtLegendCurveItem ()
void setSymbol (const QwtSymbol &)
const QwtSymbolsymbol () const
void setCurvePen (const QPen &)
const QPen & curvePen () const
virtual void drawIdentifier (QPainter *, const QRect &) const


Detailed Description

A legend item for curves.

QwtLegendCurveItem represents a curve on a legend. It displays an curve identifier with an explaining text. The identifier might be a combination of curve symbol and line. In readonly mode it behaves like a label, otherwise like an unstylish push button.

See also:
QwtLegend, QwtPlotCurve

Constructor & Destructor Documentation

QwtLegendCurveItem::QwtLegendCurveItem ( QWidget *  parent = 0  )  [explicit]

Parameters:
parent Parent widget

QwtLegendCurveItem::QwtLegendCurveItem ( const QwtSymbol symbol,
const QPen &  curvePen,
const QwtText text,
QWidget *  parent = 0 
) [explicit]

Parameters:
symbol Curve symbol
curvePen Curve pen
text Label text
parent Parent widget

QwtLegendCurveItem::~QwtLegendCurveItem (  )  [virtual]

Destructor.


Member Function Documentation

const QPen & QwtLegendCurveItem::curvePen (  )  const

Returns:
The curve pen.
See also:
setCurvePen()

void QwtLegendCurveItem::drawIdentifier ( QPainter *  painter,
const QRect &  rect 
) const [virtual]

Paint the identifier to a given rect.

Parameters:
painter Painter
rect Rect where to paint

void QwtLegendCurveItem::setCurvePen ( const QPen &  pen  ) 

Set curve pen.

Parameters:
pen Curve pen
See also:
curvePen()

void QwtLegendCurveItem::setSymbol ( const QwtSymbol symbol  ) 

Set curve symbol.

Parameters:
symbol Symbol
See also:
symbol()

const QwtSymbol & QwtLegendCurveItem::symbol (  )  const

Returns:
The curve symbol.
See also:
setSymbol()


Generated on Tue Oct 6 03:30:51 2009 for Qwt User's Guide by  doxygen 1.5.9