KChart::PieAttributes

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.

Constructor & Destructor Documentation

◆ PieAttributes() [1/2]

PieAttributes::PieAttributes ( )

Definition at line 30 of file KChartPieAttributes.cpp.

◆ PieAttributes() [2/2]

PieAttributes::PieAttributes ( const PieAttributes & r)

Definition at line 35 of file KChartPieAttributes.cpp.

◆ ~PieAttributes()

PieAttributes::~PieAttributes ( )

Definition at line 50 of file KChartPieAttributes.cpp.

Member Function Documentation

◆ explode()

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

Definition at line 75 of file KChartPieAttributes.cpp.

◆ explodeFactor()

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

Definition at line 85 of file KChartPieAttributes.cpp.

◆ gapFactor()

qreal PieAttributes::gapFactor ( bool circular) const

Definition at line 98 of file KChartPieAttributes.cpp.

◆ operator!=()

bool KChart::PieAttributes::operator!= ( const PieAttributes & other) const
inline

Definition at line 61 of file KChartPieAttributes.h.

◆ operator=()

PieAttributes & PieAttributes::operator= ( const PieAttributes & r)

Definition at line 40 of file KChartPieAttributes.cpp.

◆ operator==()

bool PieAttributes::operator== ( const PieAttributes & r) const

Definition at line 56 of file KChartPieAttributes.cpp.

◆ setExplode()

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 70 of file KChartPieAttributes.cpp.

◆ setExplodeFactor()

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 80 of file KChartPieAttributes.cpp.

◆ setGapFactor()

void PieAttributes::setGapFactor ( bool circular,
qreal factor )

Definition at line 90 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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.