Blame view

js/app/models/PlotObjects/PlotSerieObject.js 3.41 KB
17433635   Benjamin Renard   Add series and sp...
1
2
3
4
/**
 * Project      : AMDA-NG
 * Name         : PlotSerieObject.js
 * @class   amdaPlotObj.PlotSerieObject
e84ed2cf   Benjamin Renard   Add Interval Tick...
5
 * @extends amdaPlotObj.PlotBaseSerieObject
17433635   Benjamin Renard   Add series and sp...
6
7
8
9
10
11
12
13
14
15
16
 * @brief   Plot Serie Business Object Definition 
 * @author  Benjamin Renard
 * @version $Id: PlotSerieObject.js benjamin $
 ******************************************************************************
 *    FT Id     :   Date   : Name - Description
 ******************************************************************************
 *	:           :18/08/2015: BRE  - file creation
 */
 
 		
Ext.define('amdaPlotObj.PlotSerieObject', {
e84ed2cf   Benjamin Renard   Add Interval Tick...
17
	extend: 'amdaPlotObj.PlotBaseSerieObject',
17433635   Benjamin Renard   Add series and sp...
18
19
	
	fields : [
17433635   Benjamin Renard   Add series and sp...
20
	          //Only used for xyPlot
003ba315   Benjamin Renard   Add Epoch Plot an...
21
	          {name: 'serie-xaxis-param', type: 'string'},
df008372   Benjamin Renard   Min/max value def...
22
23
	          {name: 'serie-xvalue-min', type: 'float', useNull:true},
	          {name: 'serie-xvalue-max', type: 'float', useNull:true},
24b02d83   Benjamin Renard   Add definition of...
24
	          {name: 'serie-resampling-mode', type: 'string'},
e84ed2cf   Benjamin Renard   Add Interval Tick...
25
26
27
28
29
30
31
32
33
34
			  
			  //Only used for timePlot
			  {name: 'serie-errorbar-activated', type: 'boolean'},
			  {name: 'serie-errorbar-type', type: 'string'},
			  {name: 'serie-errorbar-lines-style', type: 'string'},
	          {name: 'serie-errorbar-lines-width', type: 'float'},
	          {name: 'serie-errorbar-lines-color', type: 'string'},
			  {name: 'serie-errorbar-minparam', type: 'string'},
			  {name: 'serie-errorbar-maxparam', type: 'string'},
			  {name: 'serie-errorbar-deltaparam', type: 'string'}
17433635   Benjamin Renard   Add series and sp...
35
36
    ],
    
a971060f   Benjamin Renard   Fix some bugs
37
38
39
    constructor: function(){
        var me = this;
        me.callParent(arguments);
a971060f   Benjamin Renard   Fix some bugs
40
41
    },
    
17433635   Benjamin Renard   Add series and sp...
42
43
    setDefaultValues: function()
    {
e84ed2cf   Benjamin Renard   Add Interval Tick...
44
45
46
47
48
49
50
51
		this.set('serie-errorbar-activated', false);
		this.set('serie-errorbar-type', amdaPlotObj.PlotObjectConfig.defaultValues.serie.errorbar.type);
		this.set('serie-errorbar-lines-style', amdaPlotObj.PlotObjectConfig.defaultValues.serie.errorbar.lines.style);
	    this.set('serie-errorbar-lines-width', amdaPlotObj.PlotObjectConfig.defaultValues.serie.errorbar.lines.width);
	    this.set('serie-errorbar-lines-color', amdaPlotObj.PlotObjectConfig.defaultValues.serie.errorbar.lines.color);
		this.set('serie-errorbar-minparam', '');
		this.set('serie-errorbar-maxparam', '');
		this.set('serie-errorbar-deltaparam', '');
24b02d83   Benjamin Renard   Add definition of...
52
    	
17433635   Benjamin Renard   Add series and sp...
53
    	this.set('serie-xaxis-param', '');
003ba315   Benjamin Renard   Add Epoch Plot an...
54
    	this.set('serie-resampling-mode', amdaPlotObj.PlotObjectConfig.defaultValues.serie.resamplingMode);
e84ed2cf   Benjamin Renard   Add Interval Tick...
55
56
		
		this.callParent(arguments);
17433635   Benjamin Renard   Add series and sp...
57
58
59
60
    },
    
    getJsonValues : function() 
    {
e84ed2cf   Benjamin Renard   Add Interval Tick...
61
    	var serieValues  = this.callParent(arguments);
17433635   Benjamin Renard   Add series and sp...
62
    	
17433635   Benjamin Renard   Add series and sp...
63
    	serieValues['serie-xaxis-param'] = this.get('serie-xaxis-param');
df008372   Benjamin Renard   Min/max value def...
64
65
    	serieValues['serie-xvalue-min'] = this.get('serie-xvalue-min');
    	serieValues['serie-xvalue-max'] = this.get('serie-xvalue-max');
003ba315   Benjamin Renard   Add Epoch Plot an...
66
    	serieValues['serie-resampling-mode'] = this.get('serie-resampling-mode');
17433635   Benjamin Renard   Add series and sp...
67
    	
e84ed2cf   Benjamin Renard   Add Interval Tick...
68
69
70
71
72
73
74
75
76
    	serieValues['serie-errorbar-activated'] = this.get('serie-errorbar-activated');
    	serieValues['serie-errorbar-type'] = this.get('serie-errorbar-type');
		serieValues['serie-errorbar-lines-style'] = this.get('serie-errorbar-lines-style');
		serieValues['serie-errorbar-lines-width'] = this.get('serie-errorbar-lines-width');
		serieValues['serie-errorbar-lines-color'] = this.get('serie-errorbar-lines-color');
		serieValues['serie-errorbar-minparam'] = this.get('serie-errorbar-minparam');
		serieValues['serie-errorbar-maxparam'] = this.get('serie-errorbar-maxparam');
		serieValues['serie-errorbar-deltaparam'] = this.get('serie-errorbar-deltaparam');
		
17433635   Benjamin Renard   Add series and sp...
77
78
79
    	return serieValues;
    }
});