00001
00002
00003
00004
00005
00006
00007
00009
00010 #ifndef OHLCBARRENDERER_H_
00011 #define OHLCBARRENDERER_H_
00012
00013 #include <wx/ohlc/ohlcrenderer.h>
00014
00018 class WXDLLIMPEXP_FREECHART OHLCBarRenderer : public OHLCRenderer
00019 {
00020 public:
00021 OHLCBarRenderer();
00022 virtual ~OHLCBarRenderer();
00023
00024 virtual void DrawItem(wxDC &dc, wxCoord x, wxCoord open, wxCoord high, wxCoord low, wxCoord close);
00025
00030 void SetBarPen(wxPen barPen)
00031 {
00032 m_barPen = barPen;
00033 FireNeedRedraw();
00034 }
00035
00040 const wxPen &GetBarPen()
00041 {
00042 return m_barPen;
00043 }
00044
00045 private:
00046 wxPen m_barPen;
00047 };
00048
00049 #endif