Blame view

js/app/views/PlotComponents/PlotIntervalsForm.js 979 Bytes
ebebd92d   Benjamin Renard   Add intervals dra...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
 * Project   : AMDA-NG
 * Name      : PlotIntervalsForm.js
 * @class   amdaPlotComp.PlotIntervalsForm
 * @extends amdaPlotComp.PlotStandardForm
 * @brief   Form to define specifics intervals options
 * @author  Benjamin Renard
 * @version $Id: PlotIntervalsForm.js benjamin $
 */

Ext.define('amdaPlotComp.PlotIntervalsForm', {
	extend: 'amdaPlotComp.PlotStandardForm',
	
	setObject : function(object) {
		this.object = object.get('param-drawing-object');
		this.loadRecord(this.object);
	},
	
	getFormItems: function() {
7b86b04f   Erdogan Furkan   IHM modifications...
20
21
22
23
24
25
26
		var legendItems = [
			this.addStandardText('legend-text-value', 'Text'),
			this.addStandardCombo('legend-text-position', 'Position', amdaPlotObj.PlotObjectConfig.availableLegendTextPositions),
			this.addStandardFont('legend-text-font')]

		return [
			this.addColorsPicker('intervals-color', 'Color', amdaPlotObj.PlotObjectConfig.availableColorsNew, 'none'),
58c42032   Benjamin Renard   Fix
27
			this.addStandardFieldSet('Legend', 'legend-text-activated', legendItems)
ebebd92d   Benjamin Renard   Add intervals dra...
28
29
30
		];
	}
});