Interface PrepareContextView_v1

All Superinterfaces:
PrepareContext, PrepareContextView

public interface PrepareContextView_v1 extends PrepareContextView
Interface extending PrepareContextView. The methods defined here are indended to be integrated on PrepareContextView, but are maintained on this separate interface in order to mantain compatibility with existing implementations. This interface may be eventually integrated with PrepareContextView on the next major refactoring.
Author:
Cesar Martinez
  • Method Details

    • getMapContext

      org.gvsig.fmap.mapcontext.MapContext getMapContext()
      You can use it to extract information from the MapContext that will receive the new layer. For example, projection to use, or visible extent.
      Returns:
      Returns the MapContext.
    • isMapControlAvailable

      boolean isMapControlAvailable()
      Checks whether the MapControl is available. The MapControl may not be available in some circumstances, for instance when adding layers to a MapContext not associated with a View. A MapContext should always be available on the getMapContext() method.
      Returns:
      true if the MapControl is available, false otherwise