Revision 10627 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/demo/MapImage.java

View differences:

MapImage.java
17 17
 *
18 18
 * You should have received a copy of the GNU General Public License
19 19
 * along with this program; if not, write to the Free Software
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, 
20
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
21 21
USA.
22 22
 *
23 23
 * For more information, contact:
......
49 49
import javax.swing.JFrame;
50 50

  
51 51
import com.hardcode.driverManager.DriverLoadException;
52
import com.iver.cit.gvsig.fmap.DriverException;
52
import com.iver.cit.gvsig.exceptions.layers.LoadLayerException;
53 53
import com.iver.cit.gvsig.fmap.MapControl;
54 54
import com.iver.cit.gvsig.fmap.crs.CRSFactory;
55 55
import com.iver.cit.gvsig.fmap.drivers.VectorialFileDriver;
56
import com.iver.cit.gvsig.fmap.layers.CancelationException;
56 57
import com.iver.cit.gvsig.fmap.layers.FLayer;
57 58
import com.iver.cit.gvsig.fmap.layers.LayerFactory;
58 59
import com.iver.cit.gvsig.fmap.tools.ZoomInListenerImpl;
......
71 72
	}
72 73
	/**
73 74
	 * This method initializes this
74
	 * 
75
	 *
75 76
	 * @return void
76 77
	 */
77 78
	private void initialize() {
......
81 82
	}
82 83
	/**
83 84
	 * This method initializes jContentPane
84
	 * 
85
	 *
85 86
	 * @return javax.swing.JPanel
86 87
	 */
87 88
	private javax.swing.JPanel getJContentPane() {
......
93 94
		return jContentPane;
94 95
	}
95 96
	/**
96
	 * This method initializes newMapControl	
97
	 * 	
98
	 * @return com.iver.cit.gvsig.fmap.NewMapControl	
99
	 */    
97
	 * This method initializes newMapControl
98
	 *
99
	 * @return com.iver.cit.gvsig.fmap.NewMapControl
100
	 */
100 101
	private MapControl getNewMapControl() {
101 102
		if (newMapControl == null) {
102 103
			newMapControl = new MapControl();
......
104 105
			"C:\\eclipse3\\workspace\\Andami\\gvSIG\\extensiones\\com.iver.cit.gvsig\\drivers");
105 106

  
106 107
			try {
107
				FLayer l = LayerFactory.createLayer("Vias", 
108
				FLayer l = LayerFactory.createLayer("Vias",
108 109
					(VectorialFileDriver) LayerFactory.getDM().getDriver("gvSIG shp driver"),
109 110
					new File("C:/Documents and Settings/fernando/Mis documentos/vias.shp"),
110 111
					CRSFactory.getCRS("EPSG:23030"));
......
117 118
			} */
118 119
			catch (DriverLoadException e) {
119 120
				e.printStackTrace();
121
			} catch (CancelationException e) {
122
				// TODO Auto-generated catch block
123
				e.printStackTrace();
120 124
			}
121 125

  
122
			
126

  
123 127
		}
124 128
		return newMapControl;
125 129
	}

Also available in: Unified diff