KChart::AbstractAreaBase
#include <KChartAbstractAreaBase.h>
Public Member Functions | |
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) |
Static Public Member Functions | |
static void | paintBackgroundAttributes (QPainter &painter, const QRect &rectangle, const KChart::BackgroundAttributes &attributes) |
static void | paintFrameAttributes (QPainter &painter, const QRect &rectangle, const KChart::FrameAttributes &attributes) |
Protected Member Functions | |
virtual QRect | areaGeometry () const =0 |
QRect | innerRect () const |
virtual void | positionHasChanged () |
Detailed Description
Base class for AbstractArea and AbstractAreaWidget: An area in the chart with a background, a frame, etc.
AbstractAreaBase is the base class for all chart elements that have a set of background attributes and frame attributes, such as legends or axes.
- Note
- Normally you should not use AbstractAreaBase directly, but derive your classes from AbstractArea or AbstractAreaWidget.
- This classis not a QObject, so it is easier to inherit from it, if your are inheriting from a QObject too like AbstractAreaWidget does it.
- See also
- AbstractArea, AbstractAreaWidget
Definition at line 51 of file KChartAbstractAreaBase.h.
Constructor & Destructor Documentation
◆ AbstractAreaBase()
|
protected |
Definition at line 39 of file KChartAbstractAreaBase.cpp.
◆ ~AbstractAreaBase()
|
protectedvirtual |
Definition at line 44 of file KChartAbstractAreaBase.cpp.
Member Function Documentation
◆ alignToReferencePoint()
void AbstractAreaBase::alignToReferencePoint | ( | const RelativePosition & | position | ) |
Definition at line 67 of file KChartAbstractAreaBase.cpp.
◆ areaGeometry()
|
protectedpure virtual |
This internal method is used by AbstractArea and AbstractAreaWidget to find out the real widget size.
- See also
- AbstractArea, AbstractAreaWidget
Implemented in KChart::AbstractArea, KChart::AbstractAreaWidget, and KChart::TextArea.
◆ backgroundAttributes()
BackgroundAttributes AbstractAreaBase::backgroundAttributes | ( | ) | const |
Definition at line 97 of file KChartAbstractAreaBase.cpp.
◆ compare()
bool AbstractAreaBase::compare | ( | const AbstractAreaBase * | other | ) | const |
Returns true if both areas have the same settings.
Definition at line 57 of file KChartAbstractAreaBase.cpp.
◆ frameAttributes()
FrameAttributes AbstractAreaBase::frameAttributes | ( | ) | const |
Definition at line 83 of file KChartAbstractAreaBase.cpp.
◆ getFrameLeadings()
void AbstractAreaBase::getFrameLeadings | ( | int & | left, |
int & | top, | ||
int & | right, | ||
int & | bottom ) const |
- Note
- Normally you should not call this method, but derive your classes from AbstractArea or AbstractAreaWidget.
- See also
- AbstractArea, AbstractAreaWidget
Definition at line 199 of file KChartAbstractAreaBase.cpp.
◆ innerRect()
|
protected |
- Note
- Normally you should not call this method, but derive your classes from AbstractArea or AbstractAreaWidget.
- See also
- AbstractArea, AbstractAreaWidget
Definition at line 211 of file KChartAbstractAreaBase.cpp.
◆ paintBackground()
Definition at line 175 of file KChartAbstractAreaBase.cpp.
◆ paintBackgroundAttributes()
|
static |
Definition at line 104 of file KChartAbstractAreaBase.cpp.
◆ paintFrame()
Definition at line 191 of file KChartAbstractAreaBase.cpp.
◆ paintFrameAttributes()
|
static |
Definition at line 154 of file KChartAbstractAreaBase.cpp.
◆ positionHasChanged()
|
protectedvirtual |
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 in KChart::AbstractArea, KChart::AbstractAreaWidget, and KChart::TextArea.
Definition at line 221 of file KChartAbstractAreaBase.cpp.
◆ setBackgroundAttributes()
void AbstractAreaBase::setBackgroundAttributes | ( | const BackgroundAttributes & | a | ) |
Definition at line 88 of file KChartAbstractAreaBase.cpp.
◆ setFrameAttributes()
void AbstractAreaBase::setFrameAttributes | ( | const FrameAttributes & | a | ) |
Definition at line 74 of file KChartAbstractAreaBase.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.