Blame view

js/app/views/PlotComponents/PlotLayoutManualForm.js 1.22 KB
003ba315   Benjamin Renard   Add Epoch Plot an...
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
/**
 * Project   : AMDA-NG
 * Name      : PlotLayoutManualForm.js
 * @class   amdaPlotComp.PlotLayoutManualForm
 * @extends amdaPlotComp.PlotStandardForm
 * @brief   Form to define specifics Manual layout options
 * @author  Benjamin Renard
 * @version $Id: PlotLayoutManualForm.js benjamin $
 */

Ext.define('amdaPlotComp.PlotLayoutManualForm', {
	extend: 'amdaPlotComp.PlotStandardForm',
	
	setObject : function(object) {
		this.object = object.get('page-layout-object');
		this.loadRecord(this.object);
	},
	
	getFormItems: function() {
		var timePlotMarginItems = [
		        this.addStandardFloat('layout-timeplot-margin-left', 'Panels left margin', 0, 100, true),
		        this.addStandardFloat('layout-timeplot-margin-right', 'Panels right margin', 0, 100, true)
		];
		            		
		var xyPlotMarginItems = [
		        this.addStandardFloat('layout-xyplot-margin-left', 'Panels left margin', 0, 100, true),
		        this.addStandardFloat('layout-xyplot-margin-right', 'Panels right margin', 0, 100, true)
		];
		           		
		return [
		        this.addStandardFieldSet('Time / Epoch Panels Margins', '', timePlotMarginItems),
		        this.addStandardFieldSet('Scatter / Instant Panels Margins', '', xyPlotMarginItems)
		];
	}
});