Révision 193
tmp/org.txm.specificities.core/src/org/txm/specificities/core/preferences/SpecificitiesPreferences.java (revision 193) | ||
---|---|---|
4 | 4 |
import org.eclipse.core.runtime.preferences.DefaultScope; |
5 | 5 |
import org.osgi.framework.FrameworkUtil; |
6 | 6 |
import org.osgi.service.prefs.Preferences; |
7 |
import org.txm.chartsengine.core.preferences.ChartsEnginePreferences; |
|
7 | 8 |
import org.txm.core.preferences.TXMPreferences; |
8 | 9 |
|
9 | 10 |
/** |
... | ... | |
47 | 48 |
|
48 | 49 |
|
49 | 50 |
// shared charts rendering preferences |
50 |
super.initializeChartsEngineSharedPreferences(preferences);
|
|
51 |
ChartsEnginePreferences.initializeChartsEngineSharedPreferences(preferences);
|
|
51 | 52 |
} |
52 | 53 |
|
53 | 54 |
} |
tmp/org.txm.ca.core/src/org/txm/ca/core/preferences/CAPreferences.java (revision 193) | ||
---|---|---|
4 | 4 |
import org.eclipse.core.runtime.preferences.DefaultScope; |
5 | 5 |
import org.osgi.framework.FrameworkUtil; |
6 | 6 |
import org.osgi.service.prefs.Preferences; |
7 |
import org.txm.chartsengine.core.preferences.ChartsEnginePreferences; |
|
7 | 8 |
import org.txm.core.preferences.TXMPreferences; |
8 | 9 |
|
9 | 10 |
/** |
... | ... | |
92 | 93 |
|
93 | 94 |
|
94 | 95 |
// shared charts rendering preferences |
95 |
super.initializeChartsEngineSharedPreferences(preferences);
|
|
96 |
ChartsEnginePreferences.initializeChartsEngineSharedPreferences(preferences);
|
|
96 | 97 |
} |
97 | 98 |
|
98 | 99 |
} |
tmp/org.txm.cah.core/src/org/txm/cah/core/preferences/CAHPreferences.java (revision 193) | ||
---|---|---|
4 | 4 |
import org.eclipse.core.runtime.preferences.DefaultScope; |
5 | 5 |
import org.osgi.framework.FrameworkUtil; |
6 | 6 |
import org.osgi.service.prefs.Preferences; |
7 |
import org.txm.chartsengine.core.preferences.ChartsEnginePreferences; |
|
7 | 8 |
import org.txm.core.preferences.TXMPreferences; |
8 | 9 |
|
9 | 10 |
/** |
... | ... | |
46 | 47 |
preferences.put(METRIC, "euclidean"); |
47 | 48 |
|
48 | 49 |
// shared charts rendering preferences |
49 |
super.initializeChartsEngineSharedPreferences(preferences);
|
|
50 |
ChartsEnginePreferences.initializeChartsEngineSharedPreferences(preferences);
|
|
50 | 51 |
} |
51 | 52 |
|
52 | 53 |
} |
tmp/org.txm.partition.core/src/org/txm/partition/core/preferences/PartitionDimensionsPreferences.java (revision 193) | ||
---|---|---|
4 | 4 |
import org.eclipse.core.runtime.preferences.DefaultScope; |
5 | 5 |
import org.osgi.framework.FrameworkUtil; |
6 | 6 |
import org.osgi.service.prefs.Preferences; |
7 |
import org.txm.chartsengine.core.preferences.ChartsEnginePreferences; |
|
7 | 8 |
import org.txm.core.preferences.TXMPreferences; |
8 | 9 |
|
9 | 10 |
/** |
... | ... | |
35 | 36 |
preferences.putBoolean(CHART_DIMENSIONS_SORTED_BY_SIZE, false); |
36 | 37 |
|
37 | 38 |
// shared charts rendering preferences |
38 |
super.initializeChartsEngineSharedPreferences(preferences);
|
|
39 |
ChartsEnginePreferences.initializeChartsEngineSharedPreferences(preferences);
|
|
39 | 40 |
} |
40 | 41 |
|
41 | 42 |
} |
tmp/org.txm.progression.core/src/org/txm/progression/core/preferences/ProgressionPreferences.java (revision 193) | ||
---|---|---|
4 | 4 |
import org.eclipse.core.runtime.preferences.DefaultScope; |
5 | 5 |
import org.osgi.framework.FrameworkUtil; |
6 | 6 |
import org.osgi.service.prefs.Preferences; |
7 |
import org.txm.chartsengine.core.preferences.ChartsEnginePreferences; |
|
7 | 8 |
import org.txm.core.preferences.TXMPreferences; |
8 | 9 |
|
9 | 10 |
/** |
... | ... | |
51 | 52 |
preferences.putBoolean(CHART_MONO_STYLE, true); |
52 | 53 |
|
53 | 54 |
// shared charts rendering preferences |
54 |
super.initializeChartsEngineSharedPreferences(preferences);
|
|
55 |
ChartsEnginePreferences.initializeChartsEngineSharedPreferences(preferences);
|
|
55 | 56 |
} |
56 | 57 |
|
57 | 58 |
} |
tmp/org.txm.textsbalance.core/src/org/txm/textsbalance/core/preferences/TextsBalancePreferences.java (revision 193) | ||
---|---|---|
4 | 4 |
import org.eclipse.core.runtime.preferences.DefaultScope; |
5 | 5 |
import org.osgi.framework.FrameworkUtil; |
6 | 6 |
import org.osgi.service.prefs.Preferences; |
7 |
import org.txm.chartsengine.core.preferences.ChartsEnginePreferences; |
|
7 | 8 |
import org.txm.core.preferences.TXMPreferences; |
8 | 9 |
|
9 | 10 |
/** |
... | ... | |
43 | 44 |
preferences.putInt(STRUCTURAL_UNIT_PROPERTY_INDEX, 0); |
44 | 45 |
|
45 | 46 |
// shared charts rendering preferences |
46 |
super.initializeChartsEngineSharedPreferences(preferences);
|
|
47 |
ChartsEnginePreferences.initializeChartsEngineSharedPreferences(preferences);
|
|
47 | 48 |
} |
48 | 49 |
|
49 | 50 |
|
tmp/org.txm.wordcloud.core/src/org/txm/wordcloud/core/preferences/WordCloudPreferences.java (revision 193) | ||
---|---|---|
4 | 4 |
import org.eclipse.core.runtime.preferences.DefaultScope; |
5 | 5 |
import org.osgi.framework.FrameworkUtil; |
6 | 6 |
import org.osgi.service.prefs.Preferences; |
7 |
import org.txm.chartsengine.core.preferences.ChartsEnginePreferences; |
|
7 | 8 |
import org.txm.core.preferences.TXMPreferences; |
8 | 9 |
|
9 | 10 |
/** |
... | ... | |
42 | 43 |
preferences.putBoolean(RANDOM_POSITION, false); |
43 | 44 |
|
44 | 45 |
// shared charts rendering preferences |
45 |
super.initializeChartsEngineSharedPreferences(preferences);
|
|
46 |
ChartsEnginePreferences.initializeChartsEngineSharedPreferences(preferences);
|
|
46 | 47 |
} |
47 | 48 |
|
48 | 49 |
} |
tmp/org.txm.chartsengine.core/META-INF/MANIFEST.MF (revision 193) | ||
---|---|---|
3 | 3 |
Bundle-Name: Charts Engine Core |
4 | 4 |
Bundle-SymbolicName: org.txm.chartsengine.core;singleton:=true |
5 | 5 |
Bundle-Version: 1.0.0.qualifier |
6 |
Require-Bundle: org.eclipse.core.runtime, |
|
7 |
jfreechart;bundle-version="1.0.17", |
|
8 |
org.txm.utils;bundle-version="1.0.0", |
|
9 |
org.txm.core;bundle-version="0.7.0" |
|
6 |
Require-Bundle: org.txm.core;bundle-version="0.7.0", |
|
7 |
org.eclipse.core.runtime, |
|
8 |
jfreechart;bundle-version="1.0.17" |
|
10 | 9 |
Bundle-RequiredExecutionEnvironment: JavaSE-1.6 |
11 | 10 |
Bundle-ActivationPolicy: lazy |
12 | 11 |
Export-Package: org.txm.chartsengine.core, |
tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/ChartsEngine.java (revision 193) | ||
---|---|---|
9 | 9 |
import org.eclipse.core.runtime.IConfigurationElement; |
10 | 10 |
import org.eclipse.core.runtime.Platform; |
11 | 11 |
import org.txm.chartsengine.core.messages.ChartsEngineCoreMessages; |
12 |
import org.txm.chartsengine.core.preferences.ChartsEnginePreferences; |
|
13 |
import org.txm.core.preferences.TXMPreferences; |
|
12 | 14 |
import org.txm.utils.BundleUtils; |
13 | 15 |
import org.txm.utils.logger.Log; |
14 | 16 |
|
... | ... | |
21 | 23 |
*/ |
22 | 24 |
public abstract class ChartsEngine { |
23 | 25 |
|
26 |
|
|
27 |
// FIXME: should be done in an activator? |
|
28 |
static { |
|
29 |
// creates charts engine |
|
30 |
ChartsEngine.createChartsEngines(); |
|
31 |
ChartsEngine.setCurrrentChartsEngine(TXMPreferences.getString(ChartsEnginePreferences.PREFERENCES_NODE, ChartsEnginePreferences.CURRENT_NAME)); |
|
32 |
|
|
33 |
TXMPreferences.alternativeNodesQualifiers = new String[]{ChartsEnginePreferences.PREFERENCES_NODE}; |
|
34 |
|
|
35 |
} |
|
36 |
|
|
37 |
|
|
38 |
|
|
24 | 39 |
/** |
25 | 40 |
* Chart type constants. |
26 | 41 |
*/ |
tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/preferences/ChartsEnginePreferences.java (revision 193) | ||
---|---|---|
74 | 74 |
this.initializeChartsEngineSharedPreferences(preferences); |
75 | 75 |
} |
76 | 76 |
|
77 |
/** |
|
78 |
* Initializes the charts engine shared default preferences. |
|
79 |
* @param preferences |
|
80 |
*/ |
|
81 |
public static void initializeChartsEngineSharedPreferences(Preferences preferences) { |
|
82 |
preferences.putBoolean(ChartsEnginePreferences.SHOW_TITLE, true); |
|
83 |
preferences.putBoolean(ChartsEnginePreferences.SHOW_LEGEND, true); |
|
84 |
preferences.putBoolean(ChartsEnginePreferences.SHOW_GRID, true); |
|
85 |
preferences.putInt(ChartsEnginePreferences.RENDERING_COLORS_MODE, ChartsEngine.RENDERING_COLORS_MODE); |
|
86 |
} |
|
77 | 87 |
} |
78 | 88 |
|
Formats disponibles : Unified diff