comparison src/java/de/intevation/mxd/reader/CharacterMarkerSymbolReader.java @ 293:c2747cec2814

Save rotationElement in the symbol attributes as angleBinding
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 03 Sep 2012 17:20:11 +0200
parents df4e0946ef02
children a46adb3697fa
comparison
equal deleted inserted replaced
292:6e5fce16b495 293:c2747cec2814
89 * @return The XML node. 89 * @return The XML node.
90 */ 90 */
91 public Element read() { 91 public Element read() {
92 logger.debug("read()"); 92 logger.debug("read()");
93 Element symbolElement = util.addSymbol(parent); 93 Element symbolElement = util.addSymbol(parent);
94
95 // Save the rotationField value of the Element
96 if (!parent.getAttribute("rotationField").isEmpty()) {
97 logger.debug("Setting angleBinding to rotationField: " +
98 parent.getAttribute("rotationField"));
99 symbolElement.setAttribute("angleBinding",
100 parent.getAttribute("rotationField"));
101 }
94 102
95 try { 103 try {
96 symbolElement.setAttribute( 104 symbolElement.setAttribute(
97 "angle", 105 "angle",
98 String.valueOf(symbol.getAngle())); 106 String.valueOf(symbol.getAngle()));
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)