PrerenderedElement Class Referenceabstract

#include <KChartTextLabelCache.h>

Inheritance diagram for PrerenderedElement:

Public Member Functions

virtual const QPixmappixmap () const =0
const QPointFposition () 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 33 of file KChartTextLabelCache.h.

Member Function Documentation

virtual void PrerenderedElement::invalidate ( ) const
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.

virtual const QPixmap& PrerenderedElement::pixmap ( ) const
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 59 of file KChartTextLabelCache.cpp.

KChartEnums::PositionValue PrerenderedElement::referencePoint ( ) const

Get the reference point of the element.

Definition at line 69 of file KChartTextLabelCache.cpp.

virtual QPointF PrerenderedElement::referencePointLocation ( KChartEnums::PositionValue  ) const
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 54 of file KChartTextLabelCache.cpp.

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 64 of file KChartTextLabelCache.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Sep 19 2020 22:36:26 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.