Version: 0.6.0
OHLCBarRenderer Class Reference

#include <ohlcbarrenderer.h>

Inheritance diagram for OHLCBarRenderer:
Collaboration diagram for OHLCBarRenderer:

Public Member Functions

virtual void DrawItem (wxDC &dc, wxCoord x, wxCoord open, wxCoord high, wxCoord low, wxCoord close)
 
void SetBarPen (wxPen barPen)
 
const wxPen & GetBarPen ()
 
- Public Member Functions inherited from OHLCRenderer
void SetColourer (OHLCColourer *colourer)
 
OHLCColourerGetColourer ()
 
- Public Member Functions inherited from Renderer
virtual void SetSerieColour (size_t serie, wxColour *color)
 
virtual wxColour GetSerieColour (size_t serie)
 
virtual void SetSerieSymbol (size_t serie, Symbol *symbol)
 
virtual SymbolGetSerieSymbol (size_t serie)
 
virtual void DrawLegendSymbol (wxDC &dc, wxRect rcSymbol, size_t serie)
 
- Public Member Functions inherited from Observable< DrawObserver >
void AddObserver (DrawObserver *_observer)
 
void RemoveObserver (DrawObserver *_observer)
 
- Public Member Functions inherited from RefObject
void AddRef ()
 
void Unref ()
 
int RefCount ()
 

Additional Inherited Members

- Public Types inherited from Observable< DrawObserver >
typedef DrawObserver Observer
 
- Public Attributes inherited from Observable< DrawObserver >
std::vector< DrawObserver * >
::iterator 
OIt
 
- Protected Member Functions inherited from DrawObject
 FIRE_WITH_THIS (NeedRedraw)
 
- Protected Attributes inherited from OHLCRenderer
OHLCColourerm_colourer
 
- Protected Attributes inherited from Observable< DrawObserver >
std::vector< DrawObserver * > observers
 

Detailed Description

OHLC renderer for displaying bars.

Member Function Documentation

void OHLCBarRenderer::DrawItem ( wxDC &  dc,
wxCoord  x,
wxCoord  open,
wxCoord  high,
wxCoord  low,
wxCoord  close 
)
virtual

Draws item.

Parameters
dcdevice context
xcoordinate
openopen value in graphical coordinates
highhigh value in graphical coordinates
lowlow value in graphical coordinates
closeclose value in graphical coordinates

Implements OHLCRenderer.

const wxPen& OHLCBarRenderer::GetBarPen ( )
inline

Return pen to draw bars.

Returns
pen to draw bars
void OHLCBarRenderer::SetBarPen ( wxPen  barPen)
inline

Sets pen to draw bars.

Parameters
barPenpen to draw bars

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