/** * Project  : AMDA-NG * Name : PlotLegendTextForm.js * @class amdaPlotComp.PlotLegendTextForm * @extends amdaPlotComp.PlotStandardForm * @brief Form to define specifics Text legend options * @author Benjamin Renard * @version $Id: PlotLegendTextForm.js benjamin $ */ Ext.define('amdaPlotComp.PlotLegendTextForm', { extend: 'amdaPlotComp.PlotStandardForm', setObject : function(object) { this.object = object; if (this.object != null) this.loadRecord(this.object); }, getFormItems: function() { var me = this; return [ this.addStandardText('legend-text-value', 'Text'), this.addStandardColor('legend-text-color', 'Color', amdaPlotObj.PlotObjectConfig.availableColors), this.addStandardCombo('legend-text-position', 'Position', amdaPlotObj.PlotObjectConfig.availableLegendTextPositions, function(name, value, oldValue) { me.object.set('legend-text-position', value); me.crtTree.refresh(); }), this.addStandardFont('legend-text-font') ]; } });