KDChart::AbstractAreaBase Class Reference

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]

List of all members.

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


Constructor & Destructor Documentation

AbstractAreaBase::AbstractAreaBase (  )  [protected]

Definition at line 55 of file KDChartAbstractAreaBase.cpp.

AbstractAreaBase::~AbstractAreaBase (  )  [protected, virtual]

Definition at line 60 of file KDChartAbstractAreaBase.cpp.


Member Function Documentation

void AbstractAreaBase::alignToReferencePoint ( const RelativePosition position  ) 

Definition at line 88 of file KDChartAbstractAreaBase.cpp.

virtual QRect KDChart::AbstractAreaBase::areaGeometry (  )  const [protected, pure virtual]
BackgroundAttributes AbstractAreaBase::backgroundAttributes (  )  const

Definition at line 118 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 73 of file KDChartAbstractAreaBase.cpp.

References backgroundAttributes(), and frameAttributes().

FrameAttributes AbstractAreaBase::frameAttributes (  )  const

Definition at line 104 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 210 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 (  )  [protected, virtual]
void AbstractAreaBase::setBackgroundAttributes ( const BackgroundAttributes a  ) 

Definition at line 109 of file KDChartAbstractAreaBase.cpp.

References d, and positionHasChanged().

void AbstractAreaBase::setFrameAttributes ( const FrameAttributes a  ) 

Definition at line 95 of file KDChartAbstractAreaBase.cpp.

References d, and positionHasChanged().

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-chart/