Blame view

js/app/views/PlotComponents/PlotLayoutVerticalForm.js 1.58 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
/**
 * Project   : AMDA-NG
 * Name      : PlotLayoutVerticalForm.js
 * @class   amdaPlotComp.PlotLayoutVerticalForm
 * @extends amdaPlotComp.PlotStandardForm
 * @brief   Form to define specifics vertical layout options
 * @author  Benjamin Renard
 * @version $Id: PlotLayoutVerticalForm.js benjamin $
 */

Ext.define('amdaPlotComp.PlotLayoutVerticalForm', {
	extend: 'amdaPlotComp.PlotStandardForm',
	
	setObject : function(object) {
		this.object = object.get('page-layout-object');
		this.loadRecord(this.object);
	},
	
	getFormItems: function() {
		var timePlotDimItems = [
            //this.addStandardFloat('layout-timeplot-width', 'Panels width', 0, 1, true),
            this.addStandardFloat('layout-timeplot-height', 'Panels height', 0, 1, true)
		];
		
		var xyPlotDimItems = [
	        this.addStandardFloat('layout-xyplot-width', 'Panels width', 0, 1, true),
		    this.addStandardFloat('layout-xyplot-height', 'Panels height', 0, 1, true)
		];
29f02ab8   Benjamin Renard   Add layout proper...
29
30
31
32

		var legendTimeAxesVisibilityItems = [
		    this.addStandardCheck('layout-timeaxes-legend-lowerone', 'Only for the lower one')
		];
003ba315   Benjamin Renard   Add Epoch Plot an...
33
34
35
36
37
		
		return [
		    this.addStandardFloat('layout-panel-height', 'General Panels height', 0, 1),
		    this.addStandardFloat('layout-panel-spacing', 'Panels spacing', 0, 1),
		    this.addStandardCheck('layout-expand', 'Expand panels'),
29f02ab8   Benjamin Renard   Add layout proper...
38
		    this.addStandardFieldSet('Legend visibility for time axes', '', legendTimeAxesVisibilityItems),
003ba315   Benjamin Renard   Add Epoch Plot an...
39
40
41
42
		    this.addStandardFieldSet('Time / Epoch Panels Dimensions', '', timePlotDimItems),
		    this.addStandardFieldSet('Scatter / Instant Panels Dimensions', '', xyPlotDimItems)
		];
	}
29f02ab8   Benjamin Renard   Add layout proper...
43
});