#include <barrenderer.h>
|
| 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) |
|
BarType * | GetBarType () |
|
void | SetBarDraw (size_t serie, AreaDraw *areaDraw) |
|
AreaDraw * | GetBarDraw (size_t serie) |
|
double | GetMinValue (CategoryDataset *dataset, bool verticalAxis) |
|
double | GetMaxValue (CategoryDataset *dataset, bool verticalAxis) |
|
virtual void | SetSerieColour (size_t serie, wxColour *color) |
|
virtual wxColour | GetSerieColour (size_t serie) |
|
virtual void | SetSerieSymbol (size_t serie, Symbol *symbol) |
|
virtual Symbol * | GetSerieSymbol (size_t serie) |
|
void | AddObserver (DrawObserver *_observer) |
|
void | RemoveObserver (DrawObserver *_observer) |
|
void | AddRef () |
|
void | Unref () |
|
int | RefCount () |
|
BarRenderer::BarRenderer |
( |
BarType * |
barType | ) |
|
Constructs new bar renderer.
- Parameters
-
barType | bar type to be drawn by this renderer, renderer takes ownership for bar type object |
void BarRenderer::Draw |
( |
wxDC & |
dc, |
|
|
wxRect |
rc, |
|
|
Axis * |
horizAxis, |
|
|
Axis * |
vertAxis, |
|
|
bool |
vertical, |
|
|
CategoryDataset * |
dataset |
|
) |
| |
Draws dataset.
- Parameters
-
dc | device context |
horizAxis | horizontal axis |
vertAxis | vertical axis |
vertical | true to draw vertical bars |
dataset | dataset to be drawn |
void BarRenderer::DrawLegendSymbol |
( |
wxDC & |
dc, |
|
|
wxRect |
rcSymbol, |
|
|
size_t |
serie |
|
) |
| |
|
virtual |
Draws legend symbol.
- Parameters
-
dc | device context |
rcSymbol | rectangle where to draw |
serie | serie index |
Reimplemented from Renderer.
AreaDraw * BarRenderer::GetBarDraw |
( |
size_t |
serie | ) |
|
Returns area draw object, used to draw specified serie.
- Parameters
-
- 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
-
serie | serie index |
ad | area draw for serie |
void BarRenderer::SetBarType |
( |
BarType * |
barType | ) |
|
Sets bar type, an object that performs bars drawing. BarRenderer owns this object.
- Parameters
-
barType | new 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