Revision 11137
branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLayers.java | ||
---|---|---|
790 | 790 |
|
791 | 791 |
for (int i = 0; i < layers.size(); i++) { |
792 | 792 |
try{ |
793 |
xml.addChild(((FLayer) layers.get(i)).getXMLEntity()); |
|
793 |
xml.addChild(((FLayer) layers.get(i)).getXMLEntity());
|
|
794 | 794 |
}catch (XMLException e) { |
795 | 795 |
e.printStackTrace(); |
796 | 796 |
} |
branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrAnnotation.java | ||
---|---|---|
9 | 9 |
import java.io.File; |
10 | 10 |
import java.io.IOException; |
11 | 11 |
import java.util.ArrayList; |
12 |
import java.util.Iterator; |
|
12 | 13 |
|
13 | 14 |
import javax.print.attribute.PrintRequestAttributeSet; |
14 | 15 |
|
... | ... | |
249 | 250 |
* @see com.iver.cit.gvsig.fmap.layers.FLyrDefault#setXMLEntity(com.iver.utiles.XMLEntity) |
250 | 251 |
*/ |
251 | 252 |
public void setXMLEntity(XMLEntity xml) throws XMLException { |
252 |
mapping = MappingAnnotation.createFromXML(xml.getChild(2));//getIntArrayProperty("mapping"); |
|
253 |
Iterator iter=xml.findChildren("className",MappingAnnotation.class.getName()); |
|
254 |
if (iter.hasNext()) |
|
255 |
mapping = MappingAnnotation.createFromXML((XMLEntity)iter.next()); |
|
256 |
else{ |
|
257 |
//Este else para versiones anteriores a la 1.0.2.(908) |
|
258 |
if (xml.getChildrenCount()==3) |
|
259 |
mapping = MappingAnnotation.createFromXML(xml.getChild(2)); |
|
260 |
else |
|
261 |
mapping = MappingAnnotation.createFromXML(xml.getChild(3)); |
|
262 |
} |
|
253 | 263 |
setInPixels(xml.getBooleanProperty("isInPixels")); |
254 | 264 |
|
255 | 265 |
IProjection proj = null; |
branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/MappingAnnotation.java | ||
---|---|---|
47 | 47 |
} |
48 | 48 |
public XMLEntity getXMLEntity() { |
49 | 49 |
XMLEntity xml=new XMLEntity(); |
50 |
xml.putProperty("className",this.getClass().getName()); |
|
50 | 51 |
xml.putProperty("columnText",columnText); |
51 | 52 |
xml.putProperty("columnRotate",columnRotate); |
52 | 53 |
xml.putProperty("columnColor",columnColor); |
Also available in: Unified diff