casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::LegendItemRect Class Reference

Custom QwtLegendItem that draws a rectangular legend symbol in a color matching the curve. More...

#include <LegendItemRect.h>

Inheritance diagram for casa::LegendItemRect:

Public Member Functions

 LegendItemRect (const ColorProvider *colorProvider, QWidget *parent=0)
 
virtual ~LegendItemRect ()
 
void setRectColor (QColor rectColor)
 
virtual void drawIdentifier (QPainter *painter, const QRect &rect) const
 

Private Member Functions

 LegendItemRect (const LegendItemRect &other)
 
LegendItemRect operator= (const LegendItemRect &other)
 

Private Attributes

const int MARGIN
 
const ColorProvidercolorSource
 

Detailed Description

Custom QwtLegendItem that draws a rectangular legend symbol in a color matching the curve.

Definition at line 43 of file LegendItemRect.h.

Constructor & Destructor Documentation

casa::LegendItemRect::LegendItemRect ( const ColorProvider colorProvider,
QWidget *  parent = 0 
)
virtual casa::LegendItemRect::~LegendItemRect ( )
virtual
casa::LegendItemRect::LegendItemRect ( const LegendItemRect other)
private

Member Function Documentation

virtual void casa::LegendItemRect::drawIdentifier ( QPainter *  painter,
const QRect &  rect 
) const
virtual
LegendItemRect casa::LegendItemRect::operator= ( const LegendItemRect other)
private
void casa::LegendItemRect::setRectColor ( QColor  rectColor)

Member Data Documentation

const ColorProvider* casa::LegendItemRect::colorSource
private

Definition at line 53 of file LegendItemRect.h.

const int casa::LegendItemRect::MARGIN
private

Definition at line 52 of file LegendItemRect.h.


The documentation for this class was generated from the following file: