KDEUI
kplotobject.cpp
Go to the documentation of this file.
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
void setShowLines(bool b)
Set whether lines will be drawn for this object.
Definition: kplotobject.cpp:92
Definition: kplotobject.h:83
void setPointStyle(PointStyle p)
Set a new style for drawing the points in this object.
Definition: kplotobject.cpp:131
void setSize(double s)
Set the size for plotted points in this object, in pixels.
Definition: kplotobject.cpp:121
void draw(QPainter *p, KPlotWidget *pw)
Draw this KPlotObject on the given QPainter.
Definition: kplotobject.cpp:233
QString label(StandardShortcut id)
Returns a localized label for user-visible display.
Definition: kstandardshortcut.cpp:267
Definition: kplotobject.h:85
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 drawPolygon(const QPointF *points, int pointCount, Qt::FillRule fillRule)
void setShowPoints(bool b)
Set whether points will be drawn for this object.
Definition: kplotobject.cpp:80
void removePoint(int index)
Remove the QPointF at position index from the list of points.
Definition: kplotobject.cpp:218
void drawLine(const QLineF &line)
Definition: kplotobject.h:81
Definition: kplotobject.h:82
void setShowBars(bool b)
Set whether bars will be drawn for this object.
Definition: kplotobject.cpp:104
void setLabelPen(const QPen &p)
Set the pen to use for labels for this object The pen to use.
Definition: kplotobject.cpp:171
void drawRect(const QRectF &rectangle)
qreal x() const
qreal y() const
void setPen(const QPen &p)
Set the default pen for this object The pen to use.
Definition: kplotobject.cpp:141
void setPen(const QColor &color)
void drawEllipse(const QRectF &rectangle)
bool isEmpty() const
void setLinePen(const QPen &p)
Set the pen to use for drawing lines for this object The pen to use.
Definition: kplotobject.cpp:151
KPlotObject(const QColor &color=Qt::white, PlotType otype=Points, double size=2, PointStyle ps=Circle)
Constructor.
Definition: kplotobject.cpp:54
void setBrush(const QBrush &brush)
void drawText(const QPointF &position, const QString &text)
Definition: kplotobject.h:84
bool contains(const QPoint &point, bool proper) const
void placeLabel(QPainter *painter, KPlotPoint *pp)
Place an object label optimally in the plot.
Definition: kplotwidget.cpp:489
Definition: kplotobject.h:79
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
Definition: kplotobject.h:80
void setBrush(const QBrush &b)
Set the default brush to use for this object The brush to use.
Definition: kplotobject.cpp:181
QPoint toPoint() const
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString left(int n) const
void setBarBrush(const QBrush &b)
Set the brush to use for drawing bars for this object The brush to use.
Definition: kplotobject.cpp:191
Definition: kplotobject.h:86
bool isNull() const
void setBarPen(const QPen &p)
Set the pen to use for drawing bars for this object The pen to use.
Definition: kplotobject.cpp:161
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.