#include <ChartLabel.h>
Public Member Functions | |
void | SetLabelText (const TChartString &strText) |
Sets a static text to be displayed in the label. | |
void | SetFont (int nPointSize, const TChartString &strFaceName) |
Sets the font of the text label. | |
void | SetVisisble (bool bVisible) |
Shows/hides the label. | |
void | SetLabelProvider (CChartLabelProvider< PointType > *pProvider) |
Sets a label provider for more flexibility in how the text is supplied. | |
Protected Member Functions | |
CChartLabel (CChartCtrl *pParentCtrl, CChartSerieBase< PointType > *pParentSeries) | |
Constructor. | |
virtual | ~CChartLabel () |
Destructor. | |
virtual void | Draw (CDC *pDC, unsigned uPointIndex)=0 |
Draws the label. | |
Protected Attributes | |
bool | m_bIsVisible |
Specifies if the label is visible or not. | |
int | m_iFontSize |
The text font size. | |
TChartString | m_strFontName |
The text font face name. | |
TChartString | m_strLabelText |
The static text of the label. | |
CChartLabelProvider< PointType > * | m_pLabelProvider |
The text provider. | |
CChartCtrl * | m_pParentCtrl |
The parent charting control. | |
CChartSerieBase< PointType > * | m_pParentSeries |
The parent series. |
This is a base class which should be overriden for specific label types.
virtual void CChartLabel< PointType >::Draw | ( | CDC * | pDC, | |
unsigned | uPointIndex | |||
) | [protected, pure virtual] |
Draws the label.
This pure virtual function must be overriden by all child classes.
Implemented in CChartBalloonLabel< PointType >.
void CChartLabel< PointType >::SetFont | ( | int | nPointSize, | |
const TChartString & | strFaceName | |||
) |
Sets the font of the text label.
nPointSize | The font point size | |
strFaceName | The font face name |
Reimplemented in CChartBalloonLabel< PointType >.