KChart::AbstractArea
#include <KChartAbstractArea.h>
Signals | |
void | positionChanged (KChart::AbstractArea *) |
Protected Member Functions | |
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 KChart::AbstractAreaBase | |
QRect | innerRect () const |
Detailed Description
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.
- Note
- This class inherits from AbstractAreaBase, AbstractLayoutItem, QObject. The reason for this triple inheritance is that neither AbstractAreaBase nor AbstractLayoutItem are QObject.
Definition at line 33 of file KChartAbstractArea.h.
Constructor & Destructor Documentation
◆ ~AbstractArea()
|
override |
Definition at line 45 of file KChartAbstractArea.cpp.
◆ AbstractArea()
|
protected |
Definition at line 37 of file KChartAbstractArea.cpp.
Member Function Documentation
◆ areaGeometry()
|
overrideprotectedvirtual |
This internal method is used by AbstractArea and AbstractAreaWidget to find out the real widget size.
- See also
- AbstractArea, AbstractAreaWidget
Implements KChart::AbstractAreaBase.
Definition at line 137 of file KChartAbstractArea.cpp.
◆ bottomOverlap()
|
virtual |
This is called at layout time by KChart:AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the bottom edge of the area.
- Note
- The default implementation is not using any caching, it might make sense to implement a more sophisticated solution for derived classes that have complex work to do in sizeHint(). All we have here is a primitive flag to be set by the caller if it is sure that no sizeHint() needs to be called.
Definition at line 84 of file KChartAbstractArea.cpp.
◆ leftOverlap()
|
virtual |
This is called at layout time by KChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the left edge of the area.
- Note
- The default implementation is not using any caching, it might make sense to implement a more sophisticated solution for derived classes that have complex work to do in sizeHint(). All we have here is a primitive flag to be set by the caller if it is sure that no sizeHint() needs to be called.
Definition at line 60 of file KChartAbstractArea.cpp.
◆ paintAll()
Call paintAll, if you want the background and the frame to be drawn before the normal paint() is invoked automatically.
Reimplemented from KChart::AbstractLayoutItem.
Reimplemented in KChart::TernaryAxis.
Definition at line 106 of file KChartAbstractArea.cpp.
◆ 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 94 of file KChartAbstractArea.cpp.
◆ positionHasChanged()
|
overrideprotectedvirtual |
This internal method can be overwritten by derived classes, if they want to emit a signal (or perform other actions, resp.) when the Position of the area has been changed. The default implementation does nothing.
Reimplemented from KChart::AbstractAreaBase.
Definition at line 142 of file KChartAbstractArea.cpp.
◆ rightOverlap()
|
virtual |
This is called at layout time by KChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the right edge of the area.
- Note
- The default implementation is not using any caching, it might make sense to implement a more sophisticated solution for derived classes that have complex work to do in sizeHint(). All we have here is a primitive flag to be set by the caller if it is sure that no sizeHint() needs to be called.
Definition at line 68 of file KChartAbstractArea.cpp.
◆ topOverlap()
|
virtual |
This is called at layout time by KChart::AutoSpacerLayoutItem::sizeHint().
The method triggers AbstractArea::sizeHint() to find out the amount of overlap at the top edge of the area.
- Note
- The default implementation is not using any caching, it might make sense to implement a more sophisticated solution for derived classes that have complex work to do in sizeHint(). All we have here is a primitive flag to be set by the caller if it is sure that no sizeHint() needs to be called.
Definition at line 76 of file KChartAbstractArea.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.