KDChart::FrameAttributes Class Reference

#include <KDChartFrameAttributes.h>

List of all members.


Detailed Description

A set of attributes for frames around items.

Definition at line 43 of file KDChartFrameAttributes.h.


Public Member Functions

 FrameAttributes (const FrameAttributes &)
 FrameAttributes ()
bool isVisible () const
bool operator!= (const FrameAttributes &other) const
FrameAttributesoperator= (const FrameAttributes &)
bool operator== (const FrameAttributes &) const
int padding () const
QPen pen () const
void setPadding (int padding)
void setPen (const QPen &pen)
void setVisible (bool visible)
 ~FrameAttributes ()

Constructor & Destructor Documentation

FrameAttributes::FrameAttributes (  ) 

Definition at line 52 of file KDChartFrameAttributes.cpp.

00053     : _d( new Private() )
00054 {
00055 }

FrameAttributes::FrameAttributes ( const FrameAttributes r  ) 

Definition at line 57 of file KDChartFrameAttributes.cpp.

00058     : _d( new Private( *r.d ) )
00059 {
00060 }

FrameAttributes::~FrameAttributes (  ) 

Definition at line 72 of file KDChartFrameAttributes.cpp.

00073 {
00074     delete _d; _d = 0;
00075 }


Member Function Documentation

bool FrameAttributes::isVisible (  )  const

Definition at line 98 of file KDChartFrameAttributes.cpp.

References d.

Referenced by operator<<(), operator==(), and KDChart::AbstractAreaBase::paintFrameAttributes().

00099 {
00100     return d->visible;
00101 }

bool KDChart::FrameAttributes::operator!= ( const FrameAttributes other  )  const

Definition at line 62 of file KDChartFrameAttributes.h.

References KDGantt::operator==().

00062 { return !operator==(other); }

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

Definition at line 62 of file KDChartFrameAttributes.cpp.

References d.

00063 {
00064     if( this == &r )
00065         return *this;
00066 
00067     *d = *r.d;
00068 
00069     return *this;
00070 }

bool FrameAttributes::operator== ( const FrameAttributes r  )  const

Definition at line 78 of file KDChartFrameAttributes.cpp.

References isVisible(), padding(), and pen().

00079 {
00080     /*
00081     qDebug() << "FrameAttributes:" << (isVisible() == r.isVisible())
00082         << (pen() == r.pen())
00083         << (padding() == r.padding()) << "\n";
00084     */
00085     return ( isVisible() == r.isVisible() &&
00086             pen() == r.pen() &&
00087             padding() == r.padding() );
00088 }

int FrameAttributes::padding (  )  const

Definition at line 118 of file KDChartFrameAttributes.cpp.

References d.

Referenced by operator<<(), and operator==().

00119 {
00120     return d->padding;
00121 }

QPen FrameAttributes::pen (  )  const

Definition at line 108 of file KDChartFrameAttributes.cpp.

References d.

Referenced by operator<<(), operator==(), and KDChart::AbstractAreaBase::paintFrameAttributes().

00109 {
00110     return d->pen;
00111 }

void FrameAttributes::setPadding ( int  padding  ) 

Definition at line 113 of file KDChartFrameAttributes.cpp.

References d.

Referenced by KDChart::Chart::Chart().

00114 {
00115     d->padding = padding;
00116 }

void FrameAttributes::setPen ( const QPen &  pen  ) 

Definition at line 103 of file KDChartFrameAttributes.cpp.

References d.

Referenced by KDChart::Chart::Chart().

00104 {
00105     d->pen = pen;
00106 }

void FrameAttributes::setVisible ( bool  visible  ) 

Definition at line 93 of file KDChartFrameAttributes.cpp.

References d.

00094 {
00095     d->visible = visible;
00096 }


The documentation for this class was generated from the following files:
Generated on Thu Mar 4 23:25:53 2010 for KD Chart 2 by  doxygen 1.5.4