KDEUI
kplotobject.cpp
Go to the documentation of this file.
KPlotObject(const QColor &color=Qt::white, PlotType otype=Points, double size=2, PointStyle ps=Circle)
Constructor.
Definition: kplotobject.cpp:54
void draw(QPainter *p, KPlotWidget *pw)
Draw this KPlotObject on the given QPainter.
Definition: kplotobject.cpp:233
void setSize(double s)
Set the size for plotted points in this object, in pixels.
Definition: kplotobject.cpp:121
void addPoint(const QPointF &p, const QString &label=QString(), double barWidth=0.0)
Add a point to the object's list of points, using input data to construct a KPlotPoint.
Definition: kplotobject.cpp:201
void setBarPen(const QPen &p)
Set the pen to use for drawing bars for this object The pen to use.
Definition: kplotobject.cpp:161
void removePoint(int index)
Remove the QPointF at position index from the list of points.
Definition: kplotobject.cpp:218
void setLinePen(const QPen &p)
Set the pen to use for drawing lines for this object The pen to use.
Definition: kplotobject.cpp:151
void setPointStyle(PointStyle p)
Set a new style for drawing the points in this object.
Definition: kplotobject.cpp:131
void setPen(const QPen &p)
Set the default pen for this object The pen to use.
Definition: kplotobject.cpp:141
void setShowBars(bool b)
Set whether bars will be drawn for this object.
Definition: kplotobject.cpp:104
void setBrush(const QBrush &b)
Set the default brush to use for this object The brush to use.
Definition: kplotobject.cpp:181
void setBarBrush(const QBrush &b)
Set the brush to use for drawing bars for this object The brush to use.
Definition: kplotobject.cpp:191
void setLabelPen(const QPen &p)
Set the pen to use for labels for this object The pen to use.
Definition: kplotobject.cpp:171
void setShowLines(bool b)
Set whether lines will be drawn for this object.
Definition: kplotobject.cpp:92
void setShowPoints(bool b)
Set whether points will be drawn for this object.
Definition: kplotobject.cpp:80
void placeLabel(QPainter *painter, KPlotPoint *pp)
Place an object label optimally in the plot.
Definition: kplotwidget.cpp:489
void maskAlongLine(const QPointF &p1, const QPointF &p2, float value=1.0)
Indicate that object labels should try to avoid the line joining the two given points (in pixel coord...
Definition: kplotwidget.cpp:427
void maskRect(const QRectF &r, float value=1.0)
Indicate that object labels should try to avoid the given rectangle in the plot.
Definition: kplotwidget.cpp:412
#define kWarning
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.