changeset 48:8e6d529e9a22

Completed the CharacterSymbolMarkerReader.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 20 Apr 2011 11:48:46 +0200
parents 5fc813f40fa5
children 0fecdcc28b1b
files ChangeLog src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java
diffstat 2 files changed, 18 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Apr 19 17:25:09 2011 +0200
+++ b/ChangeLog	Wed Apr 20 11:48:46 2011 +0200
@@ -1,3 +1,8 @@
+2011-04-20  Raimund Renkert <raimund.renkert@intevation.de>
+
+	* src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java:
+	  Read all the font attributes.
+
 2011-04-19  Raimund Renkert <raimund.renkert@intevation.de>
 
 	Added CharacterMarkerSymbol reader and extracted the ArrowMarkerSymbol
--- a/src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java	Tue Apr 19 17:25:09 2011 +0200
+++ b/src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java	Wed Apr 20 11:48:46 2011 +0200
@@ -103,8 +103,20 @@
         symbolElement.setAttribute(
             "name",
             symbol.getNameString());
+        symbolElement.setAttribute(
+            "char",
+            String.valueOf(symbol.getCharacterIndex()));
+
         Font f = symbol.getFont();
-//TODO Read the font attributes.
+        symbolElement.setAttribute("font", f.getName());
+        symbolElement.setAttribute("char_set", String.valueOf(f.getCharset()));
+        symbolElement.setAttribute("bold", String.valueOf(f.getBold()));
+        symbolElement.setAttribute("italic", String.valueOf(f.getItalic()));
+        symbolElement.setAttribute("font_size", String.valueOf(f.getSize()));
+        symbolElement.setAttribute(
+            "strike_through",
+            String.valueOf(f.getStrikethrough()));
+        symbolElement.setAttribute("weight", String.valueOf(f.getWeight()));
         symbolElement.setAttribute("style", "char");
         return symbolElement;
     }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)