#include <xyhistorenderer.h>
|
| XYHistoRenderer (int barWidth=10, bool vertical=true) |
|
virtual void | Draw (wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, XYDataset *dataset) |
|
void | SetBarArea (size_t serie, AreaDraw *barArea) |
|
AreaDraw * | GetBarArea (size_t serie) |
|
virtual void | NeedRedraw (DrawObject *obj) |
|
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) |
|
virtual void | DrawLegendSymbol (wxDC &dc, wxRect rcSymbol, size_t serie) |
|
void | AddObserver (DrawObserver *_observer) |
|
void | RemoveObserver (DrawObserver *_observer) |
|
void | AddRef () |
|
void | Unref () |
|
int | RefCount () |
|
Renderer for displaying XY data as histograms.
XYHistoRenderer::XYHistoRenderer |
( |
int |
barWidth = 10 , |
|
|
bool |
vertical = true |
|
) |
| |
Constructs new XYHistoRenderer.
- Parameters
-
barWidth | width to histogram bars |
vertical | true to draw vertical bars, false - to horizontal |
void XYHistoRenderer::Draw |
( |
wxDC & |
dc, |
|
|
wxRect |
rc, |
|
|
Axis * |
horizAxis, |
|
|
Axis * |
vertAxis, |
|
|
XYDataset * |
dataset |
|
) |
| |
|
virtual |
Draws dataset.
- Parameters
-
dc | device context |
rc | rectangle where to draw |
horizAxis | horizontal axis |
vertAxis | vertical axis |
dataset | dataset to be drawn |
Implements XYRenderer.
AreaDraw * XYHistoRenderer::GetBarArea |
( |
size_t |
serie | ) |
|
Returns area draw for specified serie.
- Parameters
-
- Returns
- area draw for specified serie
void XYHistoRenderer::NeedRedraw |
( |
DrawObject * |
obj | ) |
|
|
virtual |
Called when object is need to be redrawed.
- Parameters
-
obj | object that need to be redrawed |
Implements DrawObserver.
void XYHistoRenderer::SetBarArea |
( |
size_t |
serie, |
|
|
AreaDraw * |
barArea |
|
) |
| |
Set area fill to draw specified serie. XYHistoRenderer takes ownership of barArea.
- Parameters
-
serie | serie index |
barArea | area background object to draw bars |
The documentation for this class was generated from the following files:
- /home/bishop/work/projects/nextgismanager/include/freechart/wx/xy/xyhistorenderer.h
- /home/bishop/work/projects/nextgismanager/src/freechart/xy/xyhistorenderer.cpp