|
wxFreeChart
|
Multiplot is plot containing one or more plots, called subplots. More...
#include <multiplot.h>


Public Member Functions | |
| MultiPlot (int rows, int cols, wxCoord horizGap, wxCoord vertGap) | |
| Constructs new multiplot. More... | |
| void | AddPlot (Plot *subPlot) |
| Add plot to this multiplot. More... | |
| virtual void | PlotNeedRedraw (Plot *plot) |
Public Member Functions inherited from Plot | |
| virtual void | Draw (ChartDC &cdc, wxRect rc, PlotDrawMode mode=PLOT_DRAW_ALL) |
| Draws plot. More... | |
| virtual void | DrawNoDataMessage (wxDC &dc, wxRect rc) |
| Draws "no data" message. More... | |
| void | SetChartPanel (wxChartPanel *chartPanel) |
| wxChartPanel * | GetChartPanel () |
| Returns chart panel (GUI component, at top level) if it. | |
| void | SetBackground (AreaDraw *background) |
| Sets plot background. More... | |
| void | SetTextNoData (const wxString &textNoData) |
| Sets text message drawn, when plot has no data to draw. More... | |
Protected Member Functions | |
| virtual bool | HasData () |
| Checks whether plot has data. More... | |
| virtual void | DrawData (ChartDC &cdc, wxRect rc) |
| Draw the plot data, i.e. More... | |
| virtual void | DrawBackground (ChartDC &cdc, wxRect rc) |
| Draw the plot's static items (e.g. More... | |
Protected Member Functions inherited from Plot | |
| virtual void | ChartPanelChanged (wxChartPanel *oldPanel, wxChartPanel *newPanel) |
| Called when chart panel is changed. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Plot | |
| AreaDraw * | m_background |
Multiplot is plot containing one or more plots, called subplots.
It arranges subplots to rows and columns.
Definition at line 22 of file multiplot.h.
| MultiPlot::MultiPlot | ( | int | rows, |
| int | cols, | ||
| wxCoord | horizGap, | ||
| wxCoord | vertGap | ||
| ) |
Constructs new multiplot.
| rows | number of rows for subplots |
| cols | number of columns for subplots |
| horizGap | distance between columns |
| vertGap | distance between rows |
|
inline |
Add plot to this multiplot.
| subPlot | plot to be added |
Definition at line 39 of file multiplot.h.
References Plot::DrawData(), and Plot::HasData().
|
inlineprotectedvirtual |
Draw the plot's static items (e.g.
axis, gridlines, legend etc.). Must be overriden by derivative classes.
| dc | device context |
| rc | rectangle where to draw |
Implements Plot.
Definition at line 54 of file multiplot.h.
|
protectedvirtual |
Draw the plot data, i.e.
the lines, bars etc. on top of the background. Must be overriden by derivative classes.
| dc | device context |
| rc | rectangle where to draw |
Implements Plot.
|
protectedvirtual |
Checks whether plot has data.
Must be overriden by derivative classes.
Implements Plot.
1.8.11