Mercurial > mxd2map
comparison src/java/de/intevation/mxd/utils/MapToXMLUtils.java @ 315:1d77ea6a915d
Add basic support for Graphics Layers. For now this is restricted
to simple TextElements and the base layer.
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 17 Sep 2012 17:08:15 +0200 |
parents | 10e0aa283217 |
children |
comparison
equal
deleted
inserted
replaced
314:cd3cb1a7f35a | 315:1d77ea6a915d |
---|---|
162 layer.appendChild(node); | 162 layer.appendChild(node); |
163 return node; | 163 return node; |
164 } | 164 } |
165 | 165 |
166 /** | 166 /** |
167 * Add a arbitray inline feature to the map. | |
168 * @param layer The parent layer element. | |
169 * @return The feature element. | |
170 */ | |
171 public Element addFeature(Element layer) { | |
172 Element node = creator.create("feature"); | |
173 layer.appendChild(node); | |
174 return node; | |
175 } | |
176 | |
177 /** | |
167 * Print out the XML document. | 178 * Print out the XML document. |
168 */ | 179 */ |
169 public void print() { | 180 public void print() { |
170 XMLUtils.toStream(root, System.out); | 181 XMLUtils.toStream(root, System.out); |
171 } | 182 } |