comparison src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java @ 48:8e6d529e9a22

Completed the CharacterSymbolMarkerReader.
author Raimund Renkert <rrenkert@intevation.de>
date Wed, 20 Apr 2011 11:48:46 +0200
parents 5fc813f40fa5
children 5c5ef5768893
comparison
equal deleted inserted replaced
47:5fc813f40fa5 48:8e6d529e9a22
101 "tranparency", 101 "tranparency",
102 String.valueOf(c.getTransparency())); 102 String.valueOf(c.getTransparency()));
103 symbolElement.setAttribute( 103 symbolElement.setAttribute(
104 "name", 104 "name",
105 symbol.getNameString()); 105 symbol.getNameString());
106 symbolElement.setAttribute(
107 "char",
108 String.valueOf(symbol.getCharacterIndex()));
109
106 Font f = symbol.getFont(); 110 Font f = symbol.getFont();
107 //TODO Read the font attributes. 111 symbolElement.setAttribute("font", f.getName());
112 symbolElement.setAttribute("char_set", String.valueOf(f.getCharset()));
113 symbolElement.setAttribute("bold", String.valueOf(f.getBold()));
114 symbolElement.setAttribute("italic", String.valueOf(f.getItalic()));
115 symbolElement.setAttribute("font_size", String.valueOf(f.getSize()));
116 symbolElement.setAttribute(
117 "strike_through",
118 String.valueOf(f.getStrikethrough()));
119 symbolElement.setAttribute("weight", String.valueOf(f.getWeight()));
108 symbolElement.setAttribute("style", "char"); 120 symbolElement.setAttribute("style", "char");
109 return symbolElement; 121 return symbolElement;
110 } 122 }
111 } 123 }
112 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 124 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)