Package org.gvsig.app.prepareAction
Interface PrepareContextView
- All Superinterfaces:
PrepareContext
- All Known Subinterfaces:
PrepareContextView_v1
Object containing the context to prepare the loading process
of a layer.
- Author:
- jmvivo
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.gvsig.fmap.mapcontrol.MapControlYou can use it to interact with the MapControl component that will receive the new layer, in order to get user feedback (for instance a bounding box).Methods inherited from interface org.gvsig.app.prepareAction.PrepareContext
getOwnerWindow, getViewProjection
-
Method Details
-
getMapControl
org.gvsig.fmap.mapcontrol.MapControl getMapControl()You can use it to interact with the MapControl component that will receive the new layer, in order to get user feedback (for instance a bounding box). Check thePrepareContextView_v1.isMapControlAvailable()method before accessing the MapControl because it may not be available (for instance when adding layers to a MapContext not associated with a View). For the moment, this method will return a non-null MapControl for compatibility reasons, but you should still checkPrepareContextView_v1.isMapControlAvailable()to be sure it is a valid one, as it could only be a fake MapControl. It is recommended to usePrepareContextView_v1.getMapContext()method when no interaction is needed with the map user interface (for instance to get the active projection, visible extent, etc)- Returns:
- Returns the mapCtrl.
-