Plot Class Reference

#include <plot.h>

Inheritance diagram for Plot:

Inheritance graph
[legend]
Collaboration diagram for Plot:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void Draw (wxDC &dc, wxRect rc)
virtual void DrawNoDataMessage (wxDC &dc, wxRect rc)
void SetBackground (AreaDraw *background)
void SetTextNoData (const wxString &textNoData)

Protected Member Functions

virtual bool HasData ()=0
virtual void DrawData (wxDC &dc, wxRect rc)=0
 FIRE_WITH_THIS (PlotNeedRedraw)


Detailed Description

Base class for all plots.

Member Function Documentation

virtual void Plot::Draw ( wxDC &  dc,
wxRect  rc 
) [virtual]

Draws plot

Parameters:
dc device context
rc rectangle where to draw

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

Perform data rendering. Must be overriden by derivative classes.

Parameters:
dc device context
rc rectangle where to draw

Implemented in MultiPlot, and PiePlot.

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

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

Parameters:
dc device context
rc rectangle where to draw

virtual bool Plot::HasData (  )  [protected, pure virtual]

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

Returns:
true if plot has data, false overwise

Implemented in MultiPlot, and PiePlot.

void Plot::SetBackground ( AreaDraw background  )  [inline]

Sets plot background.

Parameters:
background new background for plot

void Plot::SetTextNoData ( const wxString &  textNoData  )  [inline]

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

Parameters:
textNoData text message drawn, when plot has no data to draw


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

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