PrerenderedElement
#include <KChartTextLabelCache.h>

Public Member Functions | |
virtual const QPixmap & | pixmap () const =0 |
const QPointF & | position () const |
KChartEnums::PositionValue | referencePoint () const |
virtual QPointF | referencePointLocation (KChartEnums::PositionValue) const =0 |
void | setPosition (const QPointF &position) |
void | setReferencePoint (KChartEnums::PositionValue) |
Protected Member Functions | |
virtual void | invalidate () const =0 |
Detailed Description
base class for prerendered elements like labels, pixmaps, markers, etc.
Definition at line 22 of file KChartTextLabelCache.h.
Member Function Documentation
◆ invalidate()
|
protectedpure virtual |
invalidate() needs to be called if any of the properties that determine the visual appearance of the prerendered element change.
It can be called for a const object, as objects may need to force recalculation of the pixmap.
Implemented in PrerenderedLabel.
◆ pixmap()
|
pure virtual |
Returns the rendered element.
If any of the properties have change, the element will be regenerated.
Implemented in PrerenderedLabel.
◆ position()
const QPointF & PrerenderedElement::position | ( | ) | const |
Get the position of the element.
Definition at line 48 of file KChartTextLabelCache.cpp.
◆ referencePoint()
KChartEnums::PositionValue PrerenderedElement::referencePoint | ( | ) | const |
Get the reference point of the element.
Definition at line 58 of file KChartTextLabelCache.cpp.
◆ referencePointLocation()
|
pure virtual |
Return the location of the reference point relatively to the pixmap's origin.
Implemented in PrerenderedLabel.
◆ setPosition()
void PrerenderedElement::setPosition | ( | const QPointF & | position | ) |
Set the position of the element.
Definition at line 43 of file KChartTextLabelCache.cpp.
◆ setReferencePoint()
void PrerenderedElement::setReferencePoint | ( | KChartEnums::PositionValue | point | ) |
Set the reference point of the element.
Every element has nine possible reference points (all compass directions, plus the center.
Definition at line 53 of file KChartTextLabelCache.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat May 21 2022 03:51:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.