Search for usage in LXR

KChart::PieAttributes Class Reference

#include <KChartPieAttributes.h>

Public Member Functions

 PieAttributes (const PieAttributes &)
bool explode () const
qreal explodeFactor () const
qreal gapFactor (bool circular) const
bool operator!= (const PieAttributes &other) const
PieAttributesoperator= (const PieAttributes &)
bool operator== (const PieAttributes &) const
void setExplode (bool explode)
void setExplodeFactor (qreal factor)
void setGapFactor (bool circular, qreal factor)

Detailed Description

A set of attributes controlling the appearance of pie charts.

Definition at line 21 of file KChartPieAttributes.h.

Member Function Documentation

bool PieAttributes::explode ( ) const
whether the respective pie piece(s) will be exploded.

Definition at line 75 of file KChartPieAttributes.cpp.

qreal PieAttributes::explodeFactor ( ) const
the explode factor set by setExplode or by setExplodeFactor.

Definition at line 85 of file KChartPieAttributes.cpp.

void PieAttributes::setExplode ( bool  explode)

Enable or disable exploding the respective pie piece(s).

The default explode factor is 10 percent; use setExplodeFactor to specify a different factor.

This is a convenience function: Calling setExplode( true ) does the same as calling setExplodeFactor( 0.1 ), and calling setExplode( false ) does the same as calling setExplodeFactor( 0.0 ).
See also

Definition at line 70 of file KChartPieAttributes.cpp.

void PieAttributes::setExplodeFactor ( qreal  factor)

Set the explode factor.

The explode factor is a qreal between 0 and 1, and is interpreted as a percentage of the total available radius of the pie.

See also

Definition at line 80 of file KChartPieAttributes.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.