#include <chartpanel.h>
Public Member Functions | |
wxChartPanel (wxWindow *parent, wxWindowID=wxID_ANY, Chart *chart=NULL, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize) | |
void | SetChart (Chart *chart) |
Chart * | GetChart () |
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 |
ChartPanel is wxWidgets panel for displaying chart.
|
virtual |
Called when some of chart or chart component properties has been changed.
chart | chart that has been changed |
Implements ChartObserver.
|
virtual |
Called when some of chart scrolled axes changed its bounds.
chart | chart |
Implements ChartObserver.
wxBitmap wxChartPanel::CopyBackbuffer | ( | ) |
Returns back buffer copy as wxBitmap. Can be used to save chart image to file.
bool wxChartPanel::GetAntialias | ( | ) |
Checks whether antialiasing is enabled.
Chart * wxChartPanel::GetChart | ( | ) |
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.
antialias | true to turn on antialiasing. |
void wxChartPanel::SetChart | ( | Chart * | chart | ) |
Sets chart.
chart | new chart |
void wxChartPanel::SetMode | ( | ChartPanelMode * | mode | ) |
Sets chart panel mode, eg. zoom, pan, etc.
mode | mode |