Package org.geotools.swing.tool
Class GridCoverageLayerHelper
Object
InfoToolHelper
GridCoverageLayerHelper
- All Implemented Interfaces:
EventListener
,MapBoundsListener
Used by InfoTool to query GridCoverageLayer objects.
- Since:
- 8.0
- Author:
- Michael Bedward
-
Field Summary
Fields inherited from class InfoToolHelper
contentRef, KEY_POSITION, layerRef
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInfo
(Position2D pos) Gets layer data at the specified position.boolean
isSupportedLayer
(Layer layer) Called by the helper lookup system when selecting a helper for a given layer.void
Sets the map layer for this helper.Methods inherited from class InfoToolHelper
clearTransform, getContentToLayerTransform, getLayer, getMapContent, isTransformRequired, isValid, mapBoundsChanged, setMapContent
-
Constructor Details
-
GridCoverageLayerHelper
public GridCoverageLayerHelper()Creates a new helper instance.
-
-
Method Details
-
setLayer
Description copied from class:InfoToolHelper
Sets the map layer for this helper.- Overrides:
setLayer
in classInfoToolHelper
- Parameters:
layer
- the map layer
-
isSupportedLayer
Description copied from class:InfoToolHelper
Called by the helper lookup system when selecting a helper for a given layer.- Specified by:
isSupportedLayer
in classInfoToolHelper
- Parameters:
layer
- the layer- Returns:
true
is this helper can handle the layer
-
getInfo
Description copied from class:InfoToolHelper
Gets layer data at the specified position. If there are no feature data at the position, an emptyInfoToolResult
object is returned.- Specified by:
getInfo
in classInfoToolHelper
- Parameters:
pos
- query position- Returns:
- layer data
- Throws:
Exception
- on error querying the layer
-