Révision 329
tmp/org.txm.chartsengine.core/src/org/txm/chartsengine/core/preferences/ChartsEnginePreferences.java (revision 329) | ||
---|---|---|
57 | 57 |
public final static String MONOCHROME_COLOR = PREFERENCES_PREFIX + "monochrome_color"; //$NON-NLS-1$ |
58 | 58 |
|
59 | 59 |
/** The Constant RDEVICE. */ |
60 |
public static final String RDEVICE = "export_rdevice"; //$NON-NLS-1$
|
|
60 |
public static final String RDEVICE = "export_format"; //$NON-NLS-1$
|
|
61 | 61 |
|
62 | 62 |
/** |
63 | 63 |
* Constant for the font. |
... | ... | |
76 | 76 |
Preferences preferences = DefaultScope.INSTANCE.getNode(PREFERENCES_NODE); |
77 | 77 |
|
78 | 78 |
preferences.put(CURRENT_NAME, "jfreechart_charts_engine"); //$NON-NLS-1$ |
79 |
preferences.put(RDEVICE, "svg"); |
|
80 |
|
|
79 | 81 |
|
80 | 82 |
initializeChartsEngineSharedPreferences(preferences); |
81 | 83 |
} |
... | ... | |
86 | 88 |
* @param preferences |
87 | 89 |
*/ |
88 | 90 |
public static void initializeChartsEngineSharedPreferences(Preferences preferences) { |
89 |
preferences.put(ChartsEnginePreferences.RDEVICE, "svg"); |
|
90 |
preferences.putBoolean(ChartsEnginePreferences.SHOW_TITLE, true); |
|
91 |
preferences.putBoolean(ChartsEnginePreferences.SHOW_LEGEND, true); |
|
92 |
preferences.putBoolean(ChartsEnginePreferences.SHOW_GRID, true); |
|
93 |
preferences.putInt(ChartsEnginePreferences.RENDERING_COLORS_MODE, ChartsEngine.RENDERING_COLORS_MODE); |
|
94 |
preferences.put(ChartsEnginePreferences.MONOCHROME_COLOR, "0,220,20"); //$NON-NLS-1$ |
|
91 |
preferences.putBoolean(SHOW_TITLE, true); |
|
92 |
preferences.putBoolean(SHOW_LEGEND, true); |
|
93 |
preferences.putBoolean(SHOW_GRID, true); |
|
94 |
preferences.putInt(RENDERING_COLORS_MODE, ChartsEngine.RENDERING_COLORS_MODE); |
|
95 |
preferences.put(MONOCHROME_COLOR, "0,220,20"); //$NON-NLS-1$ |
|
95 | 96 |
|
96 | 97 |
// FIXME: maybe need need to check here the target OS and set a default unicode installed font |
97 | 98 |
preferences.put(FONT, "1|Lucida Sans Unicode|11.0|0|WINDOWS|1|-16|0|0|0|400|0|0|0|0|3|2|1|34|Lucida Sans Unicode;"); //$NON-NLS-1$ |
Formats disponibles : Unified diff