wxFreeChart
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BarType Class Referenceabstract

Bar types base class. More...

#include <barrenderer.h>

Inheritance diagram for BarType:
Inheritance graph
[legend]

Public Member Functions

 BarType (double base)
 
virtual void Draw (BarRenderer *barRenderer, wxDC &dc, wxRect rc, Axis *horizAxis, Axis *vertAxis, bool vertical, size_t item, CategoryDataset *dataset)
 Performs bar drawing. More...
 
virtual double GetMinValue (CategoryDataset *dataset)
 
virtual double GetMaxValue (CategoryDataset *dataset)
 

Protected Member Functions

virtual void GetBarGeometry (CategoryDataset *dataset, size_t item, size_t serie, int &width, wxCoord &shift, double &base, double &value)=0
 Called to calculate bar geometry params. More...
 

Protected Attributes

double m_base
 

Detailed Description

Bar types base class.

This class performs bars drawing.

Definition at line 23 of file barrenderer.h.

Member Function Documentation

virtual void BarType::Draw ( BarRenderer barRenderer,
wxDC &  dc,
wxRect  rc,
Axis horizAxis,
Axis vertAxis,
bool  vertical,
size_t  item,
CategoryDataset dataset 
)
virtual

Performs bar drawing.

Parameters
barRendererbar renderer
dcdevice context
rcrectangle where to draw
horizAxishorizontal axis
vertAxisvertical axis
verticaltrue to draw vertical bars
itemdataset item index
datasetdataset to draw bars
virtual void BarType::GetBarGeometry ( CategoryDataset dataset,
size_t  item,
size_t  serie,
int &  width,
wxCoord &  shift,
double &  base,
double &  value 
)
protectedpure virtual

Called to calculate bar geometry params.

Must be implemented by derivate classes.

Parameters
datasetdataset
itemitem index
serieserie index
widthoutput for bar width
shiftoutput for bar shift
baseoutput for bar base
valueoutput for bar value

Implemented in LayeredBarType, StackedBarType, and NormalBarType.


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