You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
941 B
C++

#pragma once
#ifndef ChartConcrete_h__
#define ChartConcrete_h__
#include "chartbaseobject.h"
namespace NChart
{
class AFX_EXT_CLASS CChartConcrete :
public CChartBaseObject
{
public:
CChartConcrete(CChartObjectProxy * pProxyObject=NULL);
virtual ~CChartConcrete(void);
void SetProxy(CChartObjectProxy * pProxy);
CChartObjectProxy * GetProxy();
virtual void Serialize(CArchive& ar, const short &ver);
virtual int Read(CFile& fr, const short& ver);
virtual void Write(CFile& fw, const short& ver);
protected:
CChartObjectProxy * m_pProxyObject;
void NoAxisLayout();
void StandardNoAxisLayout();
void GetSquareGraphic(CRect8 & rect);
void AutoLayout();
void StandardLayout();
void CalcCoordinateRect(double distance);
void DrawBackground(CXyDC &dc);
void DrawTitle(CXyDC &dc);
void DrawGridLine(CXyDC &dc);
void DrawVGirdLine(CXyDC &dc);
void DrawHGirdLine(CXyDC &dc);
};
}//namespace
#endif // ChartConcrete_h__