public class GridCoverageLayerHelper extends InfoToolHelper
contentRef, KEY_POSITION, layerRef
Constructor and Description |
---|
GridCoverageLayerHelper()
Creates a new helper instance.
|
Modifier and Type | Method and Description |
---|---|
InfoToolResult |
getInfo(DirectPosition2D 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 |
setLayer(Layer layer)
Sets the map layer for this helper.
|
clearTransform, getContentToLayerTransform, getLayer, getMapContent, isTransformRequired, isValid, mapBoundsChanged, setMapContent
public GridCoverageLayerHelper()
public void setLayer(Layer layer)
InfoToolHelper
setLayer
in class InfoToolHelper
layer
- the map layerpublic boolean isSupportedLayer(Layer layer)
InfoToolHelper
isSupportedLayer
in class InfoToolHelper
layer
- the layertrue
is this helper can handle the layerpublic InfoToolResult getInfo(DirectPosition2D pos) throws Exception
InfoToolHelper
InfoToolResult
object is returned.getInfo
in class InfoToolHelper
pos
- query positionException
- on error querying the layerCopyright © 1996–2019 Geotools. All rights reserved.