wxFreeChart
barplot.h
1 // Name: barplot.h
3 // Purpose: bar 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 BARPLOT_H_
11 #define BARPLOT_H_
12 
13 //#include <wx/axisplot.h>
14 #include <wx/xy/xyplot.h>
15 
16 #include <wx/category/categorydataset.h>
17 
22 class WXDLLIMPEXP_FREECHART BarPlot : public XYPlot
23 {
24 public:
25  BarPlot();
26  virtual ~BarPlot();
27 
28 protected:
29  virtual bool AcceptAxis(Axis *axis);
30 
31  virtual bool AcceptDataset(Dataset *dataset);
32 
33  virtual void DrawDatasets(wxDC &dc, wxRect rc);
34 };
35 
36 #endif /*BARPLOT_H_*/
virtual bool AcceptAxis(Axis *axis)
Checks whether axis is acceptable with this plot.
virtual void DrawDatasets(wxDC &dc, wxRect rc)
Called to draw all datasets.
Base class for all axes.
Definition: axis.h:39
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.
Plot for displaying histograms with values at one axis and category names at other.
Definition: barplot.h:22