Search for usage in LXR

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 22 of file KChartTextLabelCache.h.

Constructor & Destructor Documentation

◆ PrerenderedElement()

PrerenderedElement::PrerenderedElement ( )

Definition at line 37 of file KChartTextLabelCache.cpp.

◆ ~PrerenderedElement()

virtual PrerenderedElement::~PrerenderedElement ( )

Definition at line 25 of file KChartTextLabelCache.h.

Member Function Documentation

◆ invalidate()

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.

◆ pixmap()

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.

◆ 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()

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.

◆ 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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 11:54:45 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.