|
wxFreeChart
|
Renderer for displaying XY data as histograms. More...
#include <xyhistorenderer.h>


Public Member Functions | |
| XYHistoRenderer (int barWidth=10, bool vertical=true) | |
| Constructs new XYHistoRenderer. More... | |
| virtual void | Draw (wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, XYDataset *dataset) |
| Draws dataset. More... | |
| void | SetBarArea (size_t serie, AreaDraw *barArea) |
| Set area fill to draw specified serie. More... | |
| AreaDraw * | GetBarArea (size_t serie) |
| Returns area draw for specified serie. More... | |
| virtual void | NeedRedraw (DrawObject *obj) |
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 Symbol * | GetSerieSymbol (size_t serie) |
| returns symbol for serie. More... | |
| virtual void | DrawLegendSymbol (wxDC &dc, wxRect rcSymbol, size_t serie) |
| Draws legend symbol. More... | |
Public Member Functions inherited from RefObject | |
| void | AddRef () |
| void | Unref () |
| int | RefCount () |
Renderer for displaying XY data as histograms.
Definition at line 19 of file xyhistorenderer.h.
| XYHistoRenderer::XYHistoRenderer | ( | int | barWidth = 10, |
| bool | vertical = true |
||
| ) |
Constructs new XYHistoRenderer.
| barWidth | width to histogram bars |
| vertical | true to draw vertical bars, false - to horizontal |
|
virtual |
Draws dataset.
| 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.
| serie | serie index |
| void XYHistoRenderer::SetBarArea | ( | size_t | serie, |
| AreaDraw * | barArea | ||
| ) |
Set area fill to draw specified serie.
XYHistoRenderer takes ownership of barArea.
| serie | serie index |
| barArea | area background object to draw bars |
1.8.11