#include <ChartLabel.h>
Public Member Functions | |
CChartLabelProvider () | |
Constructor. | |
virtual | ~CChartLabelProvider () |
Destructor. | |
virtual TChartString | GetText (CChartSerieBase< PointType > *pSerie, unsigned PointIndex)=0 |
Method to override in order to provide the text of the label. |
This class is a template class with the template parameter being the point type of the series to which the label is attached.
Using a CChartLabelProvider provides more flexibility in the way to supply text to the label. You can for instance embedd in the string some information about the point (XValue, YValue, index, ...). In that case, a single CChartLabelProvider object can be provided for all labels. Changing the displayed text of all labels becomes also easier: you only have to adapt the string returned by this object and refresh the control and all labels will be updated.
virtual TChartString CChartLabelProvider< PointType >::GetText | ( | CChartSerieBase< PointType > * | pSerie, | |
unsigned | PointIndex | |||
) | [pure virtual] |
Method to override in order to provide the text of the label.
pSerie | The series to which the label is attached | |
uPtIndex | The index of the point in the series to which the label is attached |