org.geotools.swing.tool
Class GridCoverageLayerHelper
Object
InfoToolHelper
GridCoverageLayerHelper
- All Implemented Interfaces:
- EventListener, MapBoundsListener
public class GridCoverageLayerHelper
- extends InfoToolHelper
Used by InfoTool to query GridCoverageLayer objects.
- Since:
- 8.0
- Author:
- Michael Bedward
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridCoverageLayerHelper
public GridCoverageLayerHelper()
- Creates a new helper instance.
setLayer
public void setLayer(Layer layer)
- Description copied from class:
InfoToolHelper
- Sets the map layer for this helper.
- Overrides:
setLayer
in class InfoToolHelper
- Parameters:
layer
- the map layer
isSupportedLayer
public boolean isSupportedLayer(Layer layer)
- Description copied from class:
InfoToolHelper
- CAlled by the helper lookup system when selecting a helper
for a given layer.
- Specified by:
isSupportedLayer
in class InfoToolHelper
- Parameters:
layer
- the layer
- Returns:
true
is this helper can handle the layer
getInfo
public InfoToolResult getInfo(DirectPosition2D pos)
throws Exception
- Description copied from class:
InfoToolHelper
- Gets layer data at the specified position. If there are no feature
data at the position, an empty
InfoToolResult
object is
returned.
- Specified by:
getInfo
in class InfoToolHelper
- Parameters:
pos
- query position
- Returns:
- layer data
- Throws:
Exception
- on error querying the layer
Copyright © 1996-2014 Geotools. All Rights Reserved.