Version: 0.6.0

#include <xyplot.h>

Inheritance diagram for XYPlot:
Collaboration diagram for XYPlot:

Protected Member Functions

virtual bool AcceptAxis (Axis *axis)
 
virtual bool AcceptDataset (Dataset *dataset)
 
virtual void DrawDatasets (wxDC &dc, wxRect rc)
 
void DrawXYDataset (wxDC &dc, wxRect rc, XYDataset *dataset)
 
- Protected Member Functions inherited from AxisPlot
wxCoord GetAxesExtent (wxDC &dc, AxisArray *axes)
 
- Protected Member Functions inherited from Plot
 FIRE_WITH_THIS (PlotNeedRedraw)
 

Additional Inherited Members

- Public Types inherited from Observable< PlotObserver >
typedef PlotObserver Observer
 
- Public Member Functions inherited from AxisPlot
void AddAxis (Axis *axis)
 
void AddDataset (Dataset *dataset)
 
void RemoveDataset (Dataset *dataset)
 
void RemoveDataset (size_t index)
 
void AddObjects (Dataset *dataset, Axis *verticalAxis, Axis *horizontalAxis)
 
size_t GetDatasetCount ()
 
DatasetGetDataset (size_t index)
 
void LinkDataHorizontalAxis (size_t nData, size_t nAxis)
 
void LinkDataVerticalAxis (size_t nData, size_t nAxis)
 
AxisGetDatasetAxis (Dataset *dataset, size_t index, bool vertical)
 
AxisGetDatasetAxis (Dataset *dataset, bool vertical)
 
AxisGetDatasetVerticalAxis (Dataset *dataset)
 
AxisGetDatasetHorizontalAxis (Dataset *dataset)
 
DatasetGetAxisDataset (Axis *axis, size_t index)
 
void SetDrawGrid (bool drawGridVertical, bool drawGridHorizontal)
 
void SetDataBackground (AreaDraw *dataBackground)
 
void SetLegend (Legend *legend)
 
void SetCrosshair (Crosshair *crosshair)
 
bool ToDataCoords (size_t nData, wxDC &dc, wxRect rc, wxCoord gx, wxCoord gy, double *x, double *y)
 
virtual void NeedRedraw (DrawObject *obj)
 
virtual void DatasetChanged (Dataset *dataset)
 
virtual void AxisChanged (Axis *axis)
 
virtual void BoundsChanged (Axis *axis)
 
virtual void ChartMouseDown (wxPoint &pt, int key)
 
- Public Member Functions inherited from Plot
virtual void Draw (wxDC &dc, wxRect rc)
 
virtual void DrawNoDataMessage (wxDC &dc, wxRect rc)
 
void SetChartPanel (wxChartPanel *chartPanel)
 
wxChartPanelGetChartPanel ()
 
void SetBackground (AreaDraw *background)
 
void SetTextNoData (const wxString &textNoData)
 
- Public Member Functions inherited from Observable< PlotObserver >
void AddObserver (PlotObserver *_observer)
 
void RemoveObserver (PlotObserver *_observer)
 
- Public Member Functions inherited from ChartPanelObserver
virtual void ChartEnterWindow ()
 
virtual void ChartMouseUp (wxPoint &pt, int key)
 
virtual void ChartMouseMove (wxPoint &pt)
 
virtual void ChartMouseDrag (wxPoint &pt)
 
virtual void ChartMouseWheel (int rotation)
 
- Public Attributes inherited from Observable< PlotObserver >
std::vector< PlotObserver * >
::iterator 
OIt
 
- Protected Attributes inherited from Observable< PlotObserver >
std::vector< PlotObserver * > observers
 

Detailed Description

An plot for displaying XY data values.

Member Function Documentation

bool XYPlot::AcceptAxis ( Axis axis)
protectedvirtual

Checks whether axis is acceptable with this plot.

Parameters
axisaxis to be checked
Returns
true if axis can be accepted, false overwise

Implements AxisPlot.

Reimplemented in OHLCPlot, and BarPlot.

bool XYPlot::AcceptDataset ( Dataset dataset)
protectedvirtual

Checks whether dataset is acceptable with this plot.

Parameters
datasetdataset to be checked
Returns
true if dataset can be accepted, false overwise

Implements AxisPlot.

Reimplemented in OHLCPlot, and BarPlot.

void XYPlot::DrawDatasets ( wxDC &  dc,
wxRect  rc 
)
protectedvirtual

Called to draw all datasets.

Parameters
dcdevice context
rcrectangle where to draw

Implements AxisPlot.

Reimplemented in OHLCPlot, and BarPlot.

Here is the call graph for this function:

void XYPlot::DrawXYDataset ( wxDC &  dc,
wxRect  rc,
XYDataset dataset 
)
protected

Draw single XY dataset.

Parameters
dcdevice context
rcrectangle where to draw
datasetXY dataset to draw

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
  • /home/bishop/work/projects/nextgismanager/include/freechart/wx/xy/xyplot.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/xy/xyplot.cpp