Revision 10626 trunk/extensions/extPublish/src/com/iver/cit/gvsig/publish/info/InfoView.java

View differences:

InfoView.java
3 3
import java.awt.geom.Rectangle2D;
4 4
import java.util.ArrayList;
5 5

  
6
import org.gvsig.remoteservices.conf.mapserver.MapServerConfiguration.MapLayer;
7

  
8 6
import com.iver.cit.gvsig.fmap.layers.FLayer;
9 7
import com.iver.cit.gvsig.fmap.layers.FLayers;
10 8
import com.iver.cit.gvsig.project.documents.view.gui.View;
11
import com.iver.cit.gvsig.publish.layers.LayerException;
12 9

  
13 10
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
14 11
 *
......
54 51
 *
55 52
 * $Id$
56 53
 * $Log$
57
 * Revision 1.2  2006-11-21 18:51:29  jvhigon
54
 * Revision 1.3  2007-03-06 16:50:30  caballero
55
 * Exceptions
56
 *
57
 * Revision 1.2  2006/11/21 18:51:29  jvhigon
58 58
 * no creo que hay nada nuevo
59 59
 *
60 60
 * Revision 1.1  2006/11/20 13:24:14  jvhigon
......
66 66
 * @author Jos? Vicente Hig?n (higon_jos@gva.es)
67 67
 */
68 68
public class InfoView {
69
	private View view = null; 
69
	private View view = null;
70 70
	private String name = null;
71 71
	private String crs = null; /* in EPSG units */
72 72
	private Rectangle2D extent = null;
......
79 79
		this.extent = view.getMapControl().getMapContext().getViewPort().getExtent();
80 80
		this.crs = view.getMapControl().getMapContext().getViewPort().getProjection().getAbrev();
81 81
		this.generateChilds();
82
		
82

  
83 83
	}
84 84
	/*
85 85
	 * This method generates the tree info structure
......
97 97
			FLayer lyr = flayers.getLayer(i);
98 98
			if (lyr.isVisible()){
99 99
				generateLayerInfo(lyr);
100
					
100

  
101 101
				/*try{
102 102
					if (lyr instanceof FLayers){
103 103
						ArrayList layers = publishGroupLayer(map,(FLayers)lyr);
......
105 105
							MapLayer mapLayer = (MapLayer)layers.get(j);
106 106
							if (mapLayer != null){
107 107
								map.add(mapLayer);
108
							}	
108
							}
109 109
						}
110 110
					}else{
111 111
						MapLayer mapLayer = publishSimpleLayer(lyr);
......
113 113
							map.add(mapLayer);
114 114
						}
115 115
					}
116
				}catch(LayerException e){					
117
					
116
				}catch(LayerException e){
117

  
118 118
				}*/
119 119
			}
120
		} 
120
		}
121 121
	}
122 122
	public void generateLayerInfo(FLayers lyrs){
123 123
		System.out.println("Soy FLayerssssss");
......
125 125
	public void generateLayerInfo(FLayer lyr){
126 126
		System.out.println("Soy Flayer");
127 127
	}
128
	
128

  
129 129
	/**
130 130
	 * This method prints their attributes
131 131
	 *

Also available in: Unified diff