kchart

KDChartBWPainter Class Reference

#include <KDChartBWPainter.h>

Inheritance diagram for KDChartBWPainter:

KDChartAxesPainter KDChartPainter List of all members.

Detailed Description

A chart painter implementation that can paint Box&Whisker charts.

Definition at line 40 of file KDChartBWPainter.h.


Protected Member Functions

 KDChartBWPainter (KDChartParams *params)
virtual ~KDChartBWPainter ()
virtual bool isNormalMode () const
virtual int clipShiftUp (bool, double) const
virtual void specificPaintData (QPainter *painter, const QRect &ourClipRect, KDChartTableDataBase *data, KDChartDataRegionList *regions, const KDChartAxisParams *axisPara, bool bNormalMode, uint chart, double logWidth, double areaWidthP1000, double logHeight, double axisYOffset, double minColumnValue, double maxColumnValue, double columnValueDistance, uint chartDatasetStart, uint chartDatasetEnd, uint datasetStart, uint datasetEnd)
virtual QString fallbackLegendText (uint dataset) const
virtual uint numLegendFallbackTexts (KDChartTableDataBase *data) const

Friends

class KDChartPainter

Constructor & Destructor Documentation

KDChartBWPainter::KDChartBWPainter KDChartParams params  )  [protected]
 

Constructor.

Sets up internal data structures as necessary.

Parameters:
params the KDChartParams structure that defines the chart

Definition at line 54 of file KDChartBWPainter.cpp.

KDChartBWPainter::~KDChartBWPainter  )  [protected, virtual]
 

Destructor.

Definition at line 65 of file KDChartBWPainter.cpp.


Member Function Documentation

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

This method is a specialization that returns a fallback legend text appropriate for BW that do not have the same notion of a dataset like e.g.

bars.

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 213 of file KDChartBWPainter.cpp.

uint KDChartBWPainter::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 228 of file KDChartBWPainter.cpp.

void KDChartBWPainter::specificPaintData QPainter *  painter,
const QRect &  ourClipRect,
KDChartTableDataBase data,
KDChartDataRegionList regions,
const KDChartAxisParams axisPara,
bool  bNormalMode,
uint  chart,
double  logWidth,
double  areaWidthP1000,
double  logHeight,
double  axisYOffset,
double  minColumnValue,
double  maxColumnValue,
double  columnValueDistance,
uint  chartDatasetStart,
uint  chartDatasetEnd,
uint  datasetStart,
uint  datasetEnd
[protected, virtual]
 

Paints the actual data area and registers the region for the data points if regions is not 0.

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 KDChartAxesPainter.

Definition at line 254 of file KDChartBWPainter.cpp.


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