KChart::GlobalMeasureScaling

Search for usage in LXR

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 126 of file KChartMeasure.h.

Member Function Documentation

◆ currentFactors()

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

Return the currently active factors.

Definition at line 201 of file KChartMeasure.cpp.

◆ paintDevice()

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

Return the paint device to use for calculating font metrics.

Definition at line 211 of file KChartMeasure.cpp.

◆ resetFactors()

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 194 of file KChartMeasure.cpp.

◆ setFactors()

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 189 of file KChartMeasure.cpp.

◆ setPaintDevice()

void KChart::GlobalMeasureScaling::setPaintDevice ( QPaintDevice paintDevice)
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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Oct 3 2023 03:51:50 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.