/** * @file XTPChartSeriesView.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(__XTPCHARTSERIESVIEW_H__) # define __XTPCHARTSERIESVIEW_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; class CXTPChartSeriesPoint; class CXTPChartSeriesStyle; class CXTPChartSeries; class CXTPChartDiagramView; class CXTPChartDiagram; class CXTPChartLegendView; class _XTP_EXT_CLASS CXTPChartSeriesView : public CXTPChartElementView , public CXTPChartLegendItemView { DECLARE_DYNAMIC(CXTPChartSeriesView); public: CXTPChartSeriesView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); public: virtual void CreatePointsView(CXTPChartDeviceContext* pDC); CXTPChartSeries* GetSeries() const; CXTPChartSeriesStyle* GetStyle() const; CXTPChartDiagram* GetDiagram() const; CXTPChartDiagramView* GetDiagramView() const; CXTPChartElementView* GetPointsView() const; CXTPChartElementView* GetErrorBarsView() const; public: virtual void CalculateLayout(CXTPChartDeviceContext* pDC); virtual void UpdateRange(CXTPChartDeviceContext* pDC); virtual void AddToLegend(CXTPChartLegendView* pView); virtual CXTPChartDeviceCommand* CreateLegendDeviceCommand(CXTPChartDeviceContext* pDC, CRect rcBounds); protected: virtual CXTPChartSeriesPointView* CreateSeriesPointView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView); virtual CXTPChartString GetLegendName() const; public: CXTPChartSeries* m_pSeries; CXTPChartDiagramView* m_pDiagramView; CXTPChartElementView* m_pPointsView; CXTPChartElementView* m_pLabelsView; CXTPChartElementView* m_pErrorBarsView; }; AFX_INLINE CXTPChartDiagramView* CXTPChartSeriesView::GetDiagramView() const { return m_pDiagramView; } AFX_INLINE CXTPChartSeries* CXTPChartSeriesView::GetSeries() const { return m_pSeries; } AFX_INLINE CXTPChartElementView* CXTPChartSeriesView::GetPointsView() const { return m_pPointsView; } AFX_INLINE CXTPChartElementView* CXTPChartSeriesView::GetErrorBarsView() const { return m_pErrorBarsView; } /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTSERIESVIEW_H__) /** @endcond */