#include <KDChartTextLabelCache.h>
Inheritance diagram for PrerenderedElement:
Public Member Functions | |
| virtual const QPixmap & | pixmap () const=0 |
| Returns the rendered element. | |
| const QPointF & | position () const |
| Get the position of the element. | |
| PrerenderedElement () | |
| KDChartEnums::PositionValue | referencePoint () const |
| Get the reference point of the element. | |
| virtual QPointF | referencePointLocation (KDChartEnums::PositionValue) const=0 |
| Return the location of the reference point relatively to the pixmap's origin. | |
| void | setPosition (const QPointF &position) |
| Set the position of the element. | |
| void | setReferencePoint (KDChartEnums::PositionValue) |
| Set the reference point of the element. | |
| virtual | ~PrerenderedElement () |
Protected Member Functions | |
| virtual void | invalidate () const=0 |
| invalidate() needs to be called if any of the properties that determine the visual appearance of the prerendered element change. | |
|
|
Definition at line 30 of file KDChartTextLabelCache.cpp.
00031 : m_referencePoint( KDChartEnums::PositionNorthWest )
00032 {
00033 }
|
|
|
Definition at line 13 of file KDChartTextLabelCache.h.
00013 {}
|
|
|
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. |
|
|
Returns the rendered element. If any of the properties have change, the element will be regenerated. Implemented in PrerenderedLabel. |
|
|
Get the position of the element.
Definition at line 40 of file KDChartTextLabelCache.cpp.
00041 {
00042 return m_position;
00043 }
|
|
|
Get the reference point of the element.
Definition at line 50 of file KDChartTextLabelCache.cpp. Referenced by PrerenderedLabel::referencePointLocation().
00051 {
00052 return m_referencePoint;
00053 }
|
|
|
Return the location of the reference point relatively to the pixmap's origin.
Implemented in PrerenderedLabel. |
|
|
Set the position of the element.
Definition at line 35 of file KDChartTextLabelCache.cpp.
00036 { // this does not invalidate the element
00037 m_position = position;
00038 }
|
|
|
Set the reference point of the element. Every element has nine possible reference points (all compass directions, plus the center. Definition at line 45 of file KDChartTextLabelCache.cpp.
00046 { // this does not invalidate the element
00047 m_referencePoint = point;
00048 }
|
1.3.6