kchart
KDChartRingPainter Class Reference
#include <KDChartRingPainter.h>
Inheritance diagram for KDChartRingPainter:

Detailed Description
A chart painter implementation that can paint pie charts.PENDING(kalle) Write more documentation.
Definition at line 37 of file KDChartRingPainter.h.
Protected Member Functions | |
KDChartRingPainter (KDChartParams *params) | |
virtual | ~KDChartRingPainter () |
virtual void | paintData (QPainter *painter, KDChartTableDataBase *data, bool paint2nd, KDChartDataRegionList *regions=0) |
void | drawOneSegment (QPainter *painter, uint outerRadius, uint innerRadius, double startAngle, double angles, uint dataset, uint value, uint chart, bool explode, KDChartDataRegionList *regions=0) |
virtual QString | fallbackLegendText (uint dataset) const |
virtual uint | numLegendFallbackTexts (KDChartTableDataBase *data) const |
Protected Attributes | |
QRect | _position |
int | _size |
int | _numValues |
Friends | |
class | KDChartPainter |
Constructor & Destructor Documentation
|
Constructor. Sets up internal data structures as necessary.
Definition at line 52 of file KDChartRingPainter.cpp. |
|
Destructor.
Definition at line 63 of file KDChartRingPainter.cpp. |
Member Function Documentation
|
This method is a specialization that returns a fallback legend text appropriate for rings where the fallbacks should come from the values, not from the datasets. This method is only used when automatic legends are used, because manual and first-column legends do not need fallback texts.
Reimplemented from KDChartPainter. Definition at line 382 of file KDChartRingPainter.cpp. |
|
This methods returns the number of elements to be shown in the legend in case fallback texts are used. This method is only used when automatic legends are used, because manual and first-column legends do not need fallback texts.
Reimplemented from KDChartPainter. Definition at line 397 of file KDChartRingPainter.cpp. |
|
Paints the actual data area.
Implements KDChartPainter. Definition at line 78 of file KDChartRingPainter.cpp. |
The documentation for this class was generated from the following files: