skrueger.geotools.labelsearch
Class LabelSearch

java.lang.Object
  extended by skrueger.geotools.labelsearch.LabelSearch

public class LabelSearch
extends Object

This class allows to search for a String in a map. The algorithm will analyze the Style of every visible(?) layer and determine the label attribute. This field is then searched for every feature.

Author:
Stefan A. Krüger

Field Summary
protected  SelectableXMapPane mapPane
           
static ResourceProvider RESOURCE
           
 
Constructor Summary
LabelSearch(SelectableXMapPane mapPane)
           
 
Method Summary
protected  SearchResult createSearchResult(SimpleFeature f, String title, String inTitle, MapLayer ml)
           
static String R(String key, Object... values)
           
 List<SearchResult> search(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

public static ResourceProvider RESOURCE

mapPane

protected final SelectableXMapPane mapPane
Constructor Detail

LabelSearch

public LabelSearch(SelectableXMapPane mapPane)
Method Detail

R

public static String R(String key,
                       Object... values)

search

public List<SearchResult> search(String string)

createSearchResult

protected SearchResult createSearchResult(SimpleFeature f,
                                          String title,
                                          String inTitle,
                                          MapLayer ml)