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; |
60 |
return feature.toString(); |
return feature.toString(); |
61 |
} |
} |
62 |
|
|
63 |
public Feature getFeature() { |
public SimpleFeature getFeature() { |
64 |
return feature; |
return feature; |
65 |
} |
} |
66 |
|
|
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 |
|
|