/** * 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) ]; } });