KD Chart 2  [rev.2.7]
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
 Returns true if both areas have the same settings. More...
 
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 QRect areaGeometry () const =0
 
QRect innerRect () const
 
virtual void positionHasChanged ()
 
virtual ~AbstractAreaBase ()
 

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 65 of file KDChartAbstractAreaBase.h.

Constructor & Destructor Documentation

AbstractAreaBase::AbstractAreaBase ( )
protected

Definition at line 53 of file KDChartAbstractAreaBase.cpp.

AbstractAreaBase::~AbstractAreaBase ( )
protectedvirtual

Definition at line 58 of file KDChartAbstractAreaBase.cpp.

Member Function Documentation

void AbstractAreaBase::alignToReferencePoint ( const RelativePosition position)

Definition at line 81 of file KDChartAbstractAreaBase.cpp.

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

Definition at line 111 of file KDChartAbstractAreaBase.cpp.

References d.

Referenced by compare(), and updateCommonBrush().

bool AbstractAreaBase::compare ( const AbstractAreaBase other) const

Returns true if both areas have the same settings.

Definition at line 71 of file KDChartAbstractAreaBase.cpp.

References backgroundAttributes(), and frameAttributes().

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

FrameAttributes AbstractAreaBase::frameAttributes ( ) const

Definition at line 97 of file KDChartAbstractAreaBase.cpp.

References d.

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

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

Definition at line 213 of file KDChartAbstractAreaBase.cpp.

References d.

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

QRect AbstractAreaBase::innerRect ( ) const
protected
void AbstractAreaBase::paintBackground ( QPainter &  painter,
const QRect &  rectangle 
)
virtual
void AbstractAreaBase::paintBackgroundAttributes ( QPainter &  painter,
const QRect &  rectangle,
const KDChart::BackgroundAttributes attributes 
)
static
void AbstractAreaBase::paintFrame ( QPainter &  painter,
const QRect &  rectangle 
)
virtual
void AbstractAreaBase::paintFrameAttributes ( QPainter &  painter,
const QRect &  rectangle,
const KDChart::FrameAttributes attributes 
)
static
void AbstractAreaBase::positionHasChanged ( )
protectedvirtual
void AbstractAreaBase::setBackgroundAttributes ( const BackgroundAttributes a)

Definition at line 102 of file KDChartAbstractAreaBase.cpp.

References d, and positionHasChanged().

void AbstractAreaBase::setFrameAttributes ( const FrameAttributes a)

Definition at line 88 of file KDChartAbstractAreaBase.cpp.

References d, and positionHasChanged().

Referenced by KDChart::Legend::clone(), and KDChart::Legend::~Legend().


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

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/