/* $Id: KChartPiePainter.h,v 1.4 1998/06/19 20:02:37 kalle Exp $ */

#ifndef _KCHARTPIEPAINTER_H
#define _KCHARTPIEPAINTER_H

#include "KChartPainter.h"

class KChart;
class QPaintDevice;
class QPainter;

class KChartPiePainter : public KChartPainter
{
public:
  KChartPiePainter( KChart* chart );
  ~KChartPiePainter();

  virtual void paintChart( QPaintDevice* paintdev );
  virtual void drawData( QPainter* painter );
  virtual void drawText( QPainter* painter );
  virtual void drawPie( QPainter* painter );

protected:
  QPoint cartesian( int, int, int, int, int );
  void putLabel( QPainter* painter, int x, int y, const char* label );
  const int _angleoffset = 0;
  bool setupCoords( QPaintDevice* );

  int _xcenter;
  int _ycenter;

private:
};

#endif
