Interface PrepareContextView

All Superinterfaces:
PrepareContext
All Known Subinterfaces:
PrepareContextView_v1

public interface PrepareContextView extends PrepareContext
Object containing the context to prepare the loading process of a layer.
Author:
jmvivo
See Also:
  • invalid reference
    PrepareContextView_1
  • Method Summary

    Modifier and Type
    Method
    Description
    org.gvsig.fmap.mapcontrol.MapControl
    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).

    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 the PrepareContextView_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 check PrepareContextView_v1.isMapControlAvailable() to be sure it is a valid one, as it could only be a fake MapControl. It is recommended to use PrepareContextView_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.