Revision 11434 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/GraphicLayer.java

View differences:

GraphicLayer.java
58 58
import com.iver.cit.gvsig.fmap.core.IGeometry;
59 59
import com.iver.cit.gvsig.fmap.core.ISymbol;
60 60
import com.iver.cit.gvsig.fmap.core.v02.FGraphicUtilities;
61
import com.iver.cit.gvsig.fmap.core.v02.FSymbol;
61 62
import com.iver.cit.gvsig.fmap.rendering.FGraphic;
62 63
import com.iver.utiles.swing.threads.Cancellable;
63 64
import com.vividsolutions.jts.index.ItemVisitor;
......
162 163
                	continue;
163 164
                if (selection.get(numReg)) // Si est? seleccinado
164 165
                {
165
                	FGraphicUtilities.DrawHandlers(g, viewPort.getAffineTransform(), geom.getHandlers(IGeometry.SELECTHANDLER));
166
                	FGraphicUtilities.DrawHandlers(g, viewPort.getAffineTransform(), geom.getHandlers(IGeometry.SELECTHANDLER),(FSymbol)theSymbol);
166 167
                }
167 168
                else
168 169
                {
......
200 201
//        return -1;
201 202

  
202 203
    }
203
    
204

  
204 205
    public void insertGraphic(int position, FGraphic g) {
205 206
    	graphics.add(position, g);
206 207
        if (fullExtent == null) {
......
252 253
	public void removeGraphic(FGraphic graphic) {
253 254
		graphics.remove(graphic);
254 255
		reCalculateFullExtent();
255
		
256

  
256 257
	}
257
	
258

  
258 259
	public FGraphic getGraphic(int idGraphic) {
259 260
		return (FGraphic) graphics.get(idGraphic);
260 261
	}
261
	
262

  
262 263
	public FGraphic getGraphicByObjectTag(Object objectTag) {
263 264
        for (int i = 0; i < graphics.size(); i++) {
264 265
             FGraphic theGraphic = (FGraphic) graphics.get(i);
......
268 269
        return null;
269 270
	}
270 271

  
271
	
272

  
272 273
	public int getNumGraphics() {
273 274
		return graphics.size();
274 275
	}
......
288 289

  
289 290
	public void inserGraphics(int index, Collection c) {
290 291
		graphics.addAll(index, c);
291
		
292

  
292 293
	}
293 294

  
294 295
	public FLayer cloneLayer() throws Exception {
......
301 302
		{
302 303
			lyr.addGraphic((FGraphic) graphics.get(i));
303 304
		}
304
		
305

  
305 306
		return lyr;
306 307
	}
307 308

  

Also available in: Unified diff