/** * @file XTPChartPointSeriesLabel.h * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ /** @cond */ #if !defined(__XTPCHARTPOINTSERIESLABEL_H__) # define __XTPCHARTPOINTSERIESLABEL_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; /** * @brief * This class abstracts the label of a point series. It is a kind of chart * series label. */ class _XTP_EXT_CLASS CXTPChartPointSeriesLabel : public CXTPChartDiagram2DSeriesLabel { DECLARE_SERIAL(CXTPChartPointSeriesLabel); public: /** * @brief * Constructs a CXTPChartPointSeriesLabel object. */ CXTPChartPointSeriesLabel(); /** * @brief * Destroys a CXTPChartPointSeriesLabel object, handles cleanup. */ virtual ~CXTPChartPointSeriesLabel(); public: /** * @brief * Call this function to set the angle of the label stem. * * @param nAngle The angle of the label stem. */ void SetAngle(int nAngle); /** * @brief * Call this function to get the angle of the label stem. * * @return * An intger value denoting angle of the label stem. */ int GetAngle() const; public: void DoPropExchange(CXTPPropExchange* pPX); public: /** * @brief * This function creates the view of the label. * * @param pDC The device context. * @param pPointView A pointer to the series point view object. * @param pParentView A pointer to the parent view object. * * @return * Returns a pointer to the associated label view object. */ virtual CXTPChartElementView* CreateView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPointView* pPointView, CXTPChartElementView* pParentView); protected: int m_nAngle; /**< The stem angle.*/ # ifdef _XTP_ACTIVEX public: /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartPointSeriesLabel); /** @endcond */ # endif }; AFX_INLINE void CXTPChartPointSeriesLabel::SetAngle(int nAngle) { m_nAngle = nAngle; OnChartChanged(); } AFX_INLINE int CXTPChartPointSeriesLabel::GetAngle() const { return m_nAngle; } /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTPOINTSERIESLABEL_H__) /** @endcond */