diff src/java/de/intevation/mxd/utils/MapToXMLUtils.java @ 179:f3a91cd7440b

Added a first version of feature labeling.
author raimund renkert <raimund.renkert@intevation.de>
date Fri, 08 Jul 2011 16:32:05 +0200
parents cd55975ba0c4
children f4eb506499f5
line wrap: on
line diff
--- a/src/java/de/intevation/mxd/utils/MapToXMLUtils.java	Thu Jul 07 16:33:21 2011 +0200
+++ b/src/java/de/intevation/mxd/utils/MapToXMLUtils.java	Fri Jul 08 16:32:05 2011 +0200
@@ -139,6 +139,17 @@
         renderer.appendChild(node);
         return node;
     }
+    
+    /**
+     * Add a label element to the map.
+     * @param layer The parent layer element.
+     * @return The label element.
+     */
+    public Element addLabel(Element layer) {
+        Element node = creator.create("label");
+        layer.appendChild(node);
+        return node;
+    }
 
     /**
      * Print out the XML document.
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)