13 #include <wx/wxfreechartdefs.h>
15 #include <wx/refobject.h>
16 #include <wx/observable.h>
19 #include <wx/areadraw.h>
21 #include <wx/axis/axis.h>
25 class WXDLLIMPEXP_FREECHART
Chart;
43 virtual void ChartChanged(
Chart *chart) = 0;
49 virtual void ChartScrollsChanged(
Chart *chart) = 0;
63 Chart(
Plot *plot,
const wxString &title = wxEmptyString,
const wxColour &bgColor = wxColour(220, 220, 220));
65 Chart(
Plot *plot,
Header* header = NULL,
Footer* footer = NULL,
const wxColour &bgColor = wxColour(220, 220, 220));
83 void Draw(wxDC &dc, wxRect &rc);
91 wxREPLACE(m_background, background);
109 SetHeader(
new Header(title));
112 void SetHeader(
Header* header)
114 wxREPLACE(m_header, header);
118 void SetFooter(
Footer* footer)
120 wxREPLACE(m_footer, footer);
124 void SetMargin(wxCoord margin)
135 void SetScrolledAxis(
Axis *axis);
137 Axis *GetHorizScrolledAxis();
139 Axis *GetVertScrolledAxis();
159 void Init(
Plot* plot,
Header* header = NULL,
Footer* footer = NULL,
const wxColour &bgColor = wxColour(220, 220, 220));
169 Axis *m_horizScrolledAxis;
170 Axis *m_vertScrolledAxis;
174 FIRE_WITH_THIS(ChartChanged);
175 FIRE_WITH_THIS(ChartScrollsChanged);
Definition: chartpanel.h:51
void SetTitle(wxString title)
Definition: chart.h:107
virtual void PlotNeedRedraw(Plot *_plot)=0
Definition: areadraw.h:22
Definition: observable.h:14
void SetBackground(AreaDraw *background)
Definition: chart.h:89
virtual void AxisChanged(Axis *axis)=0
virtual void BoundsChanged(Axis *axis)=0
Plot * GetPlot()
Definition: chart.h:73