19 |
import skrueger.i8n.Translation; |
import skrueger.i8n.Translation; |
20 |
|
|
21 |
/** |
/** |
22 |
* This class provides a simple implementation of {@link StyledMapInterface} for |
* This class provides a simple implementation of {@link StyledLayerInterface} for |
23 |
* {@link FeatureCollection}. The uncache functionality is not supported, |
* {@link FeatureCollection}. The uncache functionality is not supported, |
24 |
* because this class bases on an existing {@link FeatureCollection} object in |
* because this class bases on an existing {@link FeatureCollection} object in |
25 |
* memory. |
* memory. |
29 |
* @version 1.0 |
* @version 1.0 |
30 |
*/ |
*/ |
31 |
public class StyledFeatureCollection extends |
public class StyledFeatureCollection extends |
32 |
AbstractStyledMap<FeatureCollection> implements |
AbstractStyledLayer<FeatureCollection> implements |
33 |
StyledFeatureCollectionInterface { |
StyledFeatureCollectionInterface { |
34 |
|
|
35 |
/** Holds the meta data for displaying a legend. */ |
/** Holds the meta data for displaying a legend. */ |
95 |
*/ |
*/ |
96 |
public StyledFeatureCollection(FeatureCollection fc, String id, |
public StyledFeatureCollection(FeatureCollection fc, String id, |
97 |
Translation title, Translation desc, Translation keywords, |
Translation title, Translation desc, Translation keywords, |
98 |
StyledMapStyle<Map<Integer, AttributeMetaData>> style, |
StyledLayerStyle<Map<Integer, AttributeMetaData>> style, |
99 |
ImageIcon icon) { |
ImageIcon icon) { |
100 |
super(fc, fc.getBounds(), fc.getSchema().getDefaultGeometry() |
super(fc, fc.getBounds(), fc.getSchema().getDefaultGeometry() |
101 |
.getCoordinateSystem(), id, title, desc, keywords, |
.getCoordinateSystem(), id, title, desc, keywords, |
180 |
*/ |
*/ |
181 |
public StyledFeatureCollection(FeatureCollection fc, String id, |
public StyledFeatureCollection(FeatureCollection fc, String id, |
182 |
String title, String desc, String keywords, |
String title, String desc, String keywords, |
183 |
StyledMapStyle<Map<Integer, AttributeMetaData>> style, |
StyledLayerStyle<Map<Integer, AttributeMetaData>> style, |
184 |
ImageIcon icon) { |
ImageIcon icon) { |
185 |
this(fc, id, title, desc, keywords, style != null ? style |
this(fc, id, title, desc, keywords, style != null ? style |
186 |
.getGeoObjectStyle() : null, style != null ? style |
.getGeoObjectStyle() : null, style != null ? style |
227 |
* @see #createDefaultAttributeMetaDataMap(FeatureCollection) |
* @see #createDefaultAttributeMetaDataMap(FeatureCollection) |
228 |
*/ |
*/ |
229 |
public StyledFeatureCollection(FeatureCollection fc, String id, |
public StyledFeatureCollection(FeatureCollection fc, String id, |
230 |
String title, StyledMapStyle<Map<Integer, AttributeMetaData>> style) { |
String title, StyledLayerStyle<Map<Integer, AttributeMetaData>> style) { |
231 |
this(fc, id, title, null, null, style != null ? style |
this(fc, id, title, null, null, style != null ? style |
232 |
.getGeoObjectStyle() : null, style != null ? style |
.getGeoObjectStyle() : null, style != null ? style |
233 |
.getMetaData() : null, null); |
.getMetaData() : null, null); |
306 |
} |
} |
307 |
|
|
308 |
/** |
/** |
309 |
* Does nothing, because the {@link AbstractStyledMap} bases on existing |
* Does nothing, because the {@link AbstractStyledLayer} bases on existing |
310 |
* objects (in memory) which can not be uncached and reloaded. |
* objects (in memory) which can not be uncached and reloaded. |
311 |
*/ |
*/ |
312 |
public void uncache() { |
public void uncache() { |
321 |
/* |
/* |
322 |
* (non-Javadoc) |
* (non-Javadoc) |
323 |
* |
* |
324 |
* @see skrueger.geotools.StyledMapInterface#getInfoURL() |
* @see skrueger.geotools.StyledLayerInterface#getInfoURL() |
325 |
*/ |
*/ |
326 |
public URL getInfoURL() { |
public URL getInfoURL() { |
327 |
return null; |
return null; |