KD Chart 2
[rev.2.7]
|
Measure is used to specify relative and absolute sizes in KDChart, e.g. More...
#include <KDChartMeasure>
Public Member Functions | |
qreal | calculatedValue (const QObject *autoArea, KDChartEnums::MeasureOrientation autoOrientation) const |
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget. More... | |
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 |
Measure & | operator= (const Measure &) |
bool | operator== (const Measure &) const |
const QObject * | referenceArea () const |
The returned reference area will be derived from AbstractArea or QWidget or both. More... | |
KDChartEnums::MeasureOrientation | referenceOrientation () const |
void | setAbsoluteValue (qreal val) |
This is a convenience method for specifying a value, implicitly setting the calculation mode to MeasureCalculationModeAbsolute. More... | |
void | setCalculationMode (KDChartEnums::MeasureCalculationMode mode) |
void | setReferenceArea (const QObject *area) |
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget. More... | |
void | setReferenceOrientation (KDChartEnums::MeasureOrientation orientation) |
void | setRelativeMode (const QObject *area, KDChartEnums::MeasureOrientation orientation) |
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget. More... | |
void | setValue (qreal val) |
const QSizeF | sizeOfArea (const QObject *area) const |
qreal | value () const |
Measure is used to specify relative and absolute sizes in KDChart, e.g.
font sizes.
Definition at line 51 of file KDChartMeasure.h.
KDChart::Measure::Measure | ( | ) |
Definition at line 39 of file KDChartMeasure.cpp.
KDChart::Measure::Measure | ( | qreal | value, |
KDChartEnums::MeasureCalculationMode | mode = KDChartEnums::MeasureCalculationModeAuto , |
||
KDChartEnums::MeasureOrientation | orientation = KDChartEnums::MeasureOrientationAuto |
||
) |
Definition at line 48 of file KDChartMeasure.cpp.
KDChart::Measure::Measure | ( | const Measure & | r | ) |
Definition at line 59 of file KDChartMeasure.cpp.
qreal KDChart::Measure::calculatedValue | ( | const QObject * | autoArea, |
KDChartEnums::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 137 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 |
Definition at line 81 of file KDChartMeasure.cpp.
References KDChartEnums::MeasureCalculationModeAbsolute, KDChartEnums::MeasureCalculationModeAuto, KDChartEnums::MeasureCalculationModeAutoArea, KDChartEnums::MeasureCalculationModeAutoOrientation, KDChartEnums::MeasureCalculationModeRelative, KDChartEnums::MeasureOrientationAuto, KDChartEnums::MeasureOrientationHorizontal, KDChartEnums::MeasureOrientationMaximum, KDChartEnums::MeasureOrientationMinimum, KDChartEnums::MeasureOrientationVertical, sizeOfArea(), and value().
KDChartEnums::MeasureCalculationMode KDChart::Measure::calculationMode | ( | ) | const |
Definition at line 65 of file KDChartMeasure.h.
Referenced by operator<<(), operator=(), and operator==().
bool KDChart::Measure::operator!= | ( | const Measure & | other | ) | const |
Definition at line 118 of file KDChartMeasure.h.
References KDGantt::operator==().
Definition at line 68 of file KDChartMeasure.cpp.
References calculationMode(), referenceArea(), referenceOrientation(), and value().
bool KDChart::Measure::operator== | ( | const Measure & | r | ) | const |
Definition at line 180 of file KDChartMeasure.cpp.
References calculationMode(), referenceArea(), referenceOrientation(), and value().
const QObject* KDChart::Measure::referenceArea | ( | ) | const |
The returned reference area will be derived from AbstractArea or QWidget or both.
Definition at line 104 of file KDChartMeasure.h.
Referenced by operator<<(), operator=(), and operator==().
KDChartEnums::MeasureOrientation KDChart::Measure::referenceOrientation | ( | ) | const |
Definition at line 107 of file KDChartMeasure.h.
References KDGantt::operator==().
Referenced by operator<<(), operator=(), and operator==().
void KDChart::Measure::setAbsoluteValue | ( | qreal | val | ) |
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( KDChartEnums::MeasureCalculationModeAbsolute );
Definition at line 89 of file KDChartMeasure.h.
References KDChartEnums::MeasureCalculationModeAbsolute.
void KDChart::Measure::setCalculationMode | ( | KDChartEnums::MeasureCalculationMode | mode | ) |
Definition at line 64 of file KDChartMeasure.h.
Referenced by KDChart::HeaderFooter::setParent(), and KDChart::AbstractAxis::~AbstractAxis().
void KDChart::Measure::setReferenceArea | ( | const QObject * | area | ) |
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget.
Definition at line 99 of file KDChartMeasure.h.
void KDChart::Measure::setReferenceOrientation | ( | KDChartEnums::MeasureOrientation | orientation | ) |
Definition at line 106 of file KDChartMeasure.h.
void KDChart::Measure::setRelativeMode | ( | const QObject * | area, |
KDChartEnums::MeasureOrientation | orientation | ||
) |
The reference area must either be derived from AbstractArea or from QWidget, so it can also be derived from AbstractAreaWidget.
Definition at line 71 of file KDChartMeasure.h.
References KDChartEnums::MeasureCalculationModeRelative.
Referenced by KDChart::Chart::addHeaderFooter(), KDChart::Chart::addLegend(), and KDChart::HeaderFooter::setParent().
void KDChart::Measure::setValue | ( | qreal | val | ) |
Definition at line 61 of file KDChartMeasure.h.
Referenced by KDChart::HeaderFooter::setParent(), KDChart::CartesianAxis::titleTextAttributes(), and KDChart::AbstractAxis::~AbstractAxis().
const QSizeF KDChart::Measure::sizeOfArea | ( | const QObject * | area | ) | const |
Definition at line 144 of file KDChartMeasure.cpp.
References KDChart::GlobalMeasureScaling::currentFactors(), KDChart::GlobalMeasureScaling::instance(), KDChartEnums::MeasureCalculationModeAbsolute, and KDChart::CartesianCoordinatePlane::visibleDiagramArea().
Referenced by calculatedValue().
qreal KDChart::Measure::value | ( | ) | const |
Definition at line 62 of file KDChartMeasure.h.
Referenced by calculatedValue(), operator<<(), operator=(), operator==(), and rotatedRect().