Blame view

js/app/models/PlotObjects/PlotHistogram1DSerieObject.js 2.5 KB
2ac3a3f9   Erdogan Furkan   For now, histo1D ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * Project      : TMA-AMDA
 * Name         : PlotHistogram1DSerieObject.js
 * @class   amdaPlotObj.PlotHistogram1DSerieObject
 * @extends amdaPlotObj.PlotBaseSerieObject
 * @brief   Plot Histogram1D Business Object Definition 
 * @author  Furkan Erdogan
 * @version $Id: PlotHistogram1DSerieObject.js furkan $
 ******************************************************************************
 *    FT Id     :   Date   : Name - Description
 ******************************************************************************
 *	:           :08/02/2023: FER  - file creation
 */
 
 		
Ext.define('amdaPlotObj.PlotHistogram1DSerieObject', {
	extend: 'amdaPlotObj.PlotBaseSerieObject',
	requires: ['amdaPlotObj.PlotAxisObject'],
	fields : [
        // {name: 'serie-xaxis-param', type: 'string'},
        // {name: 'serie-resampling-mode', type: 'string'},
			  {name: 'histo1d-function', type: 'string'},
ac2e2d61   Furkan   #11372 - Adding n...
23
			  {name: 'histotype-param', type: 'string' },
2ac3a3f9   Erdogan Furkan   For now, histo1D ...
24
			  {name: 'histo1d-xbinnumber', type: 'int'},
c4d04b8c   Erdogan Furkan   #11376 - Done.
25
			  {name: 'histo1d-style', type: 'string'},
2ac3a3f9   Erdogan Furkan   For now, histo1D ...
26
27
28
29
30
31
32
33
34
35
36
37
38
			  {name: 'histo1d-color', type: 'string', defaultValue: "none"}
    ],
    
    constructor: function(){
        var me = this;
        me.callParent(arguments);
    },
    
    setDefaultValues: function()
    {
    	// this.set('serie-xaxis-param', '');
    	// this.set('serie-resampling-mode', amdaDefaultValues.plot.serie.resamplingMode);
		this.set('histo1d-function', amdaDefaultValues.plot.histogram1D.histo1DFunction);
ac2e2d61   Furkan   #11372 - Adding n...
39
    	this.set('histotype-param', '');
2ac3a3f9   Erdogan Furkan   For now, histo1D ...
40
    	this.set('histo1d-xbinnumber', amdaDefaultValues.plot.histogram1D.xbinnumber);
c4d04b8c   Erdogan Furkan   #11376 - Done.
41
    	this.set('histo1d-style', amdaDefaultValues.plot.histogram1D.histo1DStyle);
2ac3a3f9   Erdogan Furkan   For now, histo1D ...
42
43
44
45
46
47
48
49
50
51
52
    	this.set('histo1d-color', amdaDefaultValues.plot.histogram1D.color);

	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['histo1d-function'] = this.get('histo1d-function');
ac2e2d61   Furkan   #11372 - Adding n...
53
    	serieValues['histotype-param'] = this.get('histotype-param');
2ac3a3f9   Erdogan Furkan   For now, histo1D ...
54
		serieValues['histo1d-xbinnumber'] = this.get('histo1d-xbinnumber');
c4d04b8c   Erdogan Furkan   #11376 - Done.
55
		serieValues['histo1d-style'] = this.get('histo1d-style');
2ac3a3f9   Erdogan Furkan   For now, histo1D ...
56
57
58
59
60
61
62
		serieValues['histo1d-color'] = this.get('histo1d-color');
    //   serieValues['histo1D-ybinnumber'] = this.get('histo1D-ybinnumber');
    //   serieValues['histo1D-smoothfactor'] = this.get('histo1D-smoothfactor');
    	
    	return serieValues;
    }
});