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

Bar renderer. More...

#include <barrenderer.h>

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

Public Member Functions

 BarRenderer (BarType *barType)
 Constructs new bar renderer. More...
 
virtual void DrawLegendSymbol (wxDC &dc, wxRect rcSymbol, size_t serie)
 Draws legend symbol. More...
 
void Draw (wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, bool vertical, CategoryDataset *dataset)
 Draws dataset. More...
 
void SetBarType (BarType *barType)
 Sets bar type, an object that performs bars drawing. More...
 
BarTypeGetBarType ()
 Returns bar type. More...
 
void SetBarDraw (size_t serie, AreaDraw *areaDraw)
 Sets area draw object to draw specified serie. More...
 
AreaDrawGetBarDraw (size_t serie)
 Returns area draw object, used to draw specified serie. More...
 
double GetMinValue (CategoryDataset *dataset)
 
double GetMaxValue (CategoryDataset *dataset)
 
- 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...
 
- Public Member Functions inherited from RefObject
void AddRef ()
 
void Unref ()
 
int RefCount ()
 

Detailed Description

Bar renderer.

Definition at line 140 of file barrenderer.h.

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
virtual 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.

AreaDraw* BarRenderer::GetBarDraw ( size_t  serie)

Returns area draw object, used to draw specified serie.

Parameters
serieserie index
Returns
area draw object
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
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 file: