A set of attributes controlling the appearance of pie charts. More...
#include <KDChartPieAttributes.h>
Public Member Functions | |
bool | explode () const |
qreal | explodeFactor () const |
qreal | gapFactor (bool circular) const |
bool | operator!= (const PieAttributes &other) const |
PieAttributes & | operator= (const PieAttributes &) |
bool | operator== (const PieAttributes &) const |
PieAttributes (const PieAttributes &) | |
PieAttributes () | |
void | setExplode (bool explode) |
Enable or disable exploding the respective pie piece(s). | |
void | setExplodeFactor (qreal factor) |
Set the explode factor. | |
void | setGapFactor (bool circular, qreal factor) |
~PieAttributes () |
A set of attributes controlling the appearance of pie charts.
Definition at line 35 of file KDChartPieAttributes.h.
PieAttributes::PieAttributes | ( | ) |
Definition at line 44 of file KDChartPieAttributes.cpp.
PieAttributes::PieAttributes | ( | const PieAttributes & | r | ) |
Definition at line 49 of file KDChartPieAttributes.cpp.
PieAttributes::~PieAttributes | ( | ) |
Definition at line 64 of file KDChartPieAttributes.cpp.
bool PieAttributes::explode | ( | ) | const |
Definition at line 89 of file KDChartPieAttributes.cpp.
References d.
Referenced by KDChart::RingDiagram::paint().
qreal PieAttributes::explodeFactor | ( | ) | const |
Definition at line 99 of file KDChartPieAttributes.cpp.
References d.
Referenced by KDChart::RingDiagram::calculateDataBoundaries(), KDChart::PieDiagram::calculateDataBoundaries(), operator<<(), operator==(), KDChart::RingDiagram::paint(), and KDChart::PieDiagram::paintInternal().
qreal PieAttributes::gapFactor | ( | bool | circular | ) | const |
Definition at line 112 of file KDChartPieAttributes.cpp.
References d.
Referenced by operator==(), and KDChart::RingDiagram::paint().
bool KDChart::PieAttributes::operator!= | ( | const PieAttributes & | other | ) | const |
Definition at line 75 of file KDChartPieAttributes.h.
References KDGantt::operator==().
PieAttributes & PieAttributes::operator= | ( | const PieAttributes & | r | ) |
Definition at line 54 of file KDChartPieAttributes.cpp.
References d.
bool PieAttributes::operator== | ( | const PieAttributes & | r | ) | const |
Definition at line 70 of file KDChartPieAttributes.cpp.
References explodeFactor(), and gapFactor().
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.
Definition at line 84 of file KDChartPieAttributes.cpp.
References d.
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.
Definition at line 94 of file KDChartPieAttributes.cpp.
References d.
void PieAttributes::setGapFactor | ( | bool | circular, | |
qreal | factor | |||
) |
Definition at line 104 of file KDChartPieAttributes.cpp.
References d.