KChart::GlobalMeasureScaling
#include <KChartMeasure.h>
Static Public Member Functions | |
static const QPair< qreal, qreal > | currentFactors () |
static GlobalMeasureScaling * | instance () |
static QPaintDevice * | paintDevice () |
static void | resetFactors () |
static void | setFactors (qreal factorX, qreal factorY) |
static void | setPaintDevice (QPaintDevice *paintDevice) |
Detailed Description
Auxiliary class used by the KChart::Measure and KChart::Chart class.
Normally there should be no need to call any of these methods yourself.
They are used by KChart::Chart::paint( QPainter*, const QRect& ) to adjust all of the relative Measures according to the target rectangle's size.
Default factors are (1.0, 1.0)
Definition at line 126 of file KChartMeasure.h.
Constructor & Destructor Documentation
◆ GlobalMeasureScaling()
KChart::GlobalMeasureScaling::GlobalMeasureScaling | ( | ) |
Definition at line 172 of file KChartMeasure.cpp.
◆ ~GlobalMeasureScaling()
|
virtual |
Definition at line 178 of file KChartMeasure.cpp.
Member Function Documentation
◆ currentFactors()
|
static |
Return the currently active factors.
Definition at line 201 of file KChartMeasure.cpp.
◆ instance()
|
static |
Definition at line 183 of file KChartMeasure.cpp.
◆ paintDevice()
|
static |
Return the paint device to use for calculating font metrics.
Definition at line 211 of file KChartMeasure.cpp.
◆ resetFactors()
|
static |
Restore factors to the values before the previous call to setFactors.
The current values are popped off a stack internally.
Definition at line 194 of file KChartMeasure.cpp.
◆ setFactors()
|
static |
Set new factors to be used by all Measure objects from now on.
Previous values will be saved on a stack internally.
Definition at line 189 of file KChartMeasure.cpp.
◆ setPaintDevice()
|
static |
Set the paint device to use for calculating font metrics.
Definition at line 206 of file KChartMeasure.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 12:04:17 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.