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.
36 lines
712 B
C++
36 lines
712 B
C++
#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__
|