MultiPlot Class Reference

#include <multiplot.h>

Inheritance diagram for MultiPlot:

Inheritance graph
[legend]
Collaboration diagram for MultiPlot:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 MultiPlot (int rows, int cols, wxCoord horizGap, wxCoord vertGap)
void AddPlot (Plot *subPlot)
virtual void PlotNeedRedraw (Plot *plot)

Protected Member Functions

virtual bool HasData ()
virtual void DrawData (wxDC &dc, wxRect rc)


Detailed Description

Multiplot is plot containing one or more plots, called subplots. It arranges subplots to rows and columns.

Constructor & Destructor Documentation

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

Constructs new multiplot.

Parameters:
rows number of rows for subplots
cols number of columns for subplots
horizGap distance between columns
vertGap distance between rows


Member Function Documentation

void MultiPlot::AddPlot ( Plot subPlot  )  [inline]

Add plot to this multiplot.

Parameters:
subPlot plot to be added

References Observable< O >::AddObserver().

virtual void MultiPlot::DrawData ( wxDC &  dc,
wxRect  rc 
) [protected, virtual]

Perform data rendering. Must be overriden by derivative classes.

Parameters:
dc device context
rc rectangle where to draw

Implements Plot.

virtual bool MultiPlot::HasData (  )  [protected, virtual]

Checks whether plot has data. Must be overriden by derivative classes.

Returns:
true if plot has data, false overwise

Implements Plot.

virtual void MultiPlot::PlotNeedRedraw ( Plot _plot  )  [virtual]

Called when plot has been changed and need to be redrawn.

Parameters:
_plot plot

Implements PlotObserver.


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

Generated on Mon Feb 15 21:32:27 2010 for wxFreeChart by  doxygen 1.5.8