KD Chart API Documentation 3.1
|
#include <KDChartLeveyJenningsAxis.h>
Protected Member Functions | |
virtual void | paintAsAbscissa (PaintContext *) |
virtual void | paintAsOrdinate (PaintContext *) |
Protected Member Functions inherited from KDChart::AbstractArea | |
AbstractArea () | |
QRect | areaGeometry () const override |
void | positionHasChanged () override |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Protected Member Functions inherited from KDChart::AbstractAreaBase | |
AbstractAreaBase () | |
virtual | ~AbstractAreaBase () |
QRect | innerRect () const |
The class for levey jennings axes.
For being useful, axes need to be assigned to a diagram, see LeveyJenningsDiagram::addAxis and LeveyJenningsDiagram::takeAxis.
Definition at line 32 of file KDChartLeveyJenningsAxis.h.
|
explicit |
C'tor of the class for levey jennings axes.
Definition at line 33 of file KDChartLeveyJenningsAxis.cpp.
|
override |
Definition at line 39 of file KDChartLeveyJenningsAxis.cpp.
References d, KDChart::AbstractAxis::diagram(), and QObject::qobject_cast().
bool LeveyJenningsAxis::compare | ( | const LeveyJenningsAxis * | other | ) | const |
Returns true if both axes have the same settings.
Definition at line 106 of file KDChartLeveyJenningsAxis.cpp.
References compare(), QObject::qobject_cast(), and type().
Referenced by compare().
Qt::DateFormat LeveyJenningsAxis::dateFormat | ( | ) | const |
Definition at line 96 of file KDChartLeveyJenningsAxis.cpp.
References d.
Referenced by paintAsAbscissa().
|
protectedvirtual |
Definition at line 197 of file KDChartLeveyJenningsAxis.cpp.
References Qt::AlignLeft, QPainter::Antialiasing, KDChart::CartesianAxis::Bottom, QRect::bottom(), KDChart::PaintContext::coordinatePlane(), d, dateFormat(), QString::fromLatin1(), KDChart::CartesianAxis::geometry(), QSize::height(), KDChart::CartesianAxis::isAbscissa(), KDChartEnums::MeasureOrientationMinimum, KDChart::CartesianAxis::paintCtx(), KDChart::PaintContext::painter(), QObject::parent(), KDChart::CartesianAxis::position(), QObject::qobject_cast(), QPainter::setClipping(), KDChart::AbstractAxis::setLabels(), QPainter::setRenderHint(), KDChart::AbstractAxis::textAttributes(), QRect::top(), QRectF::toRect(), and QSize::width().
Referenced by paintCtx().
|
protectedvirtual |
Definition at line 137 of file KDChartLeveyJenningsAxis.cpp.
References Qt::AlignLeft, QPainter::Antialiasing, QVector::at(), KDChart::PaintContext::coordinatePlane(), QVector::count(), KDChart::AbstractAxis::customizedLabel(), d, KDChart::LeveyJenningsGridAttributes::Expected, KDChart::CartesianAxis::geometry(), QSize::height(), KDChart::CartesianAxis::isOrdinate(), KDChart::AbstractAxis::labels(), KDChart::CartesianAxis::Left, QRect::left(), KDChartEnums::MeasureOrientationMinimum, KDChart::PaintContext::painter(), QObject::parent(), KDChart::CartesianAxis::position(), QObject::qobject_cast(), QRect::right(), KDChart::PrintingParameters::scalePen(), QPainter::setClipping(), QPainter::setPen(), QPainter::setRenderHint(), KDChart::AbstractAxis::textAttributes(), QRectF::toRect(), QObject::tr(), type(), and QSize::width().
Referenced by paintCtx().
|
overridevirtual |
reimp
Reimplemented from KDChart::CartesianAxis.
Definition at line 117 of file KDChartLeveyJenningsAxis.cpp.
References KDChart::PaintContext::coordinatePlane(), d, KDChart::CartesianAxis::isOrdinate(), paintAsAbscissa(), paintAsOrdinate(), and QObject::qobject_cast().
void LeveyJenningsAxis::setDateFormat | ( | Qt::DateFormat | format | ) |
Definition at line 101 of file KDChartLeveyJenningsAxis.cpp.
References d.
void LeveyJenningsAxis::setType | ( | LeveyJenningsGridAttributes::GridType | type | ) |
Sets the type of the axis to type. This method colors the label to the default color of the respective type. Please make sure to re-set the colors after calling this, if you want them different. Setting the type is only valid for axes located right or left from the diagram. An axis on the bottom always shows the timeline.
Definition at line 80 of file KDChartLeveyJenningsAxis.cpp.
References Qt::black, Qt::blue, d, KDChart::LeveyJenningsGridAttributes::Expected, QObject::qobject_cast(), QPen::setColor(), KDChart::AbstractAxis::setTextAttributes(), KDChart::AbstractAxis::textAttributes(), and type().
LeveyJenningsGridAttributes::GridType LeveyJenningsAxis::type | ( | ) | const |
Definition at line 66 of file KDChartLeveyJenningsAxis.cpp.
References d.
Referenced by compare(), paintAsOrdinate(), and setType().