Revision 4619 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/MapControl.java
MapControl.java | ||
---|---|---|
62 | 62 |
import org.cresques.cts.IProjection; |
63 | 63 |
import org.cresques.cts.ProjectionPool; |
64 | 64 |
|
65 |
import com.iver.cit.gvsig.fmap.edition.commands.CommandEvent; |
|
66 | 65 |
import com.iver.cit.gvsig.fmap.edition.commands.CommandListener; |
67 | 66 |
import com.iver.cit.gvsig.fmap.layers.LayerEvent; |
68 | 67 |
import com.iver.cit.gvsig.fmap.operations.Cancellable; |
... | ... | |
104 | 103 |
private MapToolListener mapToolListener = new MapToolListener(); |
105 | 104 |
private MapContextListener mapContextListener = new MapContextListener(); |
106 | 105 |
private ExceptionHandlingSupport exceptionHandlingSupport = new ExceptionHandlingSupport(); |
107 |
private HashMap namesCadTools = new HashMap(); |
|
106 |
|
|
108 | 107 |
/** |
109 | 108 |
* We need this to avoid not wanted refresh. REMEMBER TO SET TO TRUE!! |
110 | 109 |
*/ |
... | ... | |
876 | 875 |
public HashMap getNamesMapTools() { |
877 | 876 |
return namesMapTools; |
878 | 877 |
} |
879 |
/* public void addCadTool(String name, CADTool c){ |
|
880 |
namesCadTools.put(name, c); |
|
881 |
} |
|
882 |
public void setCadTool(String text){ |
|
883 |
CADTool ct = (CADTool) namesCadTools.get(text); |
|
884 |
if (ct == null) throw new RuntimeException("No such cad tool"); |
|
885 |
ct.init(); |
|
886 |
cadToolAdapter.setCadTool(ct); |
|
887 |
setTool("cadEdition"); |
|
888 |
//clearMouseImage(); |
|
889 |
} |
|
890 |
*/ |
|
891 | 878 |
|
892 | 879 |
public void commandRepaint() { |
893 | 880 |
drawMap(false); |
Also available in: Unified diff