00001
00002
00003
00004
00005
00006
00007
00009
00010 #ifndef OHLCCANDDLESTICKRENDERER_H_
00011 #define OHLCCANDDLESTICKRENDERER_H_
00012
00013 #include <wx/ohlc/ohlcrenderer.h>
00014
00018 class WXDLLIMPEXP_FREECHART OHLCCandlestickRenderer : public OHLCRenderer
00019 {
00020 public:
00021 OHLCCandlestickRenderer();
00022 virtual ~OHLCCandlestickRenderer();
00023
00024 virtual void DrawItem(wxDC &dc, wxCoord x, wxCoord open, wxCoord high, wxCoord low, wxCoord close);
00025
00030 void SetOutlinePen(wxPen outlinePen)
00031 {
00032 m_outlinePen = outlinePen;
00033 FireNeedRedraw();
00034 }
00035
00040 const wxPen &GetOutlinePen()
00041 {
00042 return m_outlinePen;
00043 }
00044
00049 void SetLowerBrush(wxBrush lowerBrush)
00050 {
00051 m_lowerBrush = lowerBrush;
00052 FireNeedRedraw();
00053 }
00054
00059 const wxBrush &GetLowerBrush()
00060 {
00061 return m_lowerBrush;
00062 }
00063
00068 void SetHigherBrush(wxBrush higherBrush)
00069 {
00070 m_higherBrush = higherBrush;
00071 FireNeedRedraw();
00072 }
00073
00078 const wxBrush &GetHigherBrush()
00079 {
00080 return m_higherBrush;
00081 }
00082
00083 private:
00084 wxCoord m_candleRadius;
00085
00086 wxPen m_outlinePen;
00087 wxBrush m_lowerBrush;
00088 wxBrush m_higherBrush;
00089 };
00090
00091 #endif