Package org.gvsig.app.prepareAction
Interface PrepareContextView_v1
- All Superinterfaces:
PrepareContext,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 Summary
Modifier and TypeMethodDescriptionorg.gvsig.fmap.mapcontext.MapContextYou can use it to extract information from the MapContext that will receive the new layer.booleanChecks whether the MapControl is available.Methods inherited from interface org.gvsig.app.prepareAction.PrepareContext
getOwnerWindow, getViewProjectionMethods inherited from interface org.gvsig.app.prepareAction.PrepareContextView
getMapControl
-
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 thegetMapContext()method.- Returns:
- true if the MapControl is available, false otherwise
-