wxFreeChart
Public Member Functions | Protected Member Functions | List of all members
MultiPlot Class Reference

Multiplot is plot containing one or more plots, called subplots. More...

#include <multiplot.h>

Inheritance diagram for MultiPlot:
Inheritance graph
[legend]
Collaboration diagram for MultiPlot:
Collaboration graph
[legend]

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)
 
wxChartPanelGetChartPanel ()
 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
AreaDrawm_background
 

Detailed Description

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.

Constructor & Destructor Documentation

MultiPlot::MultiPlot ( int  rows,
int  cols,
wxCoord  horizGap,
wxCoord  vertGap 
)

Constructs new multiplot.

Parameters
rowsnumber of rows for subplots
colsnumber of columns for subplots
horizGapdistance between columns
vertGapdistance between rows

Member Function Documentation

void MultiPlot::AddPlot ( Plot subPlot)
inline

Add plot to this multiplot.

Parameters
subPlotplot to be added

Definition at line 39 of file multiplot.h.

References Plot::DrawData(), and Plot::HasData().

virtual void MultiPlot::DrawBackground ( ChartDC cdc,
wxRect  rc 
)
inlineprotectedvirtual

Draw the plot's static items (e.g.

axis, gridlines, legend etc.). Must be overriden by derivative classes.

Parameters
dcdevice context
rcrectangle where to draw

Implements Plot.

Definition at line 54 of file multiplot.h.

virtual void MultiPlot::DrawData ( ChartDC cdc,
wxRect  rc 
)
protectedvirtual

Draw the plot data, i.e.

the lines, bars etc. on top of the background. Must be overriden by derivative classes.

Parameters
dcdevice context
rcrectangle where to draw

Implements Plot.

virtual bool MultiPlot::HasData ( )
protectedvirtual

Checks whether plot has data.

Must be overriden by derivative classes.

Returns
true if plot has data, false overwise

Implements Plot.


The documentation for this class was generated from the following file: