Version: 0.6.0
OHLCCandlestickRenderer Class Reference

#include <ohlccandlestickrenderer.h>

Inheritance diagram for OHLCCandlestickRenderer:
Collaboration diagram for OHLCCandlestickRenderer:

Public Member Functions

virtual void DrawItem (wxDC &dc, wxCoord x, wxCoord open, wxCoord high, wxCoord low, wxCoord close)
 
void SetOutlinePen (wxPen outlinePen)
 
const wxPen & GetOutlinePen ()
 
void SetLowerBrush (wxBrush lowerBrush)
 
const wxBrush & GetLowerBrush ()
 
void SetHigherBrush (wxBrush higherBrush)
 
const wxBrush & GetHigherBrush ()
 
- 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 japanese candles.

Member Function Documentation

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
const wxBrush& OHLCCandlestickRenderer::GetLowerBrush ( )
inline

Returns brush to draw lower (bear) candles.

Returns
brush to draw lower (bear) candles
const wxPen& OHLCCandlestickRenderer::GetOutlinePen ( )
inline

Returns pen to draw candle outline.

Returns
outlinePen pen to draw candle outline
void OHLCCandlestickRenderer::SetHigherBrush ( wxBrush  higherBrush)
inline

Sets brush to draw higher (bull) candles.

Parameters
higherBrushbrush to draw higher (bear) candles
void OHLCCandlestickRenderer::SetLowerBrush ( wxBrush  lowerBrush)
inline

Sets brush to draw lower (bear) candles.

Parameters
lowerBrushbrush to draw lower (bear) candles
void OHLCCandlestickRenderer::SetOutlinePen ( wxPen  outlinePen)
inline

Sets pen to draw candle outline.

Parameters
outlinePenpen to draw candle outline

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