wxFreeChart
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  }
34 
39  const wxPen &GetBarPen()
40  {
41  return m_barPen;
42  }
43 
44 private:
45  wxPen m_barPen;
46 };
47 
48 #endif /*OHLCBARRENDERER_H_*/
virtual void DrawItem(wxDC &dc, wxCoord x, wxCoord open, wxCoord high, wxCoord low, wxCoord close)=0
Draws item.
void SetBarPen(wxPen barPen)
Sets pen to draw bars.
OHLC renderer for displaying bars.
const wxPen & GetBarPen()
Return pen to draw bars.
Base class for rendering OHLC data.
Definition: ohlcrenderer.h:30