00001
00002
00003
00004
00005
00006
00007
00009
00010 #ifndef RENDERER_H_
00011 #define RENDERER_H_
00012
00013 #include <wx/wxfreechartdefs.h>
00014 #include <wx/drawobject.h>
00015 #include <wx/refobject.h>
00016 #include <wx/art.h>
00017
00021 class WXDLLIMPEXP_FREECHART Renderer : public wxObject, public DrawObject, public RefObject
00022 {
00023 DECLARE_CLASS(Renderer)
00024 public:
00025 Renderer();
00026
00027 virtual ~Renderer();
00028
00034 virtual void SetSerieColour(size_t serie, wxColour *color);
00035
00040 virtual wxColour GetSerieColour(size_t serie);
00041
00047 virtual void SetSerieSymbol(size_t serie, Symbol *symbol);
00048
00053 virtual Symbol *GetSerieSymbol(size_t serie);
00054
00061 virtual void DrawLegendSymbol(wxDC &dc, wxRect rcSymbol, size_t serie);
00062
00063 private:
00064 ColorMap m_serieColours;
00065 SymbolMap m_serieSymbols;
00066 };
00067
00068 #endif