/** * @file XTPChartRangeAreaSeriesLabel.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(__XTPCHARTRANGEAREASERIESLABEL_H__) # define __XTPCHARTRANGEAREASERIESLABEL_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 bar series. It is a kind of point * series label. */ class _XTP_EXT_CLASS CXTPChartRangeAreaSeriesLabel : public CXTPChartPointSeriesLabel { DECLARE_SERIAL(CXTPChartRangeAreaSeriesLabel); public: /** * @brief * Constructs a CXTPChartRangeAreaSeriesLabel object. */ CXTPChartRangeAreaSeriesLabel(); /** * @brief * Destroys a CXTPChartRangeAreaSeriesLabel object, handles cleanup. */ virtual ~CXTPChartRangeAreaSeriesLabel(); public: public: /** * @brief * This function creates the view of the bar series label. * * @param pDC The device context. * @param pPointView A pointer to the series point view object. * @param pParentView The pointer to the parent view object. * * @return A pointer to a CXTPChartElementView object, which is polymorphic to * CXTPChartRangeAreaSeriesLabelView. */ virtual CXTPChartElementView* CreateView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPointView* pPointView, CXTPChartElementView* pParentView); void DoPropExchange(CXTPPropExchange* pPX); protected: }; /** * @brief * This class abstracts the view of the label of a bar series. It is a kind of point * series label view. */ class _XTP_EXT_CLASS CXTPChartRangeAreaSeriesLabelView : public CXTPChartPointSeriesLabelView { public: /** * @brief * Constructs a CXTPChartRangeAreaSeriesLabel object. * * @param pLabel Pointer chart series label. * @param pPointView Pointer to chart series point view. * @param pParentView The pointer to the parent view object. */ CXTPChartRangeAreaSeriesLabelView(CXTPChartSeriesLabel* pLabel, CXTPChartSeriesPointView* pPointView, CXTPChartElementView* pParentView); /** * @brief * This function calculates the anchor point of the label stem. * * @return A CXTPChartPointF object denoting the anchor point. */ using CXTPChartPointSeriesLabelView::GetAnchorPoint; virtual CXTPChartPointF GetAnchorPoint(BOOL bMinValue) const; protected: using CXTPChartPointSeriesLabelView::CreateDeviceCommand; virtual CXTPChartDeviceCommand* CreateDeviceCommand(CXTPChartDeviceContext* pDC); void CalculateLayout(CXTPChartDeviceContext* pDC); }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTRANGEAREASERIESLABEL_H__) /** @endcond */