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.
Constructor & Destructor Documentation
◆ PrerenderedElement()
PrerenderedElement::PrerenderedElement | ( | ) |
Definition at line 37 of file KChartTextLabelCache.cpp.
◆ ~PrerenderedElement()
|
inlinevirtual |
Definition at line 25 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 47 of file KChartTextLabelCache.cpp.
◆ referencePoint()
KChartEnums::PositionValue PrerenderedElement::referencePoint | ( | ) | const |
Get the reference point of the element.
Definition at line 57 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 42 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 52 of file KChartTextLabelCache.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.