/** * @file XTPChartBubbleSeriesLabel.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(__XTPCHARTBUBBLESERIESLABEL_H__) # define __XTPCHARTBUBBLESERIESLABEL_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; /** * @brief * CXTPChartBubbleSeriesLabel is a kind of CXTPChartSeriesLabel. This class * abstracts the label of a bubble series. */ class _XTP_EXT_CLASS CXTPChartBubbleSeriesLabel : public CXTPChartSeriesLabel { DECLARE_SERIAL(CXTPChartBubbleSeriesLabel); public: /** * @brief * Constructs a CXTPChartBubbleSeriesLabel object. */ CXTPChartBubbleSeriesLabel(); /** * @brief * Destroys a CXTPChartBubbleSeriesLabel object, handles cleanup. */ virtual ~CXTPChartBubbleSeriesLabel(); public: public: /** * @brief * This function creates the view (CXTPChartBubbleSeriesLabelView) of the * bubble series. * * @param pDC The chart device context object pointer. * @param pPointView The seris point view. * @param pParentView Parent view pointer. * * @return * Returns a pointer to the associated label view object. */ virtual CXTPChartElementView* CreateView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPointView* pPointView, CXTPChartElementView* pParentView); protected: }; /** * @brief * CXTPChartBubbleSeriesLabelView is a kind of CXTPChartSeriesLabelView. This class * abstracts the view of a bubble series label. */ class _XTP_EXT_CLASS CXTPChartBubbleSeriesLabelView : public CXTPChartDiagram2DSeriesLabelView { public: /** * @brief * Constructs a CXTPChartBubbleSeriesLabelView object. * * @param pLabel A pointer to the chart series label object. * @param pPointView A pointer to the chart series point view object. * @param pParentView Parent view pointer. */ CXTPChartBubbleSeriesLabelView(CXTPChartSeriesLabel* pLabel, CXTPChartSeriesPointView* pPointView, CXTPChartElementView* pParentView); using CXTPChartDiagram2DSeriesLabelView::CreateDeviceCommand; /** * @brief * This function creates a CXTPChartDeviceCommand object. This object * represents the rendering of a bubble series label. * * @param pDC Pointer to a CXTPChartDeviceContext object. * * @return * Returns a CXTPChartDeviceCommand object. This object handles * the rendering of an element in the chart. Here it handles * the drawing of the bubble series label. */ virtual CXTPChartDeviceCommand* CreateDeviceCommand(CXTPChartDeviceContext* pDC); void CalculateLayout(CXTPChartDeviceContext* pDC); }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTBUBBLESERIESLABEL_H__) /** @endcond */