Revision 38765 branches/v2_0_0_prep/applications/appgvSIG/src/org/gvsig/app/project/documents/view/toolListeners/snapping/gui/SnapConfig.java

View differences:

SnapConfig.java
42 42

  
43 43
import java.awt.BorderLayout;
44 44
import java.awt.Component;
45
import java.util.ArrayList;
46
import java.util.Map;
45
import java.awt.event.MouseListener;
47 46

  
48 47
import javax.swing.JButton;
49 48
import javax.swing.JCheckBox;
......
62 61
import org.gvsig.fmap.mapcontrol.MapControlLocator;
63 62
import org.gvsig.fmap.mapcontrol.MapControlManager;
64 63
import org.gvsig.fmap.mapcontrol.tools.snapping.snappers.ISnapper;
65
import java.util.TreeMap;
66 64

  
67 65
/**
68 66
 * @author fjp
......
225 223
		this.mc=mc;
226 224
		initialize();
227 225
	}
226
	
227
	
228
	/**
229
	 * This constructor allows an aditional parameter
230
	 * which will be notified of the mouse events
231
	 * in the relevant components of this panel
232
	 * 
233
	 * @param mc
234
	 * @param mouseListener the mouse listener to be notified
235
	 */
236
	public SnapConfig(MapControl mc, MouseListener mouseListener) {
237
	    this(mc);
238
	    getJListSnappers().addMouseListener(mouseListener);
239
	    getJChkBoxRefentActive().addMouseListener(mouseListener);
240
	}
228 241

  
229 242
	/**
230 243
	 * This method initializes this

Also available in: Unified diff