/** * @file XTPChartRangeBarSeriesStyle.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(__XTPCHARTRANGEBARSERIESSTYLE_H__) # define __XTPCHARTRANGEBARSERIESSTYLE_H__ /** @endcond */ # if _MSC_VER >= 1000 # pragma once # endif // _MSC_VER >= 1000 # include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" class CXTPChartSeriesView; /** * @brief * This class represents a RangeBar series style for the chart, which is a kind of * CXTPChartBarSeriesStyle. * * @details * A RangeBar chart or RangeBar graph is a chart with rectangular RangeBars with lengths * proportional to the values that they represent. RangeBar charts are used for * comparing two or more values that were taken over time or on different * conditions, usually on small data sets. */ class _XTP_EXT_CLASS CXTPChartRangeBarSeriesStyle : public CXTPChartBarSeriesStyle { /** @cond */ DECLARE_SERIAL(CXTPChartRangeBarSeriesStyle) /** @endcond */ public: /** * @brief * Constructs a CXTPChartRangeBarSeriesStyle object. */ CXTPChartRangeBarSeriesStyle(); /** * @brief * Destroys a CXTPChartRangeBarSeriesStyle object, handles cleanup. */ virtual ~CXTPChartRangeBarSeriesStyle(); public: CXTPChartMarker* GetMinValueMarker() const; CXTPChartMarker* GetMaxValueMarker() const; protected: /** * @brief * Call this function to create the view of the RangeBar series. * * @param pSeries A pointer to the chart series object to which this object * is associated with. * @param pDiagramView A pointer to the chart diagram view object to which this object * is associated with. * * @return * Returns a pointer to the associated series view object. */ virtual CXTPChartSeriesView* CreateView(CXTPChartSeries* pSeries, CXTPChartDiagramView* pDiagramView); public: void DoPropExchange(CXTPPropExchange* pPX); protected: CXTPChartMarker* m_pMinValueMarker; CXTPChartMarker* m_pMaxValueMarker; protected: # ifdef _XTP_ACTIVEX public: /** @cond */ DECLARE_DISPATCH_MAP() DECLARE_INTERFACE_MAP() DECLARE_OLETYPELIB_EX(CXTPChartRangeBarSeriesStyle); DECLARE_OLECREATE_EX(CXTPChartRangeBarSeriesStyle); afx_msg LPDISPATCH OleGetMinValueMarker(); afx_msg LPDISPATCH OleGetMaxValueMarker(); /** @endcond */ # endif }; AFX_INLINE CXTPChartMarker* CXTPChartRangeBarSeriesStyle::GetMinValueMarker() const { return m_pMinValueMarker; } AFX_INLINE CXTPChartMarker* CXTPChartRangeBarSeriesStyle::GetMaxValueMarker() const { return m_pMaxValueMarker; } /** @cond */ # include "Common/Base/Diagnostic/XTPEnableNoisyWarnings.h" #endif //#if !defined(__XTPCHARTRANGEBARSERIESSTYLE_H__) /** @endcond */