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

Renderer for displaying XY data as histograms. More...

#include <xyhistorenderer.h>

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

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...
 
AreaDrawGetBarArea (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 SymbolGetSerieSymbol (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 ()
 

Detailed Description

Renderer for displaying XY data as histograms.

Definition at line 19 of file xyhistorenderer.h.

Constructor & Destructor Documentation

XYHistoRenderer::XYHistoRenderer ( int  barWidth = 10,
bool  vertical = true 
)

Constructs new XYHistoRenderer.

Parameters
barWidthwidth to histogram bars
verticaltrue to draw vertical bars, false - to horizontal

Member Function Documentation

virtual void XYHistoRenderer::Draw ( wxDC &  dc,
wxRect  rc,
Axis horizAxis,
Axis vertAxis,
XYDataset dataset 
)
virtual

Draws dataset.

Parameters
dcdevice context
rcrectangle where to draw
horizAxishorizontal axis
vertAxisvertical axis
datasetdataset to be drawn

Implements XYRenderer.

AreaDraw* XYHistoRenderer::GetBarArea ( size_t  serie)

Returns area draw for specified serie.

Parameters
serieserie index
Returns
area draw for specified serie
void XYHistoRenderer::SetBarArea ( size_t  serie,
AreaDraw barArea 
)

Set area fill to draw specified serie.

XYHistoRenderer takes ownership of barArea.

Parameters
serieserie index
barAreaarea background object to draw bars

The documentation for this class was generated from the following file: