![]() |
KD Chart API Documentation
3.1
|
An area in the chart with a background, a frame, etc. More...
#include <KDChartAbstractAreaWidget.h>
Signals | |
| void | positionChanged (AbstractAreaWidget *) |
Public Member Functions | |
| AbstractAreaWidget (QWidget *parent=nullptr) | |
| virtual void | forceRebuild () |
| virtual void | needSizeHint () |
| virtual void | paint (QPainter *painter)=0 |
| void | paintAll (QPainter &painter) |
| void | paintEvent (QPaintEvent *event) override |
| Draws the background and frame, then calls paint(). More... | |
| virtual void | paintIntoRect (QPainter &painter, const QRect &rect) |
| Draws the background and frame, then calls paint(). More... | |
| virtual void | resizeLayout (const QSize &) |
Public Member Functions inherited from KDChart::AbstractAreaBase | |
| void | alignToReferencePoint (const RelativePosition &position) |
| BackgroundAttributes | backgroundAttributes () const |
| bool | compare (const AbstractAreaBase *other) const |
| FrameAttributes | frameAttributes () const |
| void | getFrameLeadings (int &left, int &top, int &right, int &bottom) const |
| virtual void | paintBackground (QPainter &painter, const QRect &rectangle) |
| virtual void | paintFrame (QPainter &painter, const QRect &rectangle) |
| void | setBackgroundAttributes (const BackgroundAttributes &a) |
| void | setFrameAttributes (const FrameAttributes &a) |
Protected Member Functions | |
| ~AbstractAreaWidget () override | |
| QRect | areaGeometry () const override |
| void | positionHasChanged () override |
Protected Member Functions inherited from KDChart::AbstractAreaBase | |
| AbstractAreaBase () | |
| virtual | ~AbstractAreaBase () |
| QRect | innerRect () const |
Additional Inherited Members | |
Static Public Member Functions inherited from KDChart::AbstractAreaBase | |
| static void | paintBackgroundAttributes (QPainter &painter, const QRect &rectangle, const KDChart::BackgroundAttributes &attributes) |
| static void | paintFrameAttributes (QPainter &painter, const QRect &rectangle, const KDChart::FrameAttributes &attributes) |
An area in the chart with a background, a frame, etc.
AbstractAreaWidget is the base for all widget classes that have a set of background attributes and frame attributes, such as KDChart::Chart and KDChart::Legend.
Definition at line 31 of file KDChartAbstractAreaWidget.h.
|
explicit |
Definition at line 50 of file KDChartAbstractAreaWidget.cpp.
|
overrideprotected |
Definition at line 57 of file KDChartAbstractAreaWidget.cpp.
|
overrideprotectedvirtual |
Implements KDChart::AbstractAreaBase.
Definition at line 165 of file KDChartAbstractAreaWidget.cpp.
|
virtual |
Call this to trigger an unconditional re-building of the widget's internals.
Reimplemented in KDChart::Legend.
Definition at line 121 of file KDChartAbstractAreaWidget.cpp.
|
virtual |
Call this to trigger an conditional re-building of the widget's internals.
e.g. AbstractAreaWidget call this, before calling layout()->setGeometry()
Reimplemented in KDChart::Legend.
Definition at line 67 of file KDChartAbstractAreaWidget.cpp.
|
pure virtual |
Overwrite this to paint the inner contents of your widget.
Implemented in KDChart::Legend.
Referenced by paintAll().
| void AbstractAreaWidget::paintAll | ( | QPainter & | painter | ) |
Call paintAll, if you want the background and the frame to be drawn before the normal paint() is invoked automatically.
Definition at line 126 of file KDChartAbstractAreaWidget.cpp.
References KDChart::AbstractAreaBase::getFrameLeadings(), paint(), KDChart::AbstractAreaBase::paintBackground(), and KDChart::AbstractAreaBase::paintFrame().
Referenced by paintEvent(), and paintIntoRect().
|
override |
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 paint() instead.
Definition at line 80 of file KDChartAbstractAreaWidget.cpp.
References d, and paintAll().
|
virtual |
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 paint() instead.
Definition at line 90 of file KDChartAbstractAreaWidget.cpp.
References d, and paintAll().
|
signal |
Referenced by positionHasChanged().
|
overrideprotectedvirtual |
Reimplemented from KDChart::AbstractAreaBase.
Definition at line 170 of file KDChartAbstractAreaWidget.cpp.
References positionChanged().
|
virtual |
Reimplemented in KDChart::Legend.
Definition at line 74 of file KDChartAbstractAreaWidget.cpp.