wxFreeChart
Public Member Functions | List of all members
OHLCBarRenderer Class Reference

OHLC renderer for displaying bars. More...

#include <ohlcbarrenderer.h>

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

Public Member Functions

virtual void DrawItem (wxDC &dc, wxCoord x, wxCoord open, wxCoord high, wxCoord low, wxCoord close)
 Draws item. More...
 
void SetBarPen (wxPen barPen)
 Sets pen to draw bars. More...
 
const wxPen & GetBarPen ()
 Return pen to draw bars. More...
 
- 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)
 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from OHLCRenderer
OHLCColourerm_colourer
 

Detailed Description

OHLC renderer for displaying bars.

Definition at line 18 of file ohlcbarrenderer.h.

Member Function Documentation

virtual 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

Definition at line 39 of file ohlcbarrenderer.h.

void OHLCBarRenderer::SetBarPen ( wxPen  barPen)
inline

Sets pen to draw bars.

Parameters
barPenpen to draw bars

Definition at line 30 of file ohlcbarrenderer.h.


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