wxFreeChart
xyplot.h
1 // Name: xyplot.h
3 // Purpose: XY 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 XYPLOT_H_
11 #define XYPLOT_H_
12 
13 #include <wx/axisplot.h>
14 #include <wx/axis/numberaxis.h>
15 
16 #include <wx/xy/xydataset.h>
17 #include <wx/xy/xyrenderer.h>
18 
22 class WXDLLIMPEXP_FREECHART XYPlot : public AxisPlot
23 {
24 public:
25  XYPlot();
26  virtual ~XYPlot();
27 
28 protected:
29  //
30  // AxisPlot
31  //
32  virtual bool AcceptAxis(Axis *axis);
33 
34  virtual bool AcceptDataset(Dataset *dataset);
35 
36  virtual void DrawDatasets(wxDC &dc, wxRect rc);
37 
44  void DrawXYDataset(wxDC &dc, wxRect rc, XYDataset *dataset);
45 };
46 
47 #endif /*XYPLOT_H_*/
virtual bool AcceptDataset(Dataset *dataset)=0
Checks whether dataset is acceptable with this plot.
virtual void DrawDatasets(wxDC &dc, wxRect rc)=0
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
Base class for XY datasets.
Definition: xydataset.h:21
Base class for plots that supports axes.
Definition: axisplot.h:56
virtual bool AcceptAxis(Axis *axis)=0
Checks whether axis is acceptable with this plot.