/** * Project  : TMA-AMDA * Name : PlotHistogram2DSerieObject.js * @class amdaPlotObj.PlotHistogram2DSerieObject * @extends amdaPlotObj.PlotBaseSerieObject * @brief Plot Histogram2D Business Object Definition * @author Furkan Erdogan * @version $Id: PlotHistogram2DSerieObject.js furkan $ ****************************************************************************** * FT Id : Date : Name - Description ****************************************************************************** * : :08/02/2023: FER - file creation */ Ext.define('amdaPlotObj.PlotHistogram2DSerieObject', { extend: 'amdaPlotObj.PlotBaseSerieObject', requires: ['amdaPlotObj.PlotAxisObject'], fields : [ {name: 'serie-xaxis-param', type: 'string'}, {name: 'serie-resampling-mode', type: 'string'}, {name: 'histo2d-yaxis', type: 'string'}, {name: 'histo2d-function', type: 'string'}, {name: 'histotype-param', type: 'string' }, {name: 'histo2d-xbinnumber', type: 'int'}, {name: 'histo2d-ybinnumber', type: 'int'}, {name: 'histo2d-smoothfactor', type: 'int'} ], constructor: function(){ var me = this; if ((arguments.length > 0) && arguments[0]) { if (!arguments[0]['histo2d-yaxis']) { // Compatibility mode to support old saved requests arguments[0]['histo2d-yaxis'] = amdaDefaultValues.plot.histogram2D.histo2DyAxis; } } me.callParent(arguments); }, setDefaultValues: function() { this.set('serie-xaxis-param', ''); this.set('serie-resampling-mode', amdaDefaultValues.plot.serie.resamplingMode); this.set('histo2d-yaxis', amdaDefaultValues.plot.histogram2D.histo2DyAxis); this.set('histo2d-function', amdaDefaultValues.plot.histogram2D.histo2DFunction); this.set('histotype-param', ''); this.set('histo2d-xbinnumber', amdaDefaultValues.plot.histogram2D.xbinnumber); this.set('histo2d-ybinnumber', amdaDefaultValues.plot.histogram2D.ybinnumber); this.set('histo2d-smoothfactor', amdaDefaultValues.plot.histogram2D.smoothfactor) this.callParent(arguments); }, getJsonValues : function() { var serieValues = this.callParent(arguments); serieValues['serie-xaxis-param'] = this.get('serie-xaxis-param'); serieValues['serie-resampling-mode'] = this.get('serie-resampling-mode'); serieValues['histo2d-yaxis'] = this.get('histo2d-yaxis'); serieValues['histo2d-function'] = this.get('histo2d-function'); serieValues['histotype-param'] = this.get('histotype-param'); serieValues['histo2d-xbinnumber'] = this.get('histo2d-xbinnumber'); serieValues['histo2d-ybinnumber'] = this.get('histo2d-ybinnumber'); serieValues['histo2d-smoothfactor'] = this.get('histo2d-smoothfactor'); return serieValues; } });