/[schmitzm]/branches/2.2.x/src/skrueger/geotools/labelsearch/SearchResultFeature.java
ViewVC logotype

Diff of /branches/2.2.x/src/skrueger/geotools/labelsearch/SearchResultFeature.java

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

revision 315 by mojays, Wed Aug 26 11:03:27 2009 UTC revision 318 by alfonx, Wed Aug 26 13:33:32 2009 UTC
# Line 32  package skrueger.geotools.labelsearch; Line 32  package skrueger.geotools.labelsearch;
32  import javax.swing.SwingUtilities;  import javax.swing.SwingUtilities;
33    
34  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
35  import org.geotools.feature.Feature;  import org.geotools.feature.SimpleFeature;
36  import org.geotools.map.MapLayer;  import org.geotools.map.MapLayer;
37    
38  public class SearchResultFeature implements SearchResult {  public class SearchResultFeature implements SearchResult {
39          final static private Logger LOGGER = Logger          final static private Logger LOGGER = Logger
40                          .getLogger(SearchResultFeature.class);                          .getLogger(SearchResultFeature.class);
41    
42          private final Feature feature;          private final SimpleFeature feature;
43          private final String title;          private final String title;
44          private final schmitzm.geotools.gui.JMapPane mapPane;          private final schmitzm.geotools.gui.JMapPane mapPane;
45          private final String inTitle;          private final String inTitle;
46    
47          private final MapLayer mapLayer;          private final MapLayer mapLayer;
48    
49          public SearchResultFeature(Feature feature, String title, String inTitle,          public SearchResultFeature(SimpleFeature feature, String title, String inTitle,
50                          schmitzm.geotools.gui.JMapPane mapPane, MapLayer mapLayer) {                          schmitzm.geotools.gui.JMapPane mapPane, MapLayer mapLayer) {
51                  this.feature = feature;                  this.feature = feature;
52                  this.title = title;                  this.title = title;
# Line 60  public class SearchResultFeature impleme Line 60  public class SearchResultFeature impleme
60                  return feature.toString();                  return feature.toString();
61          }          }
62    
63          public Feature getFeature() {          public SimpleFeature getFeature() {
64                  return feature;                  return feature;
65          }          }
66    
# Line 82  public class SearchResultFeature impleme Line 82  public class SearchResultFeature impleme
82                  mapPane.refresh();                  mapPane.refresh();
83    
84                  // TODO                  // TODO
85                  // Mark the selected Feature using a spacial style.. similar to the                  // Mark the selected SimpleFeature using a spacial style.. similar to the
86                  // selection stuff.                  // selection stuff.
87                  // mapLayer.getStyle().addFeatureTypeStyle( new FeatureTypeStyle());                  // mapLayer.getStyle().addFeatureTypeStyle( new FeatureTypeStyle());
88    

Legend:
Removed from v.315  
changed lines
  Added in v.318

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26