PlotLegendTextForm.js
1.02 KB
/**
* 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.addColorsPicker('legend-text-color', 'Color', amdaDefaultConfigs.availableColorsNew),
this.addStandardCombo('legend-text-position', 'Position', amdaDefaultConfigs.availableLegendTextPositions, function(name, value, oldValue) {
me.object.set('legend-text-position', value);
me.crtTree.refresh();
}),
this.addStandardFont('legend-text-font')
];
}
});