comparison src/java/de/intevation/mxd/reader/PictureLineSymbolReader.java @ 84:2362609ffa66

Added TODOs for picture symbols.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 27 May 2011 14:15:14 +0200
parents 59e06c405a9a
children 18e4f143896b
comparison
equal deleted inserted replaced
83:59e06c405a9a 84:2362609ffa66
60 * 60 *
61 * @return The XML node. 61 * @return The XML node.
62 */ 62 */
63 public Element read() 63 public Element read()
64 throws Exception { 64 throws Exception {
65 //TODO Read the picture from mxd and write it as base64 string to the
66 // XML Element.
65 logger.debug("read()"); 67 logger.debug("read()");
66 Element symbolElement = util.addSymbol(parent); 68 Element symbolElement = util.addSymbol(parent);
67 69
68 symbolElement.setAttribute("name", symbol.getNameString()); 70 symbolElement.setAttribute("name", symbol.getNameString());
69 symbolElement.setAttribute("style", "picture"); 71 symbolElement.setAttribute("style", "picture");
93 symbolElement.setAttribute( 95 symbolElement.setAttribute(
94 "y_scale", 96 "y_scale",
95 String.valueOf(symbol.getYScale())); 97 String.valueOf(symbol.getYScale()));
96 98
97 symbolElement.setAttribute("width", String.valueOf(symbol.getWidth())); 99 symbolElement.setAttribute("width", String.valueOf(symbol.getWidth()));
98
99 Picture pic = symbol.getPicture();
100 Image im = pic.toImage();
101 //TODO Save the image.
102
103 return symbolElement; 100 return symbolElement;
104 } 101 }
105 } 102 }
106 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 103 // 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)