KChart::AbstractAreaBase

Search for usage in LXR

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

Constructor & Destructor Documentation

◆ AbstractAreaBase()

AbstractAreaBase::AbstractAreaBase ( )
protected

Definition at line 39 of file KChartAbstractAreaBase.cpp.

◆ ~AbstractAreaBase()

AbstractAreaBase::~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()

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.

◆ 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()

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

◆ paintBackground()

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

Definition at line 175 of file KChartAbstractAreaBase.cpp.

◆ paintBackgroundAttributes()

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

Definition at line 104 of file KChartAbstractAreaBase.cpp.

◆ paintFrame()

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

Definition at line 191 of file KChartAbstractAreaBase.cpp.

◆ paintFrameAttributes()

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

Definition at line 154 of file KChartAbstractAreaBase.cpp.

◆ positionHasChanged()

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 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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 26 2024 11:51:58 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.