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

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

Return the currently active factors.

Definition at line 201 of file KChartMeasure.cpp.

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

Return the paint device to use for calculating font metrics.

Definition at line 211 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 194 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 189 of file KChartMeasure.cpp.

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-2021 The KDE developers.
Generated on Mon Sep 20 2021 22:37:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.