kchart

KDChartPolarPainter Class Reference

#include <KDChartPolarPainter.h>

Inheritance diagram for KDChartPolarPainter:

KDChartPainter List of all members.

Detailed Description

A chart painter implementation that can paint polar charts.

Definition at line 36 of file KDChartPolarPainter.h.


Protected Member Functions

 KDChartPolarPainter (KDChartParams *params)
virtual ~KDChartPolarPainter ()
virtual void paintData (QPainter *painter, KDChartTableDataBase *data, bool paint2nd, KDChartDataRegionList *regions=0)
virtual QString fallbackLegendText (uint dataset) const
virtual uint numLegendFallbackTexts (KDChartTableDataBase *data) const

Friends

class KDChartPainter

Constructor & Destructor Documentation

KDChartPolarPainter::KDChartPolarPainter KDChartParams params  )  [protected]
 

Constructor.

Sets up internal data structures as necessary.

Parameters:
params the KDChartParams structure that defines the chart
data the data that will be displayed as a chart

Definition at line 49 of file KDChartPolarPainter.cpp.

KDChartPolarPainter::~KDChartPolarPainter  )  [protected, virtual]
 

Destructor.

Definition at line 60 of file KDChartPolarPainter.cpp.


Member Function Documentation

QString KDChartPolarPainter::fallbackLegendText uint  dataset  )  const [protected, virtual]
 

This method is a specialization that returns a fallback legend text appropriate for polar charts 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.

Parameters:
uint dataset the dataset number for which to generate a fallback text
Returns:
the fallback text to use for describing the specified dataset in the legend

Reimplemented from KDChartPainter.

Definition at line 787 of file KDChartPolarPainter.cpp.

uint KDChartPolarPainter::numLegendFallbackTexts KDChartTableDataBase data  )  const [protected, virtual]
 

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.

Returns:
the number of fallback texts to use

Reimplemented from KDChartPainter.

Definition at line 802 of file KDChartPolarPainter.cpp.

void KDChartPolarPainter::paintData QPainter *  painter,
KDChartTableDataBase data,
bool  paint2nd,
KDChartDataRegionList regions = 0
[protected, virtual]
 

Paints the actual data area.

Data regions will only be added if regions is not 0 and the chart is configured to be drawn with markers.

Parameters:
painter the QPainter onto which the chart should be painted
data the data that will be displayed as a chart
paint2nd specifies whether the main chart or the additional chart is to be drawn now
regions a pointer to a list of regions that will be filled with regions representing the data segments, if not null

Implements KDChartPainter.

Definition at line 77 of file KDChartPolarPainter.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys