skrueger.geotools.labelsearch
Class SearchResultFeature

java.lang.Object
  extended by skrueger.geotools.labelsearch.SearchResultFeature
All Implemented Interfaces:
SearchResult

public class SearchResultFeature
extends Object
implements SearchResult


Constructor Summary
SearchResultFeature(Feature feature, String title, String inTitle, JMapPane mapPane, MapLayer mapLayer)
           
 
Method Summary
 Feature getFeature()
           
 String getInTitle()
           
 String getTitle()
           
 void open()
          "Open" the result.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchResultFeature

public SearchResultFeature(Feature feature,
                           String title,
                           String inTitle,
                           JMapPane mapPane,
                           MapLayer mapLayer)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getFeature

public Feature getFeature()

getTitle

public String getTitle()
Specified by:
getTitle in interface SearchResult
Returns:
a String that represents the Title/Name of this search result.

open

public void open()
Description copied from interface: SearchResult
"Open" the result. For a Feature that mean to zoom to the location. For a Map if means to open the Map.

Specified by:
open in interface SearchResult

getInTitle

public String getInTitle()
Specified by:
getInTitle in interface SearchResult
Returns:
a String that represents the Title/Name of "something" that contains the search result. This may return "" if it makes no sense.