KD Chart API Documentation 3.1
|
An area in the chart with a background, a frame, etc. More...
#include <KDChartAbstractArea.h>
Signals | |
void | positionChanged (AbstractArea *) |
Protected Member Functions | |
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 |
An area in the chart with a background, a frame, etc.
AbstractArea is the base class for all non-widget chart elements that have a set of background attributes and frame attributes, such as coordinate planes or axes.
Definition at line 34 of file KDChartAbstractArea.h.
|
override |
Definition at line 44 of file KDChartAbstractArea.cpp.
|
protected |
Definition at line 36 of file KDChartAbstractArea.cpp.
|
overrideprotectedvirtual |
Implements KDChart::AbstractAreaBase.
Definition at line 133 of file KDChartAbstractArea.cpp.
References QLayoutItem::geometry().
Referenced by KDChart::CartesianCoordinatePlane::drawingArea(), KDChart::PolarCoordinatePlane::layoutDiagrams(), KDChart::TernaryCoordinatePlane::layoutDiagrams(), KDChart::CartesianAxis::paint(), KDChart::TernaryCoordinatePlane::paint(), paintAll(), and KDChart::CartesianAxis::paintCtx().
This is called at layout time by KDChart:AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the bottom edge of the area.
Definition at line 81 of file KDChartAbstractArea.cpp.
References d, QObject::qobject_cast(), and QLayoutItem::sizeHint().
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the left edge of the area.
Definition at line 57 of file KDChartAbstractArea.cpp.
References d, QObject::qobject_cast(), and QLayoutItem::sizeHint().
Call paintAll, if you want the background and the frame to be drawn before the normal paint() is invoked automatically.
Reimplemented from KDChart::AbstractLayoutItem.
Reimplemented in KDChart::TernaryAxis.
Definition at line 102 of file KDChartAbstractArea.cpp.
References areaGeometry(), QObject::blockSignals(), d, QLayoutItem::geometry(), KDChart::AbstractAreaBase::innerRect(), KDChart::AbstractLayoutItem::paint(), KDChart::AbstractAreaBase::paintBackground(), KDChart::AbstractAreaBase::paintFrame(), QObject::qobject_cast(), QLayoutItem::setGeometry(), and QObject::signalsBlocked().
Referenced by paintIntoRect().
Draws the background and frame, then calls paint().
In most cases there is no need to overwrite this method in a derived class, but you would overwrite AbstractLayoutItem::paint() instead.
Definition at line 90 of file KDChartAbstractArea.cpp.
References QLayoutItem::geometry(), QRect::left(), paintAll(), QObject::qobject_cast(), QLayoutItem::setGeometry(), QRect::top(), and QPainter::translate().
|
signal |
Referenced by positionHasChanged().
|
overrideprotectedvirtual |
Reimplemented from KDChart::AbstractAreaBase.
Definition at line 138 of file KDChartAbstractArea.cpp.
References positionChanged(), and QObject::Q_EMIT().
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the right edge of the area.
Definition at line 65 of file KDChartAbstractArea.cpp.
References d, QObject::qobject_cast(), and QLayoutItem::sizeHint().
This is called at layout time by KDChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the top edge of the area.
Definition at line 73 of file KDChartAbstractArea.cpp.
References d, QObject::qobject_cast(), and QLayoutItem::sizeHint().