org.geotools.swing.tool
Class InfoToolResult

Object
  extended by InfoToolResult

public class InfoToolResult
extends Object

Used by InfoToolHelper classes to pass feature data to the parent InfoTool object.

Since:
8.0
Author:
Michael Bedward

Constructor Summary
InfoToolResult()
           
 
Method Summary
 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(Name name, Object value)
           
 void setFeatureValue(String name, Object value)
           
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InfoToolResult

public InfoToolResult()
Method Detail

newFeature

public void newFeature(String id)
Adds a new feature entry to this result. This must be called prior to calling the setFeatureValue 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 class Object

getFeatureData

public Map<String,Object> getFeatureData(int featureIndex)

getFeatureId

public String getFeatureId(int featureIndex)


Copyright © 1996-2014 Geotools. All Rights Reserved.