CChartBalloonLabel< PointType > Class Template Reference

Specialization of the CChartLabel to display a balloon label. More...

#include <ChartBalloonLabel.h>

Inheritance diagram for CChartBalloonLabel< PointType >:

CChartLabel< PointType >

List of all members.

Public Member Functions

void SetBackgroundColor (COLORREF colBackground)
 Sets the background color of the text area.
COLORREF GetBackgroundColor () const
 Retrieves the background color of the text area.
void SetLineColor (COLORREF colArrow)
 Sets the color of the line connecting the point to the text area.
COLORREF GetLineColor () const
 Retrieves the color of the line connecting the point to the text area.
void SetBorderColor (COLORREF colBorder)
 Sets the color of border's text area.
COLORREF GetBorderColor () const
 Retrieves the color of border's text area.
void SetRoundedRect (bool bRounded)
 Specifies if the text area is rounded or not.
bool GetRoundedRect () const
 Returns true if the text area is rounded.
void SetFont (int nPointSize, const TChartString &strFaceName)
 Sets the font of the text.
void SetFont (const CChartFont &newFont)
 Sets the font of the text.
 CChartBalloonLabel (CChartCtrl *pParentCtrl, CChartSerieBase< PointType > *pParentSeries)
 Constructor.
 ~CChartBalloonLabel ()
 Destructor.

Protected Member Functions

void Draw (CDC *pDC, unsigned uPointIndex)
 Draw the label.


Detailed Description

template<class PointType>
class CChartBalloonLabel< PointType >

Specialization of the CChartLabel to display a balloon label.

A balloon label is a label with a rounded rectangle area in which the text is displayed and which is connected with a line to the point to which it is attached.


Member Function Documentation

template<class PointType >
void CChartBalloonLabel< PointType >::SetFont ( const CChartFont newFont  )  [inline]

Sets the font of the text.

This function allows to set extended font style by passing a CChartFont object.

Parameters:
newFont The new font.

template<class PointType >
void CChartBalloonLabel< PointType >::SetFont ( int  nPointSize,
const TChartString &  strFaceName 
) [inline]

Sets the font of the text.

Parameters:
nPointSize The font point size.
strFaceName The font face name ("Times New Roman", "Arial", ...)

Reimplemented from CChartLabel< PointType >.


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

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