Mercurial > mxd2map
comparison 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 |
comparison
equal
deleted
inserted
replaced
178:d10d5f560b1a | 179:f3a91cd7440b |
---|---|
137 public Element addSymbol(Element renderer) { | 137 public Element addSymbol(Element renderer) { |
138 Element node = creator.create("symbol"); | 138 Element node = creator.create("symbol"); |
139 renderer.appendChild(node); | 139 renderer.appendChild(node); |
140 return node; | 140 return node; |
141 } | 141 } |
142 | |
143 /** | |
144 * Add a label element to the map. | |
145 * @param layer The parent layer element. | |
146 * @return The label element. | |
147 */ | |
148 public Element addLabel(Element layer) { | |
149 Element node = creator.create("label"); | |
150 layer.appendChild(node); | |
151 return node; | |
152 } | |
142 | 153 |
143 /** | 154 /** |
144 * Print out the XML document. | 155 * Print out the XML document. |
145 */ | 156 */ |
146 public void print() { | 157 public void print() { |