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

ChartPanel is wxWidgets panel for displaying chart. More...

#include <chartpanel.h>

Inheritance diagram for wxChartPanel:
Inheritance graph
[legend]
Collaboration diagram for wxChartPanel:
Collaboration graph
[legend]

Public Member Functions

 wxChartPanel (wxWindow *parent, wxWindowID=wxID_ANY, Chart *chart=NULL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 
void SetChart (Chart *chart)
 Sets chart. More...
 
ChartGetChart ()
 Returns chart. More...
 
void SetMode (ChartPanelMode *mode)
 Sets chart panel mode, eg. More...
 
void SetAntialias (bool antialias)
 Turn antialiasing on/off. More...
 
bool GetAntialias ()
 Checks whether antialiasing is enabled. More...
 
wxBitmap CopyBackbuffer ()
 Returns back buffer copy as wxBitmap. More...
 
virtual void ChartChanged (Chart *chart)
 
virtual void ChartScrollsChanged (Chart *chart)
 
void RedrawBackBitmap ()
 

Detailed Description

ChartPanel is wxWidgets panel for displaying chart.

Definition at line 34 of file chartpanel.h.

Member Function Documentation

wxBitmap wxChartPanel::CopyBackbuffer ( )

Returns back buffer copy as wxBitmap.

Can be used to save chart image to file.

Returns
back buffer copy as wxBitmap
bool wxChartPanel::GetAntialias ( )

Checks whether antialiasing is enabled.

Returns
true if antialiasing is enabled
Chart* wxChartPanel::GetChart ( )

Returns chart.

Returns
chart
void wxChartPanel::SetAntialias ( bool  antialias)

Turn antialiasing on/off.

Has effect only when wx wxUSE_GRAPHICS_CONTEXT is set in wxWidgets build. Warning: this feature can dramatically lower rendering performance.

Parameters
antialiastrue to turn on antialiasing.
void wxChartPanel::SetChart ( Chart chart)

Sets chart.

Parameters
chartnew chart
void wxChartPanel::SetMode ( ChartPanelMode mode)

Sets chart panel mode, eg.

zoom, pan, etc.

Parameters
modemode

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