KDChart::NullPaintDevice Class Reference

#include <KDChartNullPaintDevice.h>

Inheritance diagram for KDChart::NullPaintDevice:

Inheritance graph
[legend]
Collaboration diagram for KDChart::NullPaintDevice:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 34 of file KDChartNullPaintDevice.h.


Public Member Functions

int metric (PaintDeviceMetric metric) const
 NullPaintDevice (const QSize &size)
QPaintEnginepaintEngine () const
 ~NullPaintDevice ()

Constructor & Destructor Documentation

KDChart::NullPaintDevice::NullPaintDevice ( const QSize &  size  ) 

Definition at line 37 of file KDChartNullPaintDevice.h.

00037 : m_size(size) { }

KDChart::NullPaintDevice::~NullPaintDevice (  ) 

Definition at line 38 of file KDChartNullPaintDevice.h.

00038 { }


Member Function Documentation

int KDChart::NullPaintDevice::metric ( PaintDeviceMetric  metric  )  const

Definition at line 40 of file KDChartNullPaintDevice.h.

00041         {
00042             switch(metric)
00043             {
00044             case QPaintDevice::PdmWidth:
00045                 return m_size.width();
00046             case QPaintDevice::PdmHeight:
00047                 return m_size.height();
00048             case QPaintDevice::PdmWidthMM:
00049                 return 1;
00050             case QPaintDevice::PdmHeightMM:
00051                 return 1;
00052             case QPaintDevice::PdmNumColors:
00053                 return int((uint)(-1));
00054             case QPaintDevice::PdmDepth:
00055                 return 1;
00056             case QPaintDevice::PdmDpiX:
00057                 return 1;
00058             case QPaintDevice::PdmDpiY:
00059                 return 1;
00060             case QPaintDevice::PdmPhysicalDpiX:
00061                 return 1;
00062             case QPaintDevice::PdmPhysicalDpiY:
00063                 return 1;
00064             }
00065             return 1;
00066         }

QPaintEngine* KDChart::NullPaintDevice::paintEngine (  )  const

Definition at line 68 of file KDChartNullPaintDevice.h.

00069         {
00070             static NullPaintEngine nullPaintEngine;
00071             return &nullPaintEngine;
00072         }


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