Package org.geotools.swing.tool
Class InfoToolResult
- Object
-
- InfoToolResult
-
public class InfoToolResult extends Object
Used byInfoToolHelper
classes to pass feature data to the parentInfoTool
object.- Since:
- 8.0
- Author:
- Michael Bedward
-
-
Constructor Summary
Constructors Constructor Description InfoToolResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
getFeatureData(int featureIndex)
String
getFeatureId(int featureIndex)
int
getNumFeatures()
void
newFeature(String id)
Adds a new feature entry to this result.void
setFeatureValue(String name, Object value)
void
setFeatureValue(Name name, Object value)
String
toString()
-
-
-
Method Detail
-
newFeature
public void newFeature(String id)
Adds a new feature entry to this result. This must be called prior to calling thesetFeatureValue
methods.
-
setFeatureValue
public void setFeatureValue(Name name, Object value)
-
setFeatureValue
public void setFeatureValue(String name, Object value)
-
getNumFeatures
public int getNumFeatures()
-
toString
public String toString()
- Overrides:
toString
in classObject
-
getFeatureData
public Map<String,Object> getFeatureData(int featureIndex)
-
getFeatureId
public String getFeatureId(int featureIndex)
-
-