Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

QwtLegendItem Class Reference

A legend item. More...

#include <qwt_legend.h>

List of all members.

Public Methods

 QwtLegendItem ()
 QwtLegendItem (const QString &txt, const QwtSymbol &sym, const QPen &pn, long key)
virtual ~QwtLegendItem ()
const QPen & pen () const
const QwtSymbolsymbol () const
const QString & text () const
long key () const
void setSymbol (const QwtSymbol &s)
void setPen (const QPen &pn)
void setKey (long key)
void setText (const QString &s)
virtual void draw (QPainter *p, const QRect &symRect, const QRect &lblRect, int align)


Detailed Description

A legend item.

See also:
QwtLegend


Constructor & Destructor Documentation

QwtLegendItem::QwtLegendItem  
 

Default Constructor.

QwtLegendItem::QwtLegendItem const QString &    txt,
const QwtSymbol   sym,
const QPen &    pn,
long    key
 

Constructor.

Parameters:
txt  Item text
sym  Item symbol
pen  Pen
key  Unique key for this item

QwtLegendItem::~QwtLegendItem   [virtual]
 

Destructor.


Member Function Documentation

void QwtLegendItem::draw QPainter *    p,
const QRect &    symRect,
const QRect &    lblRect,
int    align
[virtual]
 

Draw a legend item.

long QwtLegendItem::key   const
 

the item key.

const QPen& QwtLegendItem::pen   const
 

the item pen.

void QwtLegendItem::setKey long    key
 

set item key.

void QwtLegendItem::setPen const QPen &    pn
 

set item pen.

void QwtLegendItem::setSymbol const QwtSymbol   s
 

set item symbol.

void QwtLegendItem::setText const QString &    s
 

set item text.

const QwtSymbol& QwtLegendItem::symbol   const
 

the item symbol.

const QString& QwtLegendItem::text   const
 

the item text.


Generated on Tue May 28 15:30:58 2002 for Qwt User's Guide by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001