KChart::Measure

Search for usage in LXR

KChart::Measure Class Reference

#include <KChartMeasure>

Public Member Functions

 Measure (const Measure &)
 
 Measure (qreal value, KChartEnums::MeasureCalculationMode mode=KChartEnums::MeasureCalculationModeAuto, KChartEnums::MeasureOrientation orientation=KChartEnums::MeasureOrientationAuto)
 
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 37 of file KChartMeasure.h.

Constructor & Destructor Documentation

◆ Measure() [1/3]

KChart::Measure::Measure ( )

Definition at line 23 of file KChartMeasure.cpp.

◆ Measure() [2/3]

KChart::Measure::Measure ( qreal value,
KChartEnums::MeasureCalculationMode mode = KChartEnums::MeasureCalculationModeAuto,
KChartEnums::MeasureOrientation orientation = KChartEnums::MeasureOrientationAuto )

Definition at line 32 of file KChartMeasure.cpp.

◆ Measure() [3/3]

KChart::Measure::Measure ( const Measure & r)

Definition at line 43 of file KChartMeasure.cpp.

Member Function Documentation

◆ calculatedValue() [1/2]

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 121 of file KChartMeasure.cpp.

◆ calculatedValue() [2/2]

qreal KChart::Measure::calculatedValue ( const QSizeF & autoSize,
KChartEnums::MeasureOrientation autoOrientation ) const

Definition at line 65 of file KChartMeasure.cpp.

◆ calculationMode()

KChartEnums::MeasureCalculationMode KChart::Measure::calculationMode ( ) const
inline

Definition at line 51 of file KChartMeasure.h.

◆ operator!=()

bool KChart::Measure::operator!= ( const Measure & other) const
inline

Definition at line 104 of file KChartMeasure.h.

◆ operator=()

Measure & KChart::Measure::operator= ( const Measure & r)

Definition at line 52 of file KChartMeasure.cpp.

◆ operator==()

bool KChart::Measure::operator== ( const Measure & r) const

Definition at line 164 of file KChartMeasure.cpp.

◆ referenceArea()

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

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

Definition at line 90 of file KChartMeasure.h.

◆ referenceOrientation()

KChartEnums::MeasureOrientation KChart::Measure::referenceOrientation ( ) const
inline

Definition at line 93 of file KChartMeasure.h.

◆ setAbsoluteValue()

void KChart::Measure::setAbsoluteValue ( qreal val)
inline
  \brief 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 75 of file KChartMeasure.h.

◆ setCalculationMode()

void KChart::Measure::setCalculationMode ( KChartEnums::MeasureCalculationMode mode)
inline

Definition at line 50 of file KChartMeasure.h.

◆ setReferenceArea()

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 85 of file KChartMeasure.h.

◆ setReferenceOrientation()

void KChart::Measure::setReferenceOrientation ( KChartEnums::MeasureOrientation orientation)
inline

Definition at line 92 of file KChartMeasure.h.

◆ setRelativeMode()

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 57 of file KChartMeasure.h.

◆ setValue()

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

Definition at line 47 of file KChartMeasure.h.

◆ sizeOfArea()

const QSizeF KChart::Measure::sizeOfArea ( const QObject * area) const

Definition at line 128 of file KChartMeasure.cpp.

◆ value()

qreal KChart::Measure::value ( ) const
inline

Definition at line 48 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-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:18:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.