/** * 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() { 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), this.addStandardFont('legend-text-font') ]; } });