Commit 92d3a6f13940959e10f6ad7eea25219cc534a51f
1 parent
ba2fd748
Exists in
master
and in
68 other branches
us ok pour lines color
Showing
2 changed files
with
20 additions
and
6 deletions
Show diff stats
js/app/models/PlotObjects/PlotBaseSerieObject.js
... | ... | @@ -25,6 +25,7 @@ Ext.define('amdaPlotObj.PlotBaseSerieObject', { |
25 | 25 | {name: 'serie-resolution', type: 'int'}, |
26 | 26 | {name: 'serie-lines-activated', type: 'boolean'}, |
27 | 27 | {name: 'serie-lines-color-activated', type: 'boolean'}, |
28 | + {name: 'serie-lines-color-auto', type: 'boolean'}, | |
28 | 29 | {name: 'serie-lines-style', type: 'string'}, |
29 | 30 | {name: 'serie-lines-width', type: 'float'}, |
30 | 31 | {name: 'serie-lines-color', type: 'string'}, |
... | ... | @@ -86,6 +87,17 @@ Ext.define('amdaPlotObj.PlotBaseSerieObject', { |
86 | 87 | } |
87 | 88 | this.dirty = false; |
88 | 89 | }, |
90 | + getDefaultColor:function(name){ | |
91 | + var defaultClors = new Object(); | |
92 | + defaultClors['serie-lines-color'] = amdaPlotObj.PlotObjectConfig.defaultValues.serie.lines.color; | |
93 | + defaultClors['serie-symbols-color'] = amdaPlotObj.PlotObjectConfig.defaultValues.serie.symbols.color; | |
94 | + defaultClors['serie-timetick-color'] = amdaPlotObj.PlotObjectConfig.defaultValues.serie.timetick.color; | |
95 | + defaultClors['serie-timetick-symbols-color'] = amdaPlotObj.PlotObjectConfig.defaultValues.serie.timetick.symbols.color; | |
96 | + defaultClors['serie-timetick-firstsymbols-color'] = amdaPlotObj.PlotObjectConfig.defaultValues.serie.timetick.firstsymbols.color; | |
97 | + defaultClors['serie-intervaltick-color'] = amdaPlotObj.PlotObjectConfig.defaultValues.serie.intervaltick.color; | |
98 | + defaultClors['serie-intervaltick-symbols-color'] = amdaPlotObj.PlotObjectConfig.defaultValues.serie.intervaltick.symbols.color; | |
99 | + return defaultClors[name]; | |
100 | + }, | |
89 | 101 | |
90 | 102 | setDefaultValues: function () |
91 | 103 | { |
... | ... | @@ -97,6 +109,7 @@ Ext.define('amdaPlotObj.PlotBaseSerieObject', { |
97 | 109 | this.set('serie-lines-width', amdaPlotObj.PlotObjectConfig.defaultValues.serie.lines.width); |
98 | 110 | this.set('serie-lines-color', amdaPlotObj.PlotObjectConfig.defaultValues.serie.lines.color); |
99 | 111 | this.set('serie-lines-color-activated', false); |
112 | + this.set('serie-lines-color-auto', true); | |
100 | 113 | |
101 | 114 | this.set('serie-symbols-activated', false); |
102 | 115 | this.set('serie-symbols-type', amdaPlotObj.PlotObjectConfig.defaultValues.serie.symbols.type); |
... | ... | @@ -162,6 +175,7 @@ Ext.define('amdaPlotObj.PlotBaseSerieObject', { |
162 | 175 | serieValues['serie-lines-width'] = this.get('serie-lines-width'); |
163 | 176 | serieValues['serie-lines-color'] = this.get('serie-lines-color'); |
164 | 177 | serieValues['serie-lines-color-activated'] = this.get('serie-lines-color-activated'); |
178 | + serieValues['serie-lines-color-auto'] = this.get('serie-lines-color-auto'); | |
165 | 179 | serieValues['serie-errorbar-lines-rgb'] = this.get('serie-errorbar-lines-rgb'); |
166 | 180 | |
167 | 181 | serieValues['serie-symbols-activated'] = this.get('serie-symbols-activated'); | ... | ... |
js/app/models/PlotObjects/PlotSerieObject.js
... | ... | @@ -24,14 +24,14 @@ Ext.define('amdaPlotObj.PlotSerieObject', { |
24 | 24 | {name: 'serie-resampling-mode', type: 'string'}, |
25 | 25 | |
26 | 26 | //Only used for timePlot |
27 | - {name: 'serie-errorbar-activated', type: 'boolean'}, | |
28 | - {name: 'serie-errorbar-type', type: 'string'}, | |
29 | - {name: 'serie-errorbar-lines-style', type: 'string'}, | |
27 | + {name: 'serie-errorbar-activated', type: 'boolean'}, | |
28 | + {name: 'serie-errorbar-type', type: 'string'}, | |
29 | + {name: 'serie-errorbar-lines-style', type: 'string'}, | |
30 | 30 | {name: 'serie-errorbar-lines-width', type: 'float'}, |
31 | 31 | {name: 'serie-errorbar-lines-color', type: 'string'}, |
32 | - {name: 'serie-errorbar-minparam', type: 'string'}, | |
33 | - {name: 'serie-errorbar-maxparam', type: 'string'}, | |
34 | - {name: 'serie-errorbar-deltaparam', type: 'string'} | |
32 | + {name: 'serie-errorbar-minparam', type: 'string'}, | |
33 | + {name: 'serie-errorbar-maxparam', type: 'string'}, | |
34 | + {name: 'serie-errorbar-deltaparam', type: 'string'} | |
35 | 35 | ], |
36 | 36 | |
37 | 37 | constructor: function(){ | ... | ... |