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.

Constructor & Destructor Documentation

◆ GlobalMeasureScaling()

KChart::GlobalMeasureScaling::GlobalMeasureScaling ( )

Definition at line 172 of file KChartMeasure.cpp.

◆ ~GlobalMeasureScaling()

KChart::GlobalMeasureScaling::~GlobalMeasureScaling ( )

Definition at line 178 of file KChartMeasure.cpp.

Member Function Documentation

◆ currentFactors()

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

Return the currently active factors.

Definition at line 201 of file KChartMeasure.cpp.

◆ instance()

GlobalMeasureScaling * KChart::GlobalMeasureScaling::instance ( )

Definition at line 183 of file KChartMeasure.cpp.

◆ paintDevice()

QPaintDevice * KChart::GlobalMeasureScaling::paintDevice ( )

Return the paint device to use for calculating font metrics.

Definition at line 211 of file KChartMeasure.cpp.

◆ resetFactors()

void KChart::GlobalMeasureScaling::resetFactors ( )

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 )

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)

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-2024 The KDE developers.
Generated on Fri May 17 2024 11:52:19 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.