Revision 22963 branches/v2_0_0_prep/libraries/libFMap_mapcontrol/src/org/gvsig/fmap/mapcontrol/MapControl.java
MapControl.java | ||
---|---|---|
64 | 64 |
|
65 | 65 |
import org.cresques.cts.IProjection; |
66 | 66 |
import org.gvsig.fmap.crs.CRSFactory; |
67 |
import org.gvsig.fmap.data.DefaultDataStoreNotification; |
|
67 | 68 |
import org.gvsig.fmap.geom.primitive.DefaultEnvelope; |
68 | 69 |
import org.gvsig.fmap.geom.primitive.Envelope; |
69 | 70 |
import org.gvsig.fmap.mapcontext.MapContext; |
... | ... | |
78 | 79 |
import org.gvsig.fmap.mapcontrol.tools.CompoundBehavior; |
79 | 80 |
import org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior; |
80 | 81 |
import org.gvsig.fmap.mapcontrol.tools.Listeners.ToolListener; |
82 |
import org.gvsig.util.observer.Observable; |
|
83 |
import org.gvsig.util.observer.Observer; |
|
81 | 84 |
|
82 | 85 |
import com.iver.utiles.exceptionHandling.ExceptionHandlingSupport; |
83 | 86 |
import com.iver.utiles.exceptionHandling.ExceptionListener; |
... | ... | |
181 | 184 |
* @author Fernando Gonz?lez Cort?s |
182 | 185 |
* @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es) |
183 | 186 |
*/ |
184 |
public class MapControl extends JComponent implements ComponentListener { |
|
187 |
public class MapControl extends JComponent implements ComponentListener, Observer {
|
|
185 | 188 |
/** |
186 | 189 |
* <p>One of the possible status of <code>MapControl</code>. Determines that all visible information has been |
187 | 190 |
* drawn and its updated.</p> |
... | ... | |
1897 | 1900 |
combinedTool = null; |
1898 | 1901 |
} |
1899 | 1902 |
} |
1903 |
|
|
1904 |
public void update(Observable observable, Object notification) { |
|
1905 |
DefaultDataStoreNotification ddsn=(DefaultDataStoreNotification)notification; |
|
1906 |
String type=ddsn.getType(); |
|
1907 |
if (type.equals(DefaultDataStoreNotification.AFTER_UNDO) || |
|
1908 |
type.equals(DefaultDataStoreNotification.AFTER_REDO)){ |
|
1909 |
repaint(); |
|
1910 |
} |
|
1911 |
} |
|
1900 | 1912 |
} |
Also available in: Unified diff