KDChart::LeveyJenningsGridAttributes Class Reference

#include <KDChartLeveyJenningsGridAttributes.h>

List of all members.


Detailed Description

A set of attributes controlling the appearance of grids.

Definition at line 44 of file KDChartLeveyJenningsGridAttributes.h.


Public Types

enum  GridType {
  Expected,
  Calculated
}
enum  Range {
  NormalRange,
  CriticalRange,
  OutOfRange
}

Public Member Functions

QPen gridPen (GridType type) const
bool isGridVisible (GridType type) const
 LeveyJenningsGridAttributes (const LeveyJenningsGridAttributes &)
 LeveyJenningsGridAttributes ()
bool operator!= (const LeveyJenningsGridAttributes &other) const
LeveyJenningsGridAttributesoperator= (const LeveyJenningsGridAttributes &)
bool operator== (const LeveyJenningsGridAttributes &) const
QBrush rangeBrush (Range range) const
void setGridPen (GridType type, const QPen &pen)
void setGridVisible (GridType type, bool visible)
void setRangeBrush (Range range, const QBrush &brush)
 ~LeveyJenningsGridAttributes ()

Member Enumeration Documentation

enum KDChart::LeveyJenningsGridAttributes::GridType

Enumerator:
Expected 
Calculated 

Definition at line 53 of file KDChartLeveyJenningsGridAttributes.h.

00054     {
00055         Expected,
00056         Calculated
00057     };

enum KDChart::LeveyJenningsGridAttributes::Range

Enumerator:
NormalRange 
CriticalRange 
OutOfRange 

Definition at line 59 of file KDChartLeveyJenningsGridAttributes.h.

00060     {
00061         NormalRange,
00062         CriticalRange,
00063         OutOfRange
00064     };


Constructor & Destructor Documentation

LeveyJenningsGridAttributes::LeveyJenningsGridAttributes (  ) 

Definition at line 64 of file KDChartLeveyJenningsGridAttributes.cpp.

00065     : _d( new Private() )
00066 {
00067     // this bloc left empty intentionally
00068 }

LeveyJenningsGridAttributes::LeveyJenningsGridAttributes ( const LeveyJenningsGridAttributes r  ) 

Definition at line 70 of file KDChartLeveyJenningsGridAttributes.cpp.

00071     : _d( new Private( *r.d ) )
00072 {
00073 }

LeveyJenningsGridAttributes::~LeveyJenningsGridAttributes (  ) 

Definition at line 85 of file KDChartLeveyJenningsGridAttributes.cpp.

00086 {
00087     delete _d; _d = 0;
00088 }


Member Function Documentation

QPen LeveyJenningsGridAttributes::gridPen ( GridType  type  )  const

Definition at line 126 of file KDChartLeveyJenningsGridAttributes.cpp.

References d.

Referenced by operator==().

00127 {
00128     return d->pens[ type ];
00129 }

bool LeveyJenningsGridAttributes::isGridVisible ( GridType  type  )  const

Definition at line 115 of file KDChartLeveyJenningsGridAttributes.cpp.

References d.

Referenced by operator==().

00116 {
00117     return d->visible[ type ];
00118 }

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

Definition at line 76 of file KDChartLeveyJenningsGridAttributes.h.

References KDGantt::operator==().

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

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

Definition at line 75 of file KDChartLeveyJenningsGridAttributes.cpp.

References d.

00076 {
00077     if( this == &r )
00078         return *this;
00079 
00080     *d = *r.d;
00081 
00082     return *this;
00083 }

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

Definition at line 91 of file KDChartLeveyJenningsGridAttributes.cpp.

References Calculated, Expected, gridPen(), and isGridVisible().

00092 {
00093     return  isGridVisible( Expected ) == r.isGridVisible( Expected ) &&
00094             isGridVisible( Calculated ) == r.isGridVisible( Calculated ) &&
00095             gridPen( Expected ) == r.gridPen( Expected ) &&
00096             gridPen( Calculated ) == r.gridPen( Calculated );
00097 }

QBrush LeveyJenningsGridAttributes::rangeBrush ( Range  range  )  const

Definition at line 104 of file KDChartLeveyJenningsGridAttributes.cpp.

References d.

00105 {
00106     return d->rangeBrushes[ range ];
00107 }

void LeveyJenningsGridAttributes::setGridPen ( GridType  type,
const QPen &  pen 
)

Definition at line 120 of file KDChartLeveyJenningsGridAttributes.cpp.

References d.

00121 {
00122     d->pens[ type ] = pen;
00123     d->pens[ type ].setCapStyle( Qt::FlatCap );
00124 }

void LeveyJenningsGridAttributes::setGridVisible ( GridType  type,
bool  visible 
)

Definition at line 110 of file KDChartLeveyJenningsGridAttributes.cpp.

References d.

00111 {
00112     d->visible[ type ] = visible;
00113 }

void LeveyJenningsGridAttributes::setRangeBrush ( Range  range,
const QBrush &  brush 
)

Definition at line 99 of file KDChartLeveyJenningsGridAttributes.cpp.

References d.

00100 {
00101     d->rangeBrushes[ range ] = brush;
00102 }


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