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

OHLC renderer for displaying japanese candles. More...

#include <ohlccandlestickrenderer.h>

Inheritance diagram for OHLCCandlestickRenderer:
Inheritance graph
[legend]
Collaboration diagram for OHLCCandlestickRenderer:
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 SetOutlinePen (wxPen outlinePen)
 Sets pen to draw candle outline. More...
 
const wxPen & GetOutlinePen ()
 Returns pen to draw candle outline. More...
 
void SetLowerBrush (wxBrush lowerBrush)
 Sets brush to draw lower (bear) candles. More...
 
const wxBrush & GetLowerBrush ()
 Returns brush to draw lower (bear) candles. More...
 
void SetHigherBrush (wxBrush higherBrush)
 Sets brush to draw higher (bull) candles. More...
 
const wxBrush & GetHigherBrush ()
 Return brush to draw higher (bull) candles. 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 japanese candles.

Definition at line 18 of file ohlccandlestickrenderer.h.

Member Function Documentation

virtual void OHLCCandlestickRenderer::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 wxBrush& OHLCCandlestickRenderer::GetHigherBrush ( )
inline

Return brush to draw higher (bull) candles.

Returns
brush to draw higher (bear) candles

Definition at line 75 of file ohlccandlestickrenderer.h.

const wxBrush& OHLCCandlestickRenderer::GetLowerBrush ( )
inline

Returns brush to draw lower (bear) candles.

Returns
brush to draw lower (bear) candles

Definition at line 57 of file ohlccandlestickrenderer.h.

const wxPen& OHLCCandlestickRenderer::GetOutlinePen ( )
inline

Returns pen to draw candle outline.

Returns
outlinePen pen to draw candle outline

Definition at line 39 of file ohlccandlestickrenderer.h.

void OHLCCandlestickRenderer::SetHigherBrush ( wxBrush  higherBrush)
inline

Sets brush to draw higher (bull) candles.

Parameters
higherBrushbrush to draw higher (bear) candles

Definition at line 66 of file ohlccandlestickrenderer.h.

void OHLCCandlestickRenderer::SetLowerBrush ( wxBrush  lowerBrush)
inline

Sets brush to draw lower (bear) candles.

Parameters
lowerBrushbrush to draw lower (bear) candles

Definition at line 48 of file ohlccandlestickrenderer.h.

void OHLCCandlestickRenderer::SetOutlinePen ( wxPen  outlinePen)
inline

Sets pen to draw candle outline.

Parameters
outlinePenpen to draw candle outline

Definition at line 30 of file ohlccandlestickrenderer.h.


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