public class FeatureLayerHelper extends InfoToolHelper
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_DISTANCE_FRACTION
Default distance fraction used with line and point features.
|
contentRef, KEY_POSITION, layerRef| Constructor and Description |
|---|
FeatureLayerHelper()
No argument constructor required by the helper lookup system.
|
| 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, setMapContentpublic static final double DEFAULT_DISTANCE_FRACTION
public FeatureLayerHelper()
public void setLayer(Layer layer)
layer argument must be an instance of FeatureLayer.setLayer in class InfoToolHelperlayer - the map layerpublic boolean isSupportedLayer(Layer layer)
InfoToolHelperisSupportedLayer in class InfoToolHelperlayer - the layertrue is this helper can handle the layerpublic InfoToolResult getInfo(DirectPosition2D pos) throws Exception
InfoToolHelperInfoToolResult object is returned.getInfo in class InfoToolHelperpos - query positionException - on error querying the layerCopyright © 1996–2019 Geotools. All rights reserved.