Public Member Functions

KDChart::Measure Class Reference

Measure is used to specify all relative and/or absolute measures in KDChart, e.g. More...

#include <KDChartMeasure>

Collaboration diagram for KDChart::Measure:
Collaboration graph
[legend]

List of all members.

Public Member Functions

qreal calculatedValue (const QObject *autoArea, KDChartEnums::MeasureOrientation autoOrientation) const
 The reference area must either be derived from AbstractArea or be derived from QWidget, so e.g.
qreal calculatedValue (const QSizeF &autoSize, KDChartEnums::MeasureOrientation autoOrientation) const
KDChartEnums::MeasureCalculationMode calculationMode () const
 Measure ()
 Measure (qreal value, KDChartEnums::MeasureCalculationMode mode=KDChartEnums::MeasureCalculationModeAuto, KDChartEnums::MeasureOrientation orientation=KDChartEnums::MeasureOrientationAuto)
 Measure (const Measure &)
bool operator!= (const Measure &other) const
Measureoperator= (const Measure &)
bool operator== (const Measure &) const
const QObjectreferenceArea () const
 The returned reference area will either be derived from AbstractArea or be derived from QWidget.
KDChartEnums::MeasureOrientation referenceOrientation () const
void setAbsoluteValue (qreal val)
 This is a convenience method for specifying a value, with implicitely setting the calculation mode to MeasureCalculationModeAbsolute.
void setCalculationMode (KDChartEnums::MeasureCalculationMode mode)
void setReferenceArea (const QObject *area)
 The reference area must either be derived from AbstractArea or be derived from QWidget, so e.g.
void setReferenceOrientation (KDChartEnums::MeasureOrientation orientation)
void setRelativeMode (const QObject *area, KDChartEnums::MeasureOrientation orientation)
 The reference area must either be derived from AbstractArea or be derived from QWidget, so e.g.
void setValue (qreal val)
const QSizeF sizeOfArea (const QObject *area) const
qreal value () const

Detailed Description

Measure is used to specify all relative and/or absolute measures in KDChart, e.g.

font sizes.

Definition at line 50 of file KDChartMeasure.h.


Constructor & Destructor Documentation

KDChart::Measure::Measure (  ) 

Definition at line 40 of file KDChartMeasure.cpp.

KDChart::Measure::Measure ( qreal  value,
KDChartEnums::MeasureCalculationMode  mode = KDChartEnums::MeasureCalculationModeAuto,
KDChartEnums::MeasureOrientation  orientation = KDChartEnums::MeasureOrientationAuto 
)

Definition at line 49 of file KDChartMeasure.cpp.

KDChart::Measure::Measure ( const Measure r  ) 

Definition at line 60 of file KDChartMeasure.cpp.


Member Function Documentation

qreal KDChart::Measure::calculatedValue ( const QObject autoArea,
KDChartEnums::MeasureOrientation  autoOrientation 
) const

The reference area must either be derived from AbstractArea or be derived from QWidget, so e.g.

it could be derived from AbstractAreaWidget too.

Definition at line 138 of file KDChartMeasure.cpp.

References sizeOfArea().

Referenced by KDChart::TextAttributes::calculatedFontSize(), and KDChart::RelativePosition::calculatedPoint().

qreal KDChart::Measure::calculatedValue ( const QSizeF &  autoSize,
KDChartEnums::MeasureOrientation  autoOrientation 
) const
KDChartEnums::MeasureCalculationMode KDChart::Measure::calculationMode (  )  const

Definition at line 64 of file KDChartMeasure.h.

Referenced by operator<<(), operator=(), and operator==().

bool KDChart::Measure::operator!= ( const Measure other  )  const

Definition at line 120 of file KDChartMeasure.h.

References KDGantt::operator==().

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

Definition at line 69 of file KDChartMeasure.cpp.

References calculationMode(), referenceArea(), referenceOrientation(), and value().

bool KDChart::Measure::operator== ( const Measure r  )  const
const QObject* KDChart::Measure::referenceArea (  )  const

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

Definition at line 105 of file KDChartMeasure.h.

Referenced by operator<<(), operator=(), and operator==().

KDChartEnums::MeasureOrientation KDChart::Measure::referenceOrientation (  )  const

Definition at line 108 of file KDChartMeasure.h.

Referenced by operator<<(), operator=(), and operator==().

void KDChart::Measure::setAbsoluteValue ( qreal  val  ) 

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

Calling setAbsoluteValue( value ) is the same as calling

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

Definition at line 89 of file KDChartMeasure.h.

void KDChart::Measure::setCalculationMode ( KDChartEnums::MeasureCalculationMode  mode  ) 

Definition at line 63 of file KDChartMeasure.h.

void KDChart::Measure::setReferenceArea ( const QObject area  ) 

The reference area must either be derived from AbstractArea or be derived from QWidget, so e.g.

it could be derived from AbstractAreaWidget too.

Definition at line 100 of file KDChartMeasure.h.

void KDChart::Measure::setReferenceOrientation ( KDChartEnums::MeasureOrientation  orientation  ) 

Definition at line 107 of file KDChartMeasure.h.

void KDChart::Measure::setRelativeMode ( const QObject area,
KDChartEnums::MeasureOrientation  orientation 
)

The reference area must either be derived from AbstractArea or be derived from QWidget, so e.g.

it could be derived from AbstractAreaWidget too.

Definition at line 71 of file KDChartMeasure.h.

void KDChart::Measure::setValue ( qreal  val  ) 

Definition at line 60 of file KDChartMeasure.h.

const QSizeF KDChart::Measure::sizeOfArea ( const QObject area  )  const
qreal KDChart::Measure::value (  )  const

Definition at line 61 of file KDChartMeasure.h.

Referenced by calculatedValue(), operator<<(), operator=(), and operator==().


The documentation for this class was generated from the following files: