KChart
KChartLeveyJenningsAxis.cpp
73 color = qobject_cast< const LeveyJenningsCoordinatePlane* >( d->diagram()->coordinatePlane() )->gridAttributes().gridPen( type ).color();
109 LeveyJenningsCoordinatePlane* plane = dynamic_cast<LeveyJenningsCoordinatePlane*>(context->coordinatePlane());
126 const LeveyJenningsDiagram* const diag = dynamic_cast< const LeveyJenningsDiagram* >( d->diagram() );
129 LeveyJenningsCoordinatePlane* plane = dynamic_cast<LeveyJenningsCoordinatePlane*>(context->coordinatePlane());
131 const qreal meanValue = type() == LeveyJenningsGridAttributes::Expected ? diag->expectedMeanValue()
133 const qreal standardDeviation = type() == LeveyJenningsGridAttributes::Expected ? diag->expectedStandardDeviation()
150 Q_ASSERT_X( values.count() <= labels().count(), "LeveyJenningsAxis::paintAsOrdinate", "Need to have at least 5 labels" );
163 painter->setPen ( PrintingParameters::scalePen( labelTA.pen() ) ); // perhaps we want to add a setter method later?
172 labelItem.setGeometry( QRectF( QPointF( xPos, labelPos.y() - size.height() / 2.0 ), size ).toRect() );
193 const LeveyJenningsDiagram* const diag = dynamic_cast< const LeveyJenningsDiagram* >( d->diagram() );
194 LeveyJenningsCoordinatePlane* plane = dynamic_cast<LeveyJenningsCoordinatePlane*>(context->coordinatePlane());
228 labelItem.setGeometry( QRectF( QPointF( geometry().left() - origSize.width() / 2.0, yPos ), size ).toRect() );
LeveyJenningsGridAttributes::GridType type() const
Definition: KChartLeveyJenningsAxis.cpp:58
Antialiasing
AlignLeft
QTextStream & right(QTextStream &stream)
QStringList labels() const
Returns a list of strings, that are used as axis labels, as set via setLabels.
Definition: KChartAbstractAxis.cpp:208
void setPen(const QColor &color)
virtual void takeAxis(CartesianAxis *axis)
Removes the axis from the diagram, without deleting it.
Definition: KChartAbstractCartesianDiagram.cpp:80
int right() const const
QRect toRect() const const
float calculatedStandardDeviation() const
Returns the calculated standard deviation over all QC values.
Definition: KChartLeveyJenningsDiagram.cpp:227
QTextStream & left(QTextStream &stream)
QPair< QDateTime, QDateTime > timeRange() const
Returns the timerange of the diagram's data.
Definition: KChartLeveyJenningsDiagram.cpp:362
float expectedMeanValue() const
Returns the expected mean values over all QC values.
Definition: KChartLeveyJenningsDiagram.cpp:202
int width() const const
Levey Jennings coordinate plane This is actually nothing real more than a plain cartesian coordinate ...
Definition: KChartLeveyJenningsCoordinatePlane.h:26
const QPointF translate(const QPointF &diagramPoint) const override
Translate the given point in value space coordinates to a position in pixel space.
Definition: KChartCartesianCoordinatePlane.cpp:442
int left() const const
void setTextAttributes(const TextAttributes &a)
Use this to specify the text attributes to be used for axis labels.
Definition: KChartAbstractAxis.cpp:173
void setPen(const QPen &pen)
Set the pen to use for rendering the text.
Definition: KChartTextAttributes.cpp:242
int bottom() const const
void setColor(const QColor &color)
int top() const const
float calculatedMeanValue() const
Returns the calculated mean values over all QC values.
Definition: KChartLeveyJenningsDiagram.cpp:222
int height() const const
LeveyDiagram defines a Levey Jennings chart.
Definition: KChartLeveyJenningsDiagram.h:30
void setType(LeveyJenningsGridAttributes::GridType type)
Sets the type of the axis to type.
Definition: KChartLeveyJenningsAxis.cpp:63
TextAttributes textAttributes() const
Returns the text attributes to be used for axis labels.
Definition: KChartAbstractAxis.cpp:182
LeveyJenningsAxis(LeveyJenningsDiagram *diagram=nullptr)
C'tor of the class for levey jennings axes.
Definition: KChartLeveyJenningsAxis.cpp:28
qreal y() const const
QString fromLatin1(const char *str, int size)
float expectedStandardDeviation() const
Returns the expected standard deviation over all QC values.
Definition: KChartLeveyJenningsDiagram.cpp:217
AbstractDiagram defines the interface for diagram classes.
Definition: KChartAbstractDiagram.h:36
void setRenderHint(QPainter::RenderHint hint, bool on)
bool compare(const LeveyJenningsAxis *other) const
Returns true if both axes have the same settings.
Definition: KChartLeveyJenningsAxis.cpp:92
QString tr(const char *sourceText, const char *disambiguation, int n)
QVector< V > values(const QMultiHash< K, V > &c)
void setClipping(bool enable)
black
TextDate
void setLabels(const QStringList &list)
Use this to specify your own set of strings, to be used as axis labels.
Definition: KChartAbstractAxis.cpp:199
virtual const QString customizedLabel(const QString &label) const
Reimplement this method if you want to adjust axis labels before they are printed.
Definition: KChartAbstractAxis.cpp:147
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Jul 1 2022 05:09:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Jul 1 2022 05:09:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.