Version: 0.6.0
ohlcbarrenderer.h
1 // Name: ohlcbarrenderer.h
3 // Purpose: OHLC bar renderer declarations
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 OHLCBARRENDERER_H_
11 #define OHLCBARRENDERER_H_
12 
13 #include <wx/ohlc/ohlcrenderer.h>
14 
18 class WXDLLIMPEXP_FREECHART OHLCBarRenderer : public OHLCRenderer
19 {
20 public:
22  virtual ~OHLCBarRenderer();
23 
24  virtual void DrawItem(wxDC &dc, wxCoord x, wxCoord open, wxCoord high, wxCoord low, wxCoord close);
25 
30  void SetBarPen(wxPen barPen)
31  {
32  m_barPen = barPen;
33  FireNeedRedraw();
34  }
35 
40  const wxPen &GetBarPen()
41  {
42  return m_barPen;
43  }
44 
45 private:
46  wxPen m_barPen;
47 };
48 
49 #endif /*OHLCBARRENDERER_H_*/
void SetBarPen(wxPen barPen)
Definition: ohlcbarrenderer.h:30
Definition: ohlcrenderer.h:28
const wxPen & GetBarPen()
Definition: ohlcbarrenderer.h:40
Definition: ohlcbarrenderer.h:18
virtual void DrawItem(wxDC &dc, wxCoord x, wxCoord open, wxCoord high, wxCoord low, wxCoord close)=0