Reference documentation
Protected Member Functions | List of all members
PieChartLegend Class Reference

The PieChartLegend class displays the legend in a Thistle::PieChart. More...

Inheritance diagram for PieChartLegend:
ChartLegend

Protected Member Functions

virtual void paint (QPainter &painter) const
 Paints the legend of the chart on the given QPainter. More...
 
virtual void paintSerie (QPainter &painter, int serie, QPoint pos, int maxHeight) const
 Paints the serie on the given QPainter. More...
 

Additional Inherited Members

- Public Member Functions inherited from ChartLegend
 ChartLegend (AbstractChart *chart)
 Constructs a ChartLegend object for the given chart.
 

Detailed Description

The PieChartLegend class displays the legend in a Thistle::PieChart.

The PieChartLegend class displays the legend in a Thistle::PieChart.

The Thistle::PieChartLegend displays the legend in a Thistle::RadialChart view.

Member Function Documentation

virtual void paint ( QPainter &  painter) const
protectedvirtual

Paints the legend of the chart on the given QPainter.

The legend of a serie is the text in the Horizontal QHeaderView and the style defined for each column.

Reimplemented from ChartLegend.

void paintSerie ( QPainter &  painter,
int  serie,
QPoint  pos,
int  maxHeight 
) const
protectedvirtual

Paints the serie on the given QPainter.

The serie will be painted at pos. maxHeight indicates the maximum height allowed to paint the legend. The width should be calculates by the chart itself.

This method sucks and has to be modified.

Implements ChartLegend.