Chart Class Reference

#include <chart.h>

Inheritance diagram for Chart:

Inheritance graph
[legend]
Collaboration diagram for Chart:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Chart (Plot *plot, const wxString &title=wxEmptyString)
PlotGetPlot ()
void Draw (wxDC &dc, wxRect &rc)
void SetBackground (AreaDraw *background)
wxRect CalcPlotRect (wxDC &dc, wxRect rc)
void SetTitle (wxString title)
const wxString & GetTitle ()
void SetTitleFont (wxFont font)
void SetMargin (wxCoord margin)
void SetScrolledAxis (Axis *axis)
AxisGetHorizScrolledAxis ()
AxisGetVertScrolledAxis ()
virtual void PlotNeedRedraw (Plot *_plot)
virtual void AxisChanged (Axis *axis)
virtual void BoundsChanged (Axis *axis)


Detailed Description

Chart. Contains plot, title and chart attributes.

Constructor & Destructor Documentation

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

Constructs new chart.

Parameters:
plot plot
title chart title (empty string - no title)


Member Function Documentation

virtual void Chart::AxisChanged ( Axis axis  )  [virtual]

Called when axis is changed.

Parameters:
axis changed axis

Implements AxisObserver.

virtual void Chart::BoundsChanged ( Axis axis  )  [virtual]

Called when axis bounds are changed.

Parameters:
axis axis that bounds are changed

Implements AxisObserver.

wxRect Chart::CalcPlotRect ( wxDC &  dc,
wxRect  rc 
)

Calcalate plot area rectangle.

Parameters:
dc device context
rc entire chart rectangle
Returns:
plot area rectangle

void Chart::Draw ( wxDC &  dc,
wxRect &  rc 
)

Draws chart.

Parameters:
dc device context
rc rectangle where to draw chart

const wxString& Chart::GetTitle (  )  [inline]

Returns chart title.

Returns:
chart title string

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

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

Parameters:
_plot plot

Implements PlotObserver.

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

Sets chart background.

Parameters:
background chart background

void Chart::SetTitle ( wxString  title  )  [inline]

Sets chart title.

Parameters:
_title chart title

void Chart::SetTitleFont ( wxFont  font  )  [inline]

Sets font for chart title.

Parameters:
_font font for chart title


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

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