Class ShapefileLayerSource
java.lang.Object
org.esa.snap.rcp.layermanager.layersrc.shapefile.ShapefileLayerSource
- All Implemented Interfaces:
LayerSource
A layer source for ESRI shape files.
Unstable API. Use at own risk.
- Since:
- BEAM 4.6
- Version:
- $Revision$ $Date$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel
(LayerSourcePageContext pageContext) Aborts the operation of this layer source.boolean
canFinish
(LayerSourcePageContext pageContext) Checks whether this layer source can perform its finishing method without further information.getFirstPage
(LayerSourcePageContext pageContext) Returns the first page (of possible many) of the assistant that belongs to this layer source.boolean
boolean
isApplicable
(LayerSourcePageContext pageContext) Check if this layer source is applicable to the current context.boolean
performFinish
(LayerSourcePageContext pageContext) Adds one or more layers to the given context
-
Constructor Details
-
ShapefileLayerSource
public ShapefileLayerSource()
-
-
Method Details
-
isApplicable
Description copied from interface:LayerSource
Check if this layer source is applicable to the current context.- Specified by:
isApplicable
in interfaceLayerSource
- Parameters:
pageContext
- The current context.- Returns:
- true, if this layer source is applicable.
-
hasFirstPage
public boolean hasFirstPage()- Specified by:
hasFirstPage
in interfaceLayerSource
- Returns:
- true, if this layer source has assistant pages.
-
getFirstPage
Description copied from interface:LayerSource
Returns the first page (of possible many) of the assistant that belongs to this layer source. The given context can be interrogated to decide which page to return.- Specified by:
getFirstPage
in interfaceLayerSource
- Parameters:
pageContext
- The current context.- Returns:
- the first assistant page.
-
canFinish
Description copied from interface:LayerSource
Checks whether this layer source can perform its finishing method without further information.- Specified by:
canFinish
in interfaceLayerSource
- Parameters:
pageContext
- The current context.- Returns:
- true, if finish can be called.
-
performFinish
Description copied from interface:LayerSource
Adds one or more layers to the given context- Specified by:
performFinish
in interfaceLayerSource
- Parameters:
pageContext
- The current context.- Returns:
- true, if the method completed successfully
-
cancel
Description copied from interface:LayerSource
Aborts the operation of this layer source. This method is responsible for freeing all resources acquired by the layer source.- Specified by:
cancel
in interfaceLayerSource
- Parameters:
pageContext
- The current context.
-