kchart

KDChartHiLoPainter Class Reference

#include <KDChartHiLoPainter.h>

Inheritance diagram for KDChartHiLoPainter:

KDChartAxesPainter KDChartPainter

List of all members.


Detailed Description

A chart painter implementation that can paint HiLo charts.

Definition at line 39 of file KDChartHiLoPainter.h.


Protected Member Functions

 KDChartHiLoPainter (KDChartParams *params)
virtual ~KDChartHiLoPainter ()
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

KDChartHiLoPainter::KDChartHiLoPainter ( KDChartParams params  )  [protected]

Constructor.

Sets up internal data structures as necessary.

Parameters:
params the KDChartParams structure that defines the chart

Definition at line 48 of file KDChartHiLoPainter.cpp.

KDChartHiLoPainter::~KDChartHiLoPainter (  )  [protected, virtual]

Destructor.

Definition at line 59 of file KDChartHiLoPainter.cpp.


Member Function Documentation

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

This method is a specialization that returns a fallback legend text appropriate for HiLo 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 78 of file KDChartHiLoPainter.cpp.

uint KDChartHiLoPainter::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 93 of file KDChartHiLoPainter.cpp.


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