wxFreeChart
ohlcplot.h
1 // Name: ohlcplot.h
3 // Purpose: OHLC plot 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 OHLCPLOT_H_
11 #define OHLCPLOT_H_
12 
13 #include <wx/xy/xyplot.h>
14 #include <wx/ohlc/ohlcdataset.h>
15 
23 class WXDLLIMPEXP_FREECHART OHLCPlot : public XYPlot
24 {
25 public:
26  OHLCPlot();
27  virtual ~OHLCPlot();
28 
29 protected:
30  virtual bool AcceptAxis(Axis *axis);
31 
32  virtual bool AcceptDataset(Dataset *dataset);
33 
34  virtual void DrawDatasets(wxDC &dc, wxRect rc);
35 
42  virtual void DrawOHLCDataset(wxDC &dc, wxRect rc, OHLCDataset *dataset);
43 };
44 
45 #endif /*OHLCPLOT_H_*/
virtual bool AcceptAxis(Axis *axis)
Checks whether axis is acceptable with this plot.
Open-High-Low-Close datasets base class.
Definition: ohlcdataset.h:31
virtual void DrawDatasets(wxDC &dc, wxRect rc)
Called to draw all datasets.
Base class for all axes.
Definition: axis.h:39
Open-High-Low-Close plot.
Definition: ohlcplot.h:23
Base class for all datasets (XYDatasets, XYZDatasets, CategoryDatasets, OHLCDatasets, etc).
Definition: dataset.h:39
An plot for displaying XY data values.
Definition: xyplot.h:22
virtual bool AcceptDataset(Dataset *dataset)
Checks whether dataset is acceptable with this plot.