wxFreeChart
Public Member Functions | Protected Member Functions | List of all members
LayeredBarType Class Reference

Draws series' bars overlapped. More...

#include <barrenderer.h>

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

Public Member Functions

 LayeredBarType (int initialBarWidth, double base)
 Constructs new layered bar type. More...
 
- Public Member Functions inherited from BarType
 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)
 Called to calculate bar geometry params. More...
 

Additional Inherited Members

- Protected Attributes inherited from BarType
double m_base
 

Detailed Description

Draws series' bars overlapped.

Definition at line 118 of file barrenderer.h.

Constructor & Destructor Documentation

LayeredBarType::LayeredBarType ( int  initialBarWidth,
double  base 
)

Constructs new layered bar type.

Parameters
initialBarWidthmaximal bar width
basebars base, point from bars are drawn

Member Function Documentation

virtual void LayeredBarType::GetBarGeometry ( CategoryDataset dataset,
size_t  item,
size_t  serie,
int &  width,
wxCoord &  shift,
double &  base,
double &  value 
)
protectedvirtual

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

Implements BarType.


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