KChart::PieAttributes

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 32 of file KChartPieAttributes.h.

Member Function Documentation

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

Definition at line 86 of file KChartPieAttributes.cpp.

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

Definition at line 96 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.

Note
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
setExplodeFactor

Definition at line 81 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
setExplode

Definition at line 91 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-2020 The KDE developers.
Generated on Sun Aug 9 2020 22:38:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.