CChartLabel< PointType > Class Template Reference

Draws a label containing some text which is attached to a point of a series. More...

#include <ChartLabel.h>

List of all members.

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.
CChartCtrlm_pParentCtrl
 The parent charting control.
CChartSerieBase< PointType > * m_pParentSeries
 The parent series.


Detailed Description

template<class PointType>
class CChartLabel< PointType >

Draws a label containing some text which is attached to a point of a series.

This is a base class which should be overriden for specific label types.


Member Function Documentation

template<class PointType>
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 >.

template<class PointType>
void CChartLabel< PointType >::SetFont ( int  nPointSize,
const TChartString &  strFaceName 
)

Sets the font of the text label.

Parameters:
nPointSize The font point size
strFaceName The font face name

Reimplemented in CChartBalloonLabel< PointType >.


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

Generated on Sun Jan 17 13:33:11 2010 for ChartDemo by  doxygen 1.5.8