Revision 7837 trunk/extensions/extGraph_predes/src/com/iver/cit/gvsig/graph/LinesLayerGraphGenerator.java

View differences:

LinesLayerGraphGenerator.java
17 17

  
18 18
import org.cresques.cts.ProjectionPool;
19 19

  
20
import com.iver.andami.ui.mdiManager.ViewInfo;
20
import com.iver.andami.ui.mdiManager.IWindow;
21
import com.iver.andami.ui.mdiManager.WindowInfo;
21 22
import com.iver.cit.gvsig.fmap.DriverException;
22 23
import com.iver.cit.gvsig.fmap.ViewPort;
23 24
import com.iver.cit.gvsig.fmap.core.FShape;
......
69 70
		this.linesLayer = layer;
70 71
	}
71 72
	
72
	public com.iver.andami.ui.mdiManager.View getGraphLayout(Graph graph, Rectangle2D fullExtent){
73
	public IWindow getGraphLayout(Graph graph, Rectangle2D fullExtent){
73 74
		StaticLayout l = new StaticLayout(graph);
74 75
		final ViewPort viewPort = new ViewPort(ProjectionPool.get("EPSG:23030"));
75 76
		viewPort.setImageSize(new Dimension(700, 600));
......
94 95
	}
95 96
	
96 97
	class VisualizationViewerView extends JPanel
97
		implements com.iver.andami.ui.mdiManager.View{
98
		implements IWindow {
98 99

  
99 100
		VisualizationViewerView(VisualizationViewer vv){
100 101
			add(vv);
101 102
			setSize(700,600);
102 103
		}
103 104
		
104
		public ViewInfo getViewInfo() {
105
			ViewInfo viewInfo = new 
106
				ViewInfo(ViewInfo.MODELESSDIALOG);
105
		public WindowInfo getWindowInfo() {
106
			WindowInfo viewInfo = new 
107
			WindowInfo(WindowInfo.MODELESSDIALOG);
107 108
			viewInfo.setTitle("Analisis_de_redes");
108 109
			return viewInfo;
109 110
		}
......
114 115
		FLyrVect riverLayer = null;
115 116
		//Para evitar todos estos casts, hay que meter la
116 117
		//interfaz FileWriter
117
		String fileName = "C:/JUMP/datos/cauces_gv.shp";
118
		String fileName = "C:/ejes.shp";
118 119
		String layerName = "";	
119 120
		File file = new File(fileName);
120 121
		try {

Also available in: Unified diff