|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectInfoToolHelper
FeatureLayerHelper
public class FeatureLayerHelper
Helper class used by InfoTool to query vector features in a FeatureLayer.
Field Summary | |
---|---|
static double |
DEFAULT_DISTANCE_FRACTION
Default distance fraction used with line and point features. |
Fields inherited from class InfoToolHelper |
---|
contentRef, KEY_POSITION, layerRef |
Constructor Summary | |
---|---|
FeatureLayerHelper()
No argument constructor required by the helper lookup system. |
Method Summary | |
---|---|
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. |
Methods inherited from class InfoToolHelper |
---|
clearTransform, getContentToLayerTransform, getLayer, getMapContent, isTransformRequired, isValid, mapBoundsChanged, setMapContent |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_DISTANCE_FRACTION
Constructor Detail |
---|
public FeatureLayerHelper()
Method Detail |
---|
public void setLayer(Layer layer)
layer
argument must be an instance of FeatureLayer.
setLayer
in class InfoToolHelper
layer
- the map layerpublic boolean isSupportedLayer(Layer layer)
InfoToolHelper
isSupportedLayer
in class InfoToolHelper
layer
- the layer
true
is this helper can handle the layerpublic InfoToolResult getInfo(DirectPosition2D pos) throws Exception
InfoToolHelper
InfoToolResult
object is
returned.
getInfo
in class InfoToolHelper
pos
- query position
Exception
- on error querying the layer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |