Go to the documentation of this file.
26#include <QtCore/QString>
27#include <QtGui/QColor>
71 Q_DECLARE_FLAGS( PlotTypes, PlotType )
99 explicit KPlotObject(
const QColor &color = Qt::white, PlotType otype = Points,
double size = 2, PointStyle ps = Circle );
109 PlotTypes plotTypes()
const;
115 void setShowPoints(
bool b );
121 void setShowLines(
bool b );
127 void setShowBars(
bool b );
138 void setSize(
double s );
143 PointStyle pointStyle()
const;
149 void setPointStyle( PointStyle p );
156 const QPen& pen()
const;
162 void setPen(
const QPen &p );
167 const QPen& linePen()
const;
173 void setLinePen(
const QPen &p );
178 const QPen& barPen()
const;
184 void setBarPen(
const QPen &p );
189 const QPen& labelPen()
const;
195 void setLabelPen(
const QPen &p );
200 const QBrush brush()
const;
206 void setBrush(
const QBrush &b );
211 const QBrush barBrush()
const;
217 void setBarBrush(
const QBrush &b );
232 void addPoint(
const QPointF &p,
const QString &label = QString(),
double barWidth = 0.0 );
251 void addPoint(
double x,
double y,
const QString &label = QString(),
double barWidth = 0.0 );
257 void removePoint(
int index );
278Q_DECLARE_OPERATORS_FOR_FLAGS( KPlotObject::PlotTypes )
Encapsulates a data set to be plotted in a KPlotWidget.
KPlotObject(const QColor &color=Qt::white, PlotType otype=Points, double size=2, PointStyle ps=Circle)
Constructor.
PointStyle
The available shape styles for plotted points.
PlotType
The type classification of the KPlotObject.
@ Lines
each KPlotPoint is connected with a line
@ Points
each KPlotPoint is represented with a drawn point
@ Bars
each KPlotPoint is shown as a vertical bar
Encapsulates a point in the plot.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.