skrueger.geotools.labelsearch
Class SearchResultFeature
java.lang.Object
skrueger.geotools.labelsearch.SearchResultFeature
- All Implemented Interfaces:
- SearchResult
public class SearchResultFeature
- extends Object
- implements SearchResult
SearchResultFeature
public SearchResultFeature(Feature feature,
String title,
String inTitle,
JMapPane mapPane,
MapLayer mapLayer)
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.