Revision 284 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/NewMapControl.java
NewMapControl.java | ||
---|---|---|
1 | 1 |
package com.iver.cit.gvsig.fmap; |
2 | 2 |
|
3 | 3 |
import com.iver.cit.gvsig.fmap.drivers.DriverIOException; |
4 |
import com.iver.cit.gvsig.fmap.tools.MapTool; |
|
4 |
import com.iver.cit.gvsig.fmap.tools.Listeners.ToolListener; |
|
5 |
import com.iver.cit.gvsig.fmap.tools.MapTools.MapTool; |
|
5 | 6 |
|
6 | 7 |
import java.awt.Dimension; |
7 | 8 |
import java.awt.Graphics; |
8 | 9 |
import java.awt.Graphics2D; |
9 | 10 |
import java.awt.event.ComponentEvent; |
10 | 11 |
import java.awt.event.ComponentListener; |
12 |
import java.awt.event.MouseListener; |
|
11 | 13 |
import java.awt.image.BufferedImage; |
12 | 14 |
|
13 | 15 |
import java.util.HashMap; |
... | ... | |
30 | 32 |
private int status = ACTUALIZADO; |
31 | 33 |
private BufferedImage image = null; |
32 | 34 |
private String currentTool; |
35 |
|
|
33 | 36 |
|
34 | 37 |
/** |
35 | 38 |
* Crea un nuevo NewMapControl. |
... | ... | |
72 | 75 |
tool.setMapControl(this); |
73 | 76 |
} |
74 | 77 |
|
75 |
public void addTool(String toolName, String mapToolName){ |
|
78 |
public void addTool(String toolName, String mapToolName,ToolListener tl){
|
|
76 | 79 |
namesMapToolsNames.put(toolName, mapToolName); |
80 |
MapTool mt = (MapTool) namesMapTools.get(mapToolName); |
|
81 |
mt.setListener(tl); |
|
77 | 82 |
} |
78 | 83 |
|
79 | 84 |
public void setTool(String toolName){ |
Also available in: Unified diff