KD Chart API Documentation 3.1
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
KDChart::AbstractAreaBase Class Referenceabstract

Base class for AbstractArea and AbstractAreaWidget: An area in the chart with a background, a frame, etc. More...

#include <KDChartAbstractAreaBase.h>

Inheritance diagram for KDChart::AbstractAreaBase:
Inheritance graph
[legend]

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 KDChart::BackgroundAttributes &attributes)
 
static void paintFrameAttributes (QPainter &painter, const QRect &rectangle, const KDChart::FrameAttributes &attributes)
 

Protected Member Functions

 AbstractAreaBase ()
 
virtual ~AbstractAreaBase ()
 
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 KDChartAbstractAreaBase.h.

Constructor & Destructor Documentation

◆ AbstractAreaBase()

AbstractAreaBase::AbstractAreaBase ( )
protected

Definition at line 38 of file KDChartAbstractAreaBase.cpp.

◆ ~AbstractAreaBase()

AbstractAreaBase::~AbstractAreaBase ( )
protectedvirtual

Definition at line 43 of file KDChartAbstractAreaBase.cpp.

Member Function Documentation

◆ alignToReferencePoint()

void AbstractAreaBase::alignToReferencePoint ( const RelativePosition position)

Definition at line 65 of file KDChartAbstractAreaBase.cpp.

◆ areaGeometry()

virtual QRect KDChart::AbstractAreaBase::areaGeometry ( ) const
protectedpure virtual

◆ backgroundAttributes()

BackgroundAttributes AbstractAreaBase::backgroundAttributes ( ) const

Definition at line 95 of file KDChartAbstractAreaBase.cpp.

References d.

Referenced by compare(), and updateCommonBrush().

◆ compare()

bool AbstractAreaBase::compare ( const AbstractAreaBase other) const

Returns true if both areas have the same settings.

Definition at line 55 of file KDChartAbstractAreaBase.cpp.

References backgroundAttributes(), and frameAttributes().

Referenced by KDChart::Legend::compare().

◆ frameAttributes()

FrameAttributes AbstractAreaBase::frameAttributes ( ) const

Definition at line 81 of file KDChartAbstractAreaBase.cpp.

References d.

Referenced by KDChart::Legend::clone(), compare(), and updateCommonBrush().

◆ getFrameLeadings()

void AbstractAreaBase::getFrameLeadings ( int &  left,
int &  top,
int &  right,
int &  bottom 
) const

Definition at line 190 of file KDChartAbstractAreaBase.cpp.

References d.

Referenced by innerRect(), and KDChart::AbstractAreaWidget::paintAll().

◆ innerRect()

QRect AbstractAreaBase::innerRect ( ) const
protected

◆ paintBackground()

void AbstractAreaBase::paintBackground ( QPainter painter,
const QRect rectangle 
)
virtual

◆ paintBackgroundAttributes()

void AbstractAreaBase::paintBackgroundAttributes ( QPainter painter,
const QRect rectangle,
const KDChart::BackgroundAttributes attributes 
)
static

◆ paintFrame()

void AbstractAreaBase::paintFrame ( QPainter painter,
const QRect rectangle 
)
virtual

◆ paintFrameAttributes()

void AbstractAreaBase::paintFrameAttributes ( QPainter painter,
const QRect rectangle,
const KDChart::FrameAttributes attributes 
)
static

◆ positionHasChanged()

void AbstractAreaBase::positionHasChanged ( )
protectedvirtual

◆ setBackgroundAttributes()

void AbstractAreaBase::setBackgroundAttributes ( const BackgroundAttributes a)

Definition at line 86 of file KDChartAbstractAreaBase.cpp.

References d, and positionHasChanged().

◆ setFrameAttributes()

void AbstractAreaBase::setFrameAttributes ( const FrameAttributes a)

Definition at line 72 of file KDChartAbstractAreaBase.cpp.

References d, and positionHasChanged().


The documentation for this class was generated from the following files:

© 2001 Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-chart/
Generated on Fri Apr 26 2024 00:04:57 for KD Chart API Documentation by doxygen 1.9.8