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.

Member Function Documentation

◆ 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.

◆ 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.

◆ 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.

◆ 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.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 03:51:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.