#pragma once #ifndef LengendObject_h__ #define LengendObject_h__ #include "drawingobject.h" #include "ChartBaseObject.h" #include "CommonDefine.h" namespace NChart { enum LEGENDTYPE { rectangle=0, circle }; /* @brief ͼÀý */ class AFX_EXT_CLASS CLegendObject : public CDrawingObject { public: CLegendObject(); virtual ~CLegendObject(); virtual void Draw(CXyDC &dc); virtual int Read(CFile& fr, const short& ver); virtual void Write(CFile& fw, const short& ver); virtual void SetFont(GDFLOGFONT font); virtual void Accept(CChartAbstractVisitor *pVisitor); COLORREF m_color; LAYOUTPOS m_ePos; CString m_strLegendName; GDFLOGFONT m_font; }; }//namespace #endif // LengendObject_h__