KChart::AbstractAreaBase

#include <KChartAbstractAreaBase.h>

Inheritance diagram for KChart::AbstractAreaBase:

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

Member Function Documentation

virtual QRect KChart::AbstractAreaBase::areaGeometry ( ) const
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.

bool AbstractAreaBase::compare ( const AbstractAreaBase other) const

Returns true if both areas have the same settings.

Definition at line 69 of file KChartAbstractAreaBase.cpp.

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 211 of file KChartAbstractAreaBase.cpp.

QRect AbstractAreaBase::innerRect ( ) const
protected
Note
Normally you should not call this method, but derive your classes from AbstractArea or AbstractAreaWidget.
See also
AbstractArea, AbstractAreaWidget

Definition at line 223 of file KChartAbstractAreaBase.cpp.

void AbstractAreaBase::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 233 of file KChartAbstractAreaBase.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Oct 21 2020 22:41:07 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.