![]() |
KD Chart API Documentation
3.1
|
base class for prerendered elements like labels, pixmaps, markers, etc. More...
#include <KDChartTextLabelCache.h>
Public Member Functions | |
| PrerenderedElement () | |
| virtual | ~PrerenderedElement () |
| virtual const QPixmap & | pixmap () const =0 |
| const QPointF & | position () const |
| KDChartEnums::PositionValue | referencePoint () const |
| virtual QPointF | referencePointLocation (KDChartEnums::PositionValue) const =0 |
| void | setPosition (const QPointF &position) |
| void | setReferencePoint (KDChartEnums::PositionValue) |
Protected Member Functions | |
| virtual void | invalidate () const =0 |
base class for prerendered elements like labels, pixmaps, markers, etc.
Definition at line 24 of file KDChartTextLabelCache.h.
| PrerenderedElement::PrerenderedElement | ( | ) |
Definition at line 46 of file KDChartTextLabelCache.cpp.
|
inlinevirtual |
Definition at line 28 of file KDChartTextLabelCache.h.
|
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.
|
pure virtual |
Returns the rendered element. If any of the properties have change, the element will be regenerated.
Implemented in PrerenderedLabel.
| const QPointF & PrerenderedElement::position | ( | ) | const |
Get the position of the element.
Definition at line 55 of file KDChartTextLabelCache.cpp.
Referenced by PrerenderedLabel::referencePointLocation(), and setPosition().
| KDChartEnums::PositionValue PrerenderedElement::referencePoint | ( | ) | const |
Get the reference point of the element.
Definition at line 65 of file KDChartTextLabelCache.cpp.
Referenced by PrerenderedLabel::referencePointLocation().
|
pure virtual |
Return the location of the reference point relatively to the pixmap's origin.
Implemented in PrerenderedLabel.
| void PrerenderedElement::setPosition | ( | const QPointF & | position | ) |
Set the position of the element.
Definition at line 50 of file KDChartTextLabelCache.cpp.
References position().
| void PrerenderedElement::setReferencePoint | ( | KDChartEnums::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 60 of file KDChartTextLabelCache.cpp.