Version: 0.6.0
OHLCPlot Class Reference

#include <ohlcplot.h>

Inheritance diagram for OHLCPlot:
Collaboration diagram for OHLCPlot:

Protected Member Functions

virtual bool AcceptAxis (Axis *axis)
 
virtual bool AcceptDataset (Dataset *dataset)
 
virtual void DrawDatasets (wxDC &dc, wxRect rc)
 
virtual void DrawOHLCDataset (wxDC &dc, wxRect rc, OHLCDataset *dataset)
 
- Protected Member Functions inherited from XYPlot
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

Open-High-Low-Close plot.

TODO:

  • technical indicators support
  • grapical objects support, like levels, fibo-retracements, fractals, etc.

Member Function Documentation

bool OHLCPlot::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

Reimplemented from XYPlot.

Here is the call graph for this function:

bool OHLCPlot::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

Reimplemented from XYPlot.

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

Called to draw all datasets.

Parameters
dcdevice context
rcrectangle where to draw

Reimplemented from XYPlot.

Here is the call graph for this function:

void OHLCPlot::DrawOHLCDataset ( wxDC &  dc,
wxRect  rc,
OHLCDataset dataset 
)
protectedvirtual

Draw single OHLC dataset.

Parameters
dcdevice context
rcrectangle where to draw
datasetOHLC 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/ohlc/ohlcplot.h
  • /home/bishop/work/projects/nextgismanager/src/freechart/ohlc/ohlcplot.cpp