Bar renderer.
More...
#include <barrenderer.h>
|
| 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...
|
|
BarType * | GetBarType () |
| Returns bar type. More...
|
|
void | SetBarDraw (size_t serie, AreaDraw *areaDraw) |
| Sets area draw object to draw specified serie. More...
|
|
AreaDraw * | GetBarDraw (size_t serie) |
| Returns area draw object, used to draw specified serie. More...
|
|
double | GetMinValue (CategoryDataset *dataset) |
|
double | GetMaxValue (CategoryDataset *dataset) |
|
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 Symbol * | GetSerieSymbol (size_t serie) |
| returns symbol for serie. More...
|
|
void | AddRef () |
|
void | Unref () |
|
int | RefCount () |
|
Bar renderer.
Definition at line 140 of file barrenderer.h.
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 |
virtual 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 file: