Version: 0.6.0
BarRenderer Class Reference

#include <barrenderer.h>

Inheritance diagram for BarRenderer:
Collaboration diagram for BarRenderer:

Public Member Functions

 BarRenderer (BarType *barType)
 
virtual void DrawLegendSymbol (wxDC &dc, wxRect rcSymbol, size_t serie)
 
void Draw (wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, bool vertical, CategoryDataset *dataset)
 
void SetBarType (BarType *barType)
 
BarTypeGetBarType ()
 
void SetBarDraw (size_t serie, AreaDraw *areaDraw)
 
AreaDrawGetBarDraw (size_t serie)
 
double GetMinValue (CategoryDataset *dataset, bool verticalAxis)
 
double GetMaxValue (CategoryDataset *dataset, bool verticalAxis)
 
- 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)
 
- 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 Observable< DrawObserver >
std::vector< DrawObserver * > observers
 

Detailed Description

Bar renderer.

Constructor & Destructor Documentation

BarRenderer::BarRenderer ( BarType barType)

Constructs new bar renderer.

Parameters
barTypebar type to be drawn by this renderer, renderer takes ownership for bar type object

Member Function Documentation

void BarRenderer::Draw ( wxDC &  dc,
wxRect  rc,
Axis horizAxis,
Axis vertAxis,
bool  vertical,
CategoryDataset dataset 
)

Draws dataset.

Parameters
dcdevice context
horizAxishorizontal axis
vertAxisvertical axis
verticaltrue to draw vertical bars
datasetdataset to be drawn

Here is the call graph for this function:

Here is the caller graph for this function:

void BarRenderer::DrawLegendSymbol ( wxDC &  dc,
wxRect  rcSymbol,
size_t  serie 
)
virtual

Draws legend symbol.

Parameters
dcdevice context
rcSymbolrectangle where to draw
serieserie index

Reimplemented from Renderer.

Here is the call graph for this function:

AreaDraw * BarRenderer::GetBarDraw ( size_t  serie)

Returns area draw object, used to draw specified serie.

Parameters
serieserie index
Returns
area draw object

Here is the call graph for this function:

Here is the caller graph for this function:

BarType * BarRenderer::GetBarType ( )

Returns bar type.

Returns
bar type
void BarRenderer::SetBarDraw ( size_t  serie,
AreaDraw areaDraw 
)

Sets area draw object to draw specified serie.

Parameters
serieserie index
adarea draw for serie

Here is the call graph for this function:

void BarRenderer::SetBarType ( BarType barType)

Sets bar type, an object that performs bars drawing. BarRenderer owns this object.

Parameters
barTypenew bar type, renderer takes ownership for bar type object

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