Version: 0.6.0
wxChartPanel Class Reference

#include <chartpanel.h>

Inheritance diagram for wxChartPanel:
Collaboration diagram for wxChartPanel:

Public Member Functions

 wxChartPanel (wxWindow *parent, wxWindowID=wxID_ANY, Chart *chart=NULL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize)
 
void SetChart (Chart *chart)
 
ChartGetChart ()
 
void SetMode (ChartPanelMode *mode)
 
void SetAntialias (bool antialias)
 
bool GetAntialias ()
 
wxBitmap CopyBackbuffer ()
 
virtual void ChartChanged (Chart *chart)
 
virtual void ChartScrollsChanged (Chart *chart)
 
- Public Member Functions inherited from Observable< ChartPanelObserver >
void AddObserver (ChartPanelObserver *_observer)
 
void RemoveObserver (ChartPanelObserver *_observer)
 

Additional Inherited Members

- Public Types inherited from Observable< ChartPanelObserver >
typedef ChartPanelObserver Observer
 
- Public Attributes inherited from Observable< ChartPanelObserver >
std::vector
< ChartPanelObserver * >
::iterator 
OIt
 
- Protected Attributes inherited from Observable< ChartPanelObserver >
std::vector< ChartPanelObserver * > observers
 

Detailed Description

ChartPanel is wxWidgets panel for displaying chart.

Member Function Documentation

void wxChartPanel::ChartChanged ( Chart chart)
virtual

Called when some of chart or chart component properties has been changed.

Parameters
chartchart that has been changed

Implements ChartObserver.

void wxChartPanel::ChartScrollsChanged ( Chart chart)
virtual

Called when some of chart scrolled axes changed its bounds.

Parameters
chartchart

Implements ChartObserver.

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 files:
  • /home/bishop/work/projects/nextgismanager/include/freechart/wx/chartpanel.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/chartpanel.cpp