wxFreeChart
Public Member Functions | Protected Attributes | List of all members
OHLCRenderer Class Referenceabstract

Base class for rendering OHLC data. More...

#include <ohlcrenderer.h>

Inheritance diagram for OHLCRenderer:
Inheritance graph
[legend]
Collaboration diagram for OHLCRenderer:
Collaboration graph
[legend]

Public Member Functions

virtual void DrawItem (wxDC &dc, wxCoord x, wxCoord open, wxCoord high, wxCoord low, wxCoord close)=0
 Draws item. More...
 
void SetColourer (OHLCColourer *colourer)
 
OHLCColourerGetColourer ()
 
- Public Member Functions inherited from Renderer
virtual void SetSerieColour (size_t serie, wxColour *color)
 Sets color for serie. More...
 
virtual wxColour GetSerieColour (size_t serie)
 Returns serie color. More...
 
virtual void SetSerieSymbol (size_t serie, Symbol *symbol)
 Sets symbol for serie. More...
 
virtual SymbolGetSerieSymbol (size_t serie)
 returns symbol for serie. More...
 
virtual void DrawLegendSymbol (wxDC &dc, wxRect rcSymbol, size_t serie)
 Draws legend symbol. More...
 
- Public Member Functions inherited from RefObject
void AddRef ()
 
void Unref ()
 
int RefCount ()
 

Protected Attributes

OHLCColourerm_colourer
 

Detailed Description

Base class for rendering OHLC data.

Definition at line 30 of file ohlcrenderer.h.

Member Function Documentation

virtual void OHLCRenderer::DrawItem ( wxDC &  dc,
wxCoord  x,
wxCoord  open,
wxCoord  high,
wxCoord  low,
wxCoord  close 
)
pure 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

Implemented in OHLCBarRenderer, and OHLCCandlestickRenderer.


The documentation for this class was generated from the following file: