13 #include <wx/wxfreechartdefs.h> 14 #include <wx/areadraw.h> 15 #include <wx/chartdc.h> 17 class WXDLLIMPEXP_FREECHART
Plot;
31 class WXDLLIMPEXP_FREECHART
Plot 42 virtual void Draw(
ChartDC &cdc, wxRect rc, PlotDrawMode mode = PLOT_DRAW_ALL);
50 virtual void DrawNoDataMessage(wxDC &dc, wxRect rc);
67 wxREPLACE(m_background, background);
76 m_textNoData = textNoData;
85 virtual bool HasData() = 0;
93 virtual void DrawData(
ChartDC& cdc, wxRect rc) = 0;
101 virtual void DrawBackground(
ChartDC& cdc, wxRect rc) = 0;
113 wxFont m_textNoDataFont;
114 wxString m_textNoData;
Base class for all plots.
ChartPanel is wxWidgets panel for displaying chart.
DC that includes a flag to indicate antialiased drawing should be used where appropriate.
void SetTextNoData(const wxString &textNoData)
Sets text message drawn, when plot has no data to draw.
void SetBackground(AreaDraw *background)
Sets plot background.
Base class for drawing area background.