/** * @file XTPChartRadarAreaSeriesStyle.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(__XTPCHARTRADARAREASERIESSTYLE_H__) # define __XTPCHARTRADARAREASERIESSTYLE_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 * This class represents a line series style, which is a kind of * CXTPChartSeriesStyle. * * @details * A point chart is a type of graph which displays information as a * series of data points. It is a basic type of chart common in many * fields. */ class _XTP_EXT_CLASS CXTPChartRadarAreaSeriesStyle : public CXTPChartRadarPointSeriesStyle { /** @cond */ DECLARE_SERIAL(CXTPChartRadarAreaSeriesStyle) /** @endcond */ public: /** * @brief * Constructs a CXTPChartRadarAreaSeriesStyle object. */ CXTPChartRadarAreaSeriesStyle(); /** * @brief * Destroys a CXTPChartRadarAreaSeriesStyle object, handles cleanup. */ virtual ~CXTPChartRadarAreaSeriesStyle(); public: void DoPropExchange(CXTPPropExchange* pPX); public: /** * @brief * Call this function to get the background fill style. * * @return * Returns the pointer to a CXTPChartFillStyle object, which abstracts * various fill styles. */ CXTPChartFillStyle* GetFillStyle() const; CXTPChartBorder* GetBorder() const; public: /** * @brief * Call this function to get the transparency of the filled area with * respect to the background. * * @return * Returns an integer whose values are from 0 to 255. * * @details * A value of 0 means fully transparent and 255 means fully opaque. */ int GetTransparency() const; /** * @brief * Call this function to set the transparency of the filled area with * respect to the background. * * @param nTransparency an integer whose values are from 0 to 255. * * @details * A value of 0 means fully transparent and 255 means fully opaque. */ void SetTransparency(int nTransparency); protected: /** * @brief * Call this function to create a view of the point series. * * @param pSeries A pointer to the chart series object. * @param pDiagramView A pointer to the diagram view object. * * @return * Returns a pointer to the associated series view object. */ virtual CXTPChartSeriesView* CreateView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); # ifdef _XTP_ACTIVEX public: /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartRadarAreaSeriesStyle); DECLARE_OLECREATE_EX(CXTPChartRadarAreaSeriesStyle) LPDISPATCH OleGetFillStyle(); LPDISPATCH OleGetBorder(); /** @endcond */ # endif protected: int m_nTransparency; /**< The transparency values range from 0 to 255.*/ CXTPChartBorder* m_pBorder; /**< The chart border object pointer.*/ CXTPChartFillStyle* m_pFillStyle; /**< The chart background fill style.*/ }; AFX_INLINE int CXTPChartRadarAreaSeriesStyle::GetTransparency() const { return m_nTransparency; } AFX_INLINE void CXTPChartRadarAreaSeriesStyle::SetTransparency(int nTransparency) { m_nTransparency = nTransparency; OnChartChanged(); } AFX_INLINE CXTPChartFillStyle* CXTPChartRadarAreaSeriesStyle::GetFillStyle() const { return m_pFillStyle; } AFX_INLINE CXTPChartBorder* CXTPChartRadarAreaSeriesStyle::GetBorder() const { return m_pBorder; } /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTRADARAREASERIESSTYLE_H__) /** @endcond */