Measure is used to specify all relative and/or absolute measures 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 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 |
Measure & | operator= (const Measure &) |
bool | operator== (const Measure &) const |
const QObject * | referenceArea () 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 |
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.
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.
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 |
Definition at line 82 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 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==().
Definition at line 69 of file KDChartMeasure.cpp.
References calculationMode(), referenceArea(), referenceOrientation(), and value().
bool KDChart::Measure::operator== | ( | const Measure & | r | ) | const |
Definition at line 181 of file KDChartMeasure.cpp.
References calculationMode(), referenceArea(), referenceOrientation(), and value().
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 |
Definition at line 145 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 61 of file KDChartMeasure.h.
Referenced by calculatedValue(), operator<<(), operator=(), and operator==().