Revision 23048 trunk/libraries/libTopology/src/org/gvsig/fmap/core/FLyrUtil.java

View differences:

FLyrUtil.java
111 111
		return activeVectorialLyrs;
112 112
	}
113 113
	
114
	public static List<FLyrVect> getVectorialLayers(MapContext mapContext){
115
		List<FLyrVect> activeVectorialLyrs = new ArrayList<FLyrVect>();
116
		LayersIterator it = new LayersIterator(mapContext.getLayers());
117
		while (it.hasNext())
118
		{
119
			FLayer aux = (FLayer) it.next();
120
			if(aux instanceof FLyrVect)
121
			{
122
				activeVectorialLyrs.add((FLyrVect)aux);
123
			}//if
124
		}//while
125
		return activeVectorialLyrs;
126
	}
127
	
114 128
	public static List<FLyrVect> getLayersOfType(MapContext mapContext, int shapeType){
115 129
		List<FLyrVect> activeVectorialLyrs = new ArrayList<FLyrVect>();
116 130
		LayersIterator it = new LayersIterator(mapContext.getLayers());

Also available in: Unified diff