/[schmitzm]/trunk/src/skrueger/geotools/StyledFeatureCollection.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/StyledFeatureCollection.java

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

revision 222 by alfonx, Tue Jul 14 14:46:39 2009 UTC revision 224 by alfonx, Tue Jul 14 15:57:19 2009 UTC
# Line 19  import skrueger.AttributeMetaData; Line 19  import skrueger.AttributeMetaData;
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.
# Line 29  import skrueger.i8n.Translation; Line 29  import skrueger.i8n.Translation;
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. */
# Line 95  public class StyledFeatureCollection ext Line 95  public class StyledFeatureCollection ext
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,
# Line 180  public class StyledFeatureCollection ext Line 180  public class StyledFeatureCollection ext
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
# Line 227  public class StyledFeatureCollection ext Line 227  public class StyledFeatureCollection ext
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);
# Line 306  public class StyledFeatureCollection ext Line 306  public class StyledFeatureCollection ext
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() {
# Line 321  public class StyledFeatureCollection ext Line 321  public class StyledFeatureCollection ext
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;

Legend:
Removed from v.222  
changed lines
  Added in v.224

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26