9#ifndef __KCHARTWIDGET_H__
10#define __KCHARTWIDGET_H__
17#include "KChartHeaderFooter.h"
20template <
typename T>
class QList;
26 class AbstractDiagram;
28 class AbstractCoordinatePlane;
50 KCHART_DECLARE_PRIVATE_BASE_POLYMORPHIC_QWIDGET(
Widget )
68 void setDataset(
int column,
const QVector< QPair< qreal, qreal > > & data,
const QString& title =
QString() );
70 void setDataCell(
int row,
int column, qreal data );
72 void setDataCell(
int row,
int column, QPair< qreal, qreal > data );
78 void setGlobalLeading(
int left,
int top,
int right,
int bottom );
80 void setGlobalLeadingLeft(
int leading );
82 void setGlobalLeadingTop(
int leading );
84 void setGlobalLeadingRight(
int leading );
86 void setGlobalLeadingBottom(
int leading );
90 int globalLeadingLeft()
const;
92 int globalLeadingTop()
const;
94 int globalLeadingRight()
const;
96 int globalLeadingBottom()
const;
104 void addHeaderFooter(
const QString& text,
105 HeaderFooter::HeaderFooterType type,
149 void addLegend(
Position position );
151 void addLegend (
Legend* legend );
153 void replaceLegend(
Legend* legend,
Legend* oldLegend =
nullptr );
154 void takeLegend(
Legend* legend );
193 enum ChartType { NoType, Bar, Line, Plot, Pie, Ring, Polar };
196 ChartType type()
const;
199 enum SubType { Normal, Stacked, Percent, Rows };
202 SubType subType()
const;
221 void justifyModelSize(
int rows,
int columns );
223 bool checkDatasetWidth(
int width );
Definition of global enums.
Base class common for all coordinate planes, CartesianCoordinatePlane, PolarCoordinatePlane,...
AbstractDiagram defines the interface for diagram classes.
BarDiagram defines a common bar diagram.
Legend defines the interface for the legend drawing class.
LineDiagram defines a common line diagram.
PieDiagram defines a common pie diagram.
Plotter defines a diagram type plotting two-dimensional data.
PolarDiagram defines a common polar diagram.
Defines a position, using compass terminology.
RingDiagram defines a common ring diagram.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:18:26 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.