KChart::GlobalMeasureScaling

KChart::GlobalMeasureScaling Class Reference

#include <KChartMeasure.h>

Static Public Member Functions

static const QPair< qreal, qreal > currentFactors ()
 
static GlobalMeasureScalinginstance ()
 
static QPaintDevicepaintDevice ()
 
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 137 of file KChartMeasure.h.

Member Function Documentation

const QPair< qreal, qreal > KChart::GlobalMeasureScaling::currentFactors ( )
static

Return the currently active factors.

Definition at line 212 of file KChartMeasure.cpp.

QPaintDevice * KChart::GlobalMeasureScaling::paintDevice ( )
static

Return the paint device to use for calculating font metrics.

Definition at line 222 of file KChartMeasure.cpp.

void KChart::GlobalMeasureScaling::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 205 of file KChartMeasure.cpp.

void KChart::GlobalMeasureScaling::setFactors ( qreal  factorX,
qreal  factorY 
)
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 200 of file KChartMeasure.cpp.

void KChart::GlobalMeasureScaling::setPaintDevice ( QPaintDevice paintDevice)
static

Set the paint device to use for calculating font metrics.

Definition at line 217 of file KChartMeasure.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Aug 9 2020 22:38:07 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.