}
bookmarks.appendChild(e);
}
}
ChartProperties chartProperties = UIPreferences.getChartProperties();
if (chartProperties != null) {
Element chartPropertiesElement = document.createElement("chartproperties");
String chartXml = ChartPropertiesXmlManager.toXmlString(chartProperties);
// chartPropertiesElement.setNodeValue(chartXml);
chartPropertiesElement.setAttribute("value", chartXml);
root.appendChild(chartPropertiesElement);
}
Map<String, PlotProperties> plotPropertiesMap = UIPreferences.getPlotPropertiesMap();
if (plotPropertiesMap != null && !plotPropertiesMap.isEmpty()) {
Element plotPropertiesElement = document.createElement("plotproperties");
root.appendChild(plotPropertiesElement);
Set<String> plotKeySet = plotPropertiesMap.keySet();
String plotXml = null;
for (String key : plotKeySet) {
Element itemElement = document.createElement("item");
itemElement.setAttribute("key", key);
plotXml = PlotPropertiesXmlManager.toXmlString(plotPropertiesMap.get(key));
itemElement.setTextContent(plotXml);
plotPropertiesElement.appendChild(itemElement);
}
}
Map<String, ImageProperties> imagePropertiesMap = UIPreferences.getImagePropertiesMap();
if (imagePropertiesMap != null && !imagePropertiesMap.isEmpty()) {
Element imagePropertiesElement = document.createElement("imageproperties");
root.appendChild(imagePropertiesElement);
Set<String> imageKeySet = imagePropertiesMap.keySet();
String imageXml = null;
ImageProperties prop = null;
for (String key : imageKeySet) {
prop = imagePropertiesMap.get(key);
if (prop != null) {
Element itemElement = document.createElement("item");
itemElement.setAttribute("key", key);
imageXml = ImagePropertiesXmlManager.toXmlString(prop);
itemElement.setTextContent(imageXml);
imagePropertiesElement.appendChild(itemElement);
}
}
}
Map<String, ChartProperties> chartPropertiesMap = UIPreferences.getChartPropertiesMap();
if (chartPropertiesMap != null && !chartPropertiesMap.isEmpty()) {
Element chartPropertiesElement = document.createElement("chartpropertiesmap");
root.appendChild(chartPropertiesElement);
Set<String> chartKeySet = chartPropertiesMap.keySet();
String chartXml = null;
ChartProperties prop = null;
for (String key : chartKeySet) {
prop = chartPropertiesMap.get(key);
if (prop != null) {
Element itemElement = document.createElement("item");
itemElement.setAttribute("key", key);