/[schmitzm]/branches/2.4.x/src/skrueger/geotools/labelsearch/LabelSearch.java
ViewVC logotype

Diff of /branches/2.4.x/src/skrueger/geotools/labelsearch/LabelSearch.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 685 by alfonx, Wed Feb 10 15:04:02 2010 UTC revision 887 by alfonx, Thu Jun 3 10:36:57 2010 UTC
# Line 25  Line 25 
25   *   *
26   * Contributors:   * Contributors:
27   *     Martin O. J. Schmitz - initial API and implementation   *     Martin O. J. Schmitz - initial API and implementation
28   *     Stefan A. Krüger - additional utility classes   *     Stefan A. Tzeggai - additional utility classes
29   ******************************************************************************/   ******************************************************************************/
30  package skrueger.geotools.labelsearch;  package skrueger.geotools.labelsearch;
31    
# Line 34  import java.util.ArrayList; Line 34  import java.util.ArrayList;
34  import java.util.Collections;  import java.util.Collections;
35  import java.util.Iterator;  import java.util.Iterator;
36  import java.util.List;  import java.util.List;
 import java.util.Locale;  
37    
38  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
39  import org.geotools.data.DefaultQuery;  import org.geotools.data.DefaultQuery;
# Line 51  import org.opengis.filter.Filter; Line 50  import org.opengis.filter.Filter;
50  import org.opengis.filter.expression.PropertyName;  import org.opengis.filter.expression.PropertyName;
51    
52  import schmitzm.geotools.feature.FeatureUtil;  import schmitzm.geotools.feature.FeatureUtil;
53    import schmitzm.geotools.gui.GeotoolsGUIUtil;
54  import schmitzm.geotools.styling.StylingUtil;  import schmitzm.geotools.styling.StylingUtil;
55  import schmitzm.lang.LangUtil;  import schmitzm.lang.LangUtil;
 import schmitzm.lang.ResourceProvider;  
56    
57  /**  /**
58   * This class allows to search for a {@link String} in a map. The algorithm will   * This class allows to search for a {@link String} in a map. The algorithm will
59   * analyze the {@link Style} of every visible(?) layer and determine the label   * analyze the {@link Style} of every visible(?) layer and determine the label
60   * attribute. This field is then searched for every feature.   * attribute. This field is then searched for every feature.
61   *   *
62   * @author Stefan A. Krüger   * @author Stefan A. Tzeggai
63   *   *
64   */   */
65  public class LabelSearch {  public class LabelSearch {
66          final static private Logger LOGGER = Logger.getLogger(LabelSearch.class);          final static private Logger LOGGER = Logger.getLogger(LabelSearch.class);
67    
68          public static ResourceProvider RESOURCE = new ResourceProvider(LangUtil          /** Translations come from GTResourceBundle **/
                         .extendPackagePath(LabelSearch.class, "labelsearch"),  
                         Locale.ENGLISH);  
   
69          public static String R(String key, Object... values) {          public static String R(String key, Object... values) {
70                  return RESOURCE.getString(key, values);                  return GeotoolsGUIUtil.R(key, values);
71          }          }
72    
73          protected final schmitzm.geotools.gui.SelectableXMapPane mapPane;          protected final schmitzm.geotools.gui.SelectableXMapPane mapPane;

Legend:
Removed from v.685  
changed lines
  Added in v.887

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26