KChart::Measure

KChart::Measure Class Reference

#include <KChartMeasure>

Public Member Functions

 Measure (qreal value, KChartEnums::MeasureCalculationMode mode=KChartEnums::MeasureCalculationModeAuto, KChartEnums::MeasureOrientation orientation=KChartEnums::MeasureOrientationAuto)
 
 Measure (const Measure &)
 
qreal calculatedValue (const QObject *autoArea, KChartEnums::MeasureOrientation autoOrientation) const
 
qreal calculatedValue (const QSizeF &autoSize, KChartEnums::MeasureOrientation autoOrientation) const
 
KChartEnums::MeasureCalculationMode calculationMode () const
 
bool operator!= (const Measure &other) const
 
Measureoperator= (const Measure &)
 
bool operator== (const Measure &) const
 
const QObjectreferenceArea () const
 
KChartEnums::MeasureOrientation referenceOrientation () const
 
void setAbsoluteValue (qreal val)
 
void setCalculationMode (KChartEnums::MeasureCalculationMode mode)
 
void setReferenceArea (const QObject *area)
 
void setReferenceOrientation (KChartEnums::MeasureOrientation orientation)
 
void setRelativeMode (const QObject *area, KChartEnums::MeasureOrientation orientation)
 
void setValue (qreal val)
 
const QSizeF sizeOfArea (const QObject *area) const
 
qreal value () const
 

Detailed Description

Measure is used to specify relative and absolute sizes in KChart, e.g.

font sizes.

Definition at line 48 of file KChartMeasure.h.

Member Function Documentation

qreal KChart::Measure::calculatedValue ( const QObject autoArea,
KChartEnums::MeasureOrientation  autoOrientation 
) const

The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget.

Definition at line 132 of file KChartMeasure.cpp.

const QObject* KChart::Measure::referenceArea ( ) const
inline

The returned reference area will be derived from AbstractArea or QWidget or both.

Definition at line 101 of file KChartMeasure.h.

void KChart::Measure::setAbsoluteValue ( qreal  val)
inline

This is a convenience method for specifying a value, implicitly setting the calculation mode to MeasureCalculationModeAbsolute.

Calling setAbsoluteValue( value ) is the same as calling

    setValue( value );
    setCalculationMode( KChartEnums::MeasureCalculationModeAbsolute );

Definition at line 86 of file KChartMeasure.h.

void KChart::Measure::setReferenceArea ( const QObject area)
inline

The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget.

Definition at line 96 of file KChartMeasure.h.

void KChart::Measure::setRelativeMode ( const QObject area,
KChartEnums::MeasureOrientation  orientation 
)
inline

The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget.

Definition at line 68 of file KChartMeasure.h.


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 Wed Oct 21 2020 22:41:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.