Version: 0.6.0

#include <plot.h>

Inheritance diagram for Plot:
Collaboration diagram for Plot:

Public Member Functions

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 ()=0
 
virtual void DrawData (wxDC &dc, wxRect rc)=0
 
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

Base class for all plots.

Member Function Documentation

void Plot::ChartPanelChanged ( wxChartPanel oldPanel,
wxChartPanel newPanel 
)
protectedvirtual

Called when chart panel is changed.

Parameters
oldPanelold chart panel
newPanelnew chart panel
void Plot::Draw ( wxDC &  dc,
wxRect  rc 
)
virtual

Draws plot

Parameters
dcdevice context
rcrectangle where to draw

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void Plot::DrawData ( wxDC &  dc,
wxRect  rc 
)
protectedpure virtual

Perform data rendering. Must be overriden by derivative classes.

Parameters
dcdevice context
rcrectangle where to draw

Implemented in PiePlot, and MultiPlot.

Here is the caller graph for this function:

void Plot::DrawNoDataMessage ( wxDC &  dc,
wxRect  rc 
)
virtual

Draws "no data" message. Can be overriden by derivative classes.

Parameters
dcdevice context
rcrectangle where to draw

Here is the caller graph for this function:

wxChartPanel * Plot::GetChartPanel ( )

Returns chart panel (GUI component, at top level) if it

virtual bool Plot::HasData ( )
protectedpure virtual

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

Returns
true if plot has data, false overwise

Implemented in PiePlot, and MultiPlot.

Here is the caller graph for this function:

void Plot::SetBackground ( AreaDraw background)
inline

Sets plot background.

Parameters
backgroundnew background for plot
void Plot::SetTextNoData ( const wxString &  textNoData)
inline

Sets text message drawn, when plot has no data to draw

Parameters
textNoDatatext message drawn, when plot has no data to draw

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