kchart
KDChart Class Reference
#include <KDChart.h>
Detailed Description
Provides a single entry-point to the charting engine for applications that wish to provide their own QPainter.It is not useful to instantiate this class as it contains static methods only.
- Note:
- If for some reason you are NOT using the KDChartWidget class but calling the painting methods of KDChart directly, you probably will also use the KDChartDataRegionList class: This class is derived from QPtrList, so all of the Qt documentation for this class is valid for KDChartDataRegionList too, e.g. freeing of the pointers stored can either be done automatically or manually - so PLEASE take the time to read the reference information for this class!
- See also:
- KDChartWidget, KDChartDataRegionList
Definition at line 55 of file KDChart.h.
Static Public Member Functions | |
static bool | setupGeometry (QPainter *painter, KDChartParams *params, KDChartTableDataBase *data, const QRect &drawRect) |
static bool | painterToDrawRect (QPainter *painter, QRect &drawRect) |
static void | paint (QPainter *, KDChartParams *, KDChartTableDataBase *, KDChartDataRegionList *regions=0, const QRect *rect=0, bool mustCalculateGeometry=true) |
static void | print (QPainter *, KDChartParams *, KDChartTableDataBase *, KDChartDataRegionList *regions=0, const QRect *rect=0, bool mustCalculateGeometry=true) |
Friends | |
void | cleanupPainter () |
Member Function Documentation
|
Paints a chart with the specified parameters on the specified painter.
Definition at line 238 of file KDChart.cpp. |
|
Calculates the drawing area from a given QPainter. Use this function to get a QRect that you may pass to KDChart::setupGeometry() if you need to know the positions and sizes of the axis areas and/or the data area *before* drawing the chart. After calling KDChart::setupGeometry() you may use KDChartParams::axisArea() and/or KDChartParams::dataArea() to retrieve the desired information.
Definition at line 111 of file KDChart.cpp. |
|
Paints a chart with the specified parameters on the specified painter which should use a QPrinter as it's output device. This method is provided for your convenience, it behaves like the paint() method described above but additionally it takes care for the output mode flag: Before painting is started the internal optimizeOutputForScreen flag is set to FALSE and after painting is done it is restored to it's previous value.
Definition at line 332 of file KDChart.cpp. |
|
Calculates the axis and data area rects of a chart with the specified parameters on the specified painter.
Definition at line 145 of file KDChart.cpp. |
Friends And Related Function Documentation
|
A global function that cleans up possible KDChartPainter objects at application shutdown.
|
The documentation for this class was generated from the following files: