Version: 0.6.0

#include <multiplot.h>

Inheritance diagram for MultiPlot:
Collaboration diagram for MultiPlot:

Public Member Functions

 MultiPlot (int rows, int cols, wxCoord horizGap, wxCoord vertGap)
 
void AddPlot (Plot *subPlot)
 
virtual void PlotNeedRedraw (Plot *plot)
 
- Public Member Functions inherited from Plot
virtual void Draw (wxDC &dc, wxRect rc)
 
virtual void DrawNoDataMessage (wxDC &dc, wxRect rc)
 
void SetChartPanel (wxChartPanel *chartPanel)
 
wxChartPanelGetChartPanel ()
 
void SetBackground (AreaDraw *background)
 
void SetTextNoData (const wxString &textNoData)
 
- Public Member Functions inherited from Observable< PlotObserver >
void AddObserver (PlotObserver *_observer)
 
void RemoveObserver (PlotObserver *_observer)
 

Protected Member Functions

virtual bool HasData ()
 
virtual void DrawData (wxDC &dc, wxRect rc)
 
- Protected Member Functions inherited from Plot
virtual void ChartPanelChanged (wxChartPanel *oldPanel, wxChartPanel *newPanel)
 
 FIRE_WITH_THIS (PlotNeedRedraw)
 

Additional Inherited Members

- Public Types inherited from Observable< PlotObserver >
typedef PlotObserver Observer
 
- Public Attributes inherited from Observable< PlotObserver >
std::vector< PlotObserver * >
::iterator 
OIt
 
- Protected Attributes inherited from Observable< PlotObserver >
std::vector< PlotObserver * > observers
 

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
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
void MultiPlot::DrawData ( wxDC &  dc,
wxRect  rc 
)
protectedvirtual

Perform data rendering. Must be overriden by derivative classes.

Parameters
dcdevice context
rcrectangle where to draw

Implements Plot.

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.

void MultiPlot::PlotNeedRedraw ( Plot _plot)
virtual

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

Parameters
_plotplot

Implements PlotObserver.


The documentation for this class was generated from the following files:
  • /home/bishop/work/projects/nextgismanager/include/freechart/wx/multiplot.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/multiplot.cpp