Revision 4336 trunk/extensions/extCatalogYNomenclator/src/es/gva/cit/gvsig/gazetteer/loaders/FeatureLoader.java
FeatureLoader.java | ||
---|---|---|
52 | 52 |
import com.iver.cit.gvsig.fmap.core.v02.FSymbol; |
53 | 53 |
import com.iver.cit.gvsig.fmap.layers.GraphicLayer; |
54 | 54 |
import com.iver.cit.gvsig.fmap.rendering.FGraphicLabel; |
55 |
import com.iver.cit.gvsig.gui.View; |
|
55 | 56 |
|
56 | 57 |
import es.gva.cit.catalogClient.schemas.discoverer.Resource; |
57 | 58 |
import es.gva.cit.gazetteer.querys.Feature; |
... | ... | |
150 | 151 |
//remove the old Graphics searched |
151 | 152 |
activeView.getMapControl().getViewPort().setExtent(activeView.getMapControl().getViewPort().getExtent()); |
152 | 153 |
} |
154 |
|
|
155 |
public static void deteleAllFeatures(){ |
|
156 |
com.iver.cit.gvsig.gui.View activeView = |
|
157 |
(com.iver.cit.gvsig.gui.View) PluginServices.getMDIManager().getActiveView(); |
|
158 |
GraphicLayer lyr = activeView.getMapControl().getMapContext().getGraphicsLayer(); |
|
159 |
lyr.clearAllGraphics(); |
|
160 |
activeView.getMapControl().getViewPort().setExtent(activeView.getMapControl().getViewPort().getExtent()); |
|
161 |
|
|
162 |
} |
|
153 | 163 |
} |
Also available in: Unified diff