wxFreeChart
chartrenderer.h
1 // Name: chartrenderer.h
3 // Purpose: Dataset renderer base class declaration.
4 // Author: Moskvichev Andrey V.
5 // Created: 2008/11/07
6 // Copyright: (c) 2008-2010 Moskvichev Andrey V.
7 // Licence: wxWidgets licence
9 
10 #ifndef RENDERER_H_
11 #define RENDERER_H_
12 
13 #include <wx/wxfreechartdefs.h>
14 #include <wx/drawobject.h>
15 #include <wx/refobject.h>
16 #include <wx/art.h>
17 
21 class WXDLLIMPEXP_FREECHART Renderer : public wxObject, public DrawObject, public RefObject
22 {
23  DECLARE_CLASS(Renderer)
24 public:
25  Renderer();
26 
27  virtual ~Renderer();
28 
34  virtual void SetSerieColour(size_t serie, wxColour *color);
35 
40  virtual wxColour GetSerieColour(size_t serie);
41 
47  virtual void SetSerieSymbol(size_t serie, Symbol *symbol);
48 
53  virtual Symbol *GetSerieSymbol(size_t serie);
54 
61  virtual void DrawLegendSymbol(wxDC &dc, wxRect rcSymbol, size_t serie);
62 
63 private:
64  ColorMap m_serieColours;
65  SymbolMap m_serieSymbols;
66 };
67 
68 #endif /*RENDERER_H_*/
Base class for all renderers.
Definition: chartrenderer.h:21
Object with reference counter.
Definition: refobject.h:8
Base class for objects drawn on chart or perform drawing of another objects (like renderers...
Definition: drawobject.h:22
Symbols base class.
Definition: symbol.h:18