chartProperties.setTitle(getString(modelPreferences, "viewer.general.title", ""));
chartProperties.setDisplayDuration(getDouble(modelPreferences,
"viewer.general.displayDuration", 100.0));
AxisProperties xAxisProperties = chartProperties.getXAxisProperties();
xAxisProperties.setScaleMin(getFloat(modelPreferences, "viewer.xaxis.scaleMin",
(float) 0.0));
xAxisProperties.setScaleMax(getFloat(modelPreferences, "viewer.xaxis.scaleMax",
(float) 100.0));
xAxisProperties.setScaleMode(getInteger(modelPreferences, "viewer.xaxis.scaleMode",
0));
xAxisProperties.setAutoScale(getBoolean(modelPreferences, "viewer.xaxis.autoScale",
true));
xAxisProperties.setLabelFormat(getInteger(modelPreferences,
"viewer.xaxis.labelFormat", 0));
xAxisProperties.setTitle(getString(modelPreferences, "viewer.xaxis.title", ""));
String xaxisPrefix = "viewer.xaxis";
xAxisProperties.setColor(getColorAxis(modelPreferences, xaxisPrefix));
xAxisProperties
.setPosition(getInteger(modelPreferences, "viewer.xaxis.position", 1));
xAxisProperties.setSubGridVisible(getBoolean(modelPreferences,
"viewer.xaxis.subGridVisible", false));
xAxisProperties.setDrawOpposite(getBoolean(modelPreferences,
"viewer.xaxis.drawOpposite", true));
xAxisProperties.setVisible(getBoolean(modelPreferences, "viewer.xaxis.visible",
true));
AxisProperties y1AxisProperties = chartProperties.getY1AxisProperties();
y1AxisProperties.setScaleMin(getFloat(modelPreferences, "viewer.y1axis.scaleMin",
(float) 0.0));
y1AxisProperties.setScaleMax(getFloat(modelPreferences, "viewer.y1axis.scaleMin",
(float) 100.0));
y1AxisProperties.setScaleMode(getInteger(modelPreferences,
"viewer.y1axis.scaleMode", 0));
y1AxisProperties.setAutoScale(getBoolean(modelPreferences,
"viewer.y1axis.autoScale", true));
y1AxisProperties.setLabelFormat(getInteger(modelPreferences,
"viewer.y1axis.labelFormat", 0));
y1AxisProperties.setTitle(getString(modelPreferences, "viewer.y1axis.title", ""));
String y1axisPrefix = "viewer.y1axis";
y1AxisProperties.setColor(getColorAxis(modelPreferences, y1axisPrefix));
y1AxisProperties.setPosition(getInteger(modelPreferences, "viewer.y1axis.position",
6));
y1AxisProperties.setSubGridVisible(getBoolean(modelPreferences,
"viewer.y1axis.subGridVisible", false));
y1AxisProperties.setDrawOpposite(getBoolean(modelPreferences,
"viewer.y1axis.drawOpposite", true));
y1AxisProperties.setVisible(getBoolean(modelPreferences, "viewer.y1axis.visible",
true));
AxisProperties y2AxisProperties = chartProperties.getY2AxisProperties();
y2AxisProperties.setScaleMin(getFloat(modelPreferences, "viewer.y2axis.scaleMin",
(float) 0.0));
y2AxisProperties.setScaleMax(getFloat(modelPreferences, "viewer.y2axis.scaleMax",
(float) 100.0));
y2AxisProperties.setScaleMode(getInteger(modelPreferences,
"viewer.y2axis.scaleMode", 0));
y2AxisProperties.setAutoScale(getBoolean(modelPreferences,
"viewer.y2axis.autoScale", true));
y2AxisProperties.setLabelFormat(getInteger(modelPreferences,
"viewer.y2axis.labelFormat", 0));
y2AxisProperties.setTitle(getString(modelPreferences, "viewer.y2axis.title", ""));
String y2axisPrefix = "viewer.y2axis";
y2AxisProperties.setColor(getColorAxis(modelPreferences, y2axisPrefix));
y2AxisProperties.setPosition(getInteger(modelPreferences, "viewer.y2axis.position",
5));
y2AxisProperties.setSubGridVisible(getBoolean(modelPreferences,
"viewer.y2axis.subGridVisible", false));
y2AxisProperties.setDrawOpposite(getBoolean(modelPreferences,
"viewer.y2axis.drawOpposite", true));
y2AxisProperties.setVisible(getBoolean(modelPreferences, "viewer.y2axis.visible",
true));
chartProperties.setXAxisProperties(xAxisProperties);
chartProperties.setY1AxisProperties(y1AxisProperties);
chartProperties.setY2AxisProperties(y2AxisProperties);