wxFreeChart
Public Member Functions | List of all members
Chart Class Reference

Chart. More...

#include <chart.h>

Public Member Functions

 Chart (Plot *plot, const wxString &title=wxEmptyString)
 Constructs new chart. More...
 
 Chart (Plot *plot, Header *header=NULL, Footer *footer=NULL)
 
PlotGetPlot ()
 Returns plot associated with chart. More...
 
void Draw (ChartDC &dc, wxRect &rc, bool antialias=false)
 Draws chart. More...
 
void SetBackground (AreaDraw *background)
 Sets chart background. More...
 
AreaDrawGetBackground ()
 
void SetTitle (wxString title)
 Calcalate plot area rectangle. More...
 
void SetHeader (Header *header)
 
void SetFooter (Footer *footer)
 
void SetMargin (wxCoord margin)
 
void SetScrolledAxis (Axis *axis)
 
AxisGetHorizScrolledAxis ()
 
AxisGetVertScrolledAxis ()
 
wxChartPanelGetChartPanel ()
 
void SetChartPanel (wxChartPanel *chartPanel)
 
virtual void PlotNeedRedraw (Plot *plot)
 
virtual void AxisChanged (Axis *axis)
 
virtual void BoundsChanged (Axis *axis)
 

Detailed Description

Chart.

Contains plot, title and chart attributes.

Definition at line 30 of file chart.h.

Constructor & Destructor Documentation

Chart::Chart ( Plot plot,
const wxString &  title = wxEmptyString 
)

Constructs new chart.

Parameters
plotplot
titlechart title (empty string - no title)

Member Function Documentation

void Chart::Draw ( ChartDC dc,
wxRect &  rc,
bool  antialias = false 
)

Draws chart.

Parameters
dcdevice context
rcrectangle where to draw chart
Plot* Chart::GetPlot ( )
inline

Returns plot associated with chart.

Returns
plot

Definition at line 48 of file chart.h.

void Chart::SetBackground ( AreaDraw background)
inline

Sets chart background.

Parameters
backgroundchart background

Definition at line 64 of file chart.h.

void Chart::SetTitle ( wxString  title)
inline

Calcalate plot area rectangle.

Parameters
dcdevice context
rcentire chart rectangle
Returns
plot area rectangle Sets chart title.
Parameters
titlechart title

Definition at line 86 of file chart.h.


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