PlotInstantSerieForm.js
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* Project : AMDA-NG
* Name : PlotInstantSerieForm.js
* @class amdaPlotComp.PlotInstantSerieForm
* @extends amdaPlotComp.PlotStandardForm
* @brief Form to define specifics instant serie options
* @author Benjamin Renard
* @version $Id: PlotInstantSerieForm.js benjamin $
*/
Ext.define('amdaPlotComp.PlotInstantSerieForm', {
extend: 'amdaPlotComp.PlotStandardForm',
setObject : function(object) {
this.object = object.get('param-drawing-object');
this.loadRecord(this.object);
},
getFormItems: function() {
var linesItems = [
this.addStandardCombo('iserie-lines-style', 'Style', amdaPlotObj.PlotObjectConfig.availableLinesStyles),
this.addStandardFloat('iserie-lines-width', 'Width', 1, 10),
this.addStandardColor('iserie-lines-color', 'Color', amdaPlotObj.PlotObjectConfig.availableColors)
];
var symbolsItems = [
this.addStandardCombo('iserie-symbols-type', 'Type', amdaPlotObj.PlotObjectConfig.availableSymbolsTypes),
this.addStandardFloat('iserie-symbols-size', 'Size', 1, 10),
this.addStandardColor('iserie-symbols-color', 'Color', amdaPlotObj.PlotObjectConfig.availableColors)
];
return [
this.addStandardCheck('iserie-tableonx', 'Table on X axis'),
this.addStandardFieldSet('Lines', 'iserie-lines-activated', linesItems),
this.addStandardFieldSet('Symbols', 'iserie-symbols-activated', symbolsItems)
];
}
});