Revision 874 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/castor/ProjectView.java

View differences:

ProjectView.java
8 8
import com.iver.cit.gvsig.fmap.layers.CancelationException;
9 9
import com.iver.cit.gvsig.fmap.layers.DifferentVersionException;
10 10
import com.iver.cit.gvsig.fmap.layers.XMLException;
11
import com.iver.cit.gvsig.gui.MapOverview;
11 12

  
12 13
import com.iver.utiles.StringUtilities;
13 14
import com.iver.utiles.XMLEntity;
......
37 38
    //public static int KILOMETROS = 1;
38 39
    //public static int[] unidades = new int[] { METROS, KILOMETROS };
39 40
    private Color backgroundColor = new Color(255, 255, 255);
41
    private FMap mapOverViewContext=new FMap(new ViewPort(null));
40 42
    private FMap mapContext = new FMap(new ViewPort(proj));
41 43

  
42 44
    /**
......
65 67
    public FMap getMapContext() {
66 68
        return mapContext;
67 69
    }
68

  
69 70
    /**
70 71
     * DOCUMENT ME!
71 72
     *
73
     * @return
74
     */
75
    public FMap getMapOverViewContext() {
76
        return mapOverViewContext;
77
    }
78
    /**
79
     * DOCUMENT ME!
80
     *
72 81
     * @param baseName
73 82
     *
74 83
     * @return
......
88 97
    public void setMapContext(FMap fmap) {
89 98
        mapContext = fmap;
90 99
    }
91

  
100
    public void setMapOverViewContext(FMap fmap) {
101
        mapOverViewContext = fmap;
102
    }
92 103
    /**
93 104
     * DOCUMENT ME!
94 105
     *
......
103 114
            StringUtilities.color2String(backgroundColor));
104 115

  
105 116
        xml.addChild(mapContext.getXMLEntity());
117
        if (mapOverViewContext !=null){
118
        	xml.addChild(mapOverViewContext.getXMLEntity());
119
        }
106 120
        return xml;
107 121
    }
108 122

  
......
124 138
                    "backgroundColor")));
125 139

  
126 140
		setMapContext(FMap.createFromXML(xml.getChild(0)));
141
		setMapOverViewContext(FMap.createFromXML(xml.getChild(1)));
127 142
    }
128 143
    public ProjectView cloneProjectView(Project p) throws XMLException, com.iver.cit.gvsig.fmap.DriverException{
129 144
    	return (ProjectView)createFromXML(getXMLEntity(),p);

Also available in: Unified diff