/** * @file XTPChartAreaSeriesView.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(__XTPCHARTAREASERIESVIEW_H__) # define __XTPCHARTAREASERIESVIEW_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; class CXTPChartBorder; class CXTPChartFillStyle; /** * @brief * CXTPChartAreaSeriesView is a kind of CXTPChartSeriesView. This class * represents the view of the area series of a chart. * * @details * Area series displays graphically the quantitative data in a chart. * It displays a series as a set of points connected by a line or spline * with all the area filled in below the line. */ class _XTP_EXT_CLASS CXTPChartAreaSeriesView : public CXTPChartDiagram2DSeriesView { public: /** * @brief * Constructs a CXTPChartAreaSeriesView object. * * @param pSeries Pointer to a chart series object. * @param pDiagramView Pointer to a chart diagram view object. */ CXTPChartAreaSeriesView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); protected: /** * @brief * Call this function to create a chart area series point view object. * * @param pDC Pointer to a chart device context object. * @param pPoint Pointer to a chart series object. * @param pParentView Parent view pointer. * * @return A pointer to CXTPChartSeriesPointView which refers to the newly created * CXTPChartPointSeriesPointView object. * * @details * CXTPChartSeriesPointView object abstracts the view of a point in a series. */ CXTPChartSeriesPointView* CreateSeriesPointView(CXTPChartDeviceContext* pDC, CXTPChartSeriesPoint* pPoint, CXTPChartElementView* pParentView); /** * @brief * This function creates a CXTPChartDeviceCommand object. This object * represents the rendering of an area series in the chart. * * @param pDC Pointer to a CXTPChartDeviceContext object. * * @return Returns a CXTPChartDeviceCommand object. This polymorphic object handles * the rendering of an element in the chart. Here it handles the drawing * of the area series of the chart. */ virtual CXTPChartDeviceCommand* CreateDeviceCommand(CXTPChartDeviceContext* pDC); /** * @brief * Call this function to get the actual color of the series. * * @return Returns the CXTPChartColor object representing an ARGB value. */ CXTPChartColor GetActualColor() const; /** * @brief * Call this function to get the second actual color of the series. * * @return Returns the CXTPChartColor object representing an ARGB value. */ CXTPChartColor GetActualColor2() const; /** * @brief * Call this function to get the actual color of the series border. * * @return Returns the CXTPChartColor object representing an ARGB value. */ CXTPChartColor GetBorderActualColor() const; /** * @brief * This function creates a label view drawing command object. * * @param pDC Pointer to a CXTPChartDeviceContext object. * @param rcBounds The rectangular boundary of the legend. * * @return Returns a new label view drawing command object. */ virtual CXTPChartDeviceCommand* CreateLegendDeviceCommand(CXTPChartDeviceContext* pDC, CRect rcBounds); }; /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTAREASERIESVIEW_H__) /** @endcond */