Chart Class Reference
#include <chart.h>
List of all members.
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:
-
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:
-
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:
-
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: