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

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

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

branches/2.0-RC1/src/skrueger/geotools/StyledLayerInterface.java revision 604 by alfonx, Wed Dec 9 14:15:53 2009 UTC trunk/src/skrueger/geotools/StyledLayerInterface.java revision 1203 by alfonx, Tue Nov 2 22:53:55 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;  package skrueger.geotools;
31    
# Line 34  import java.net.URL; Line 34  import java.net.URL;
34  import javax.swing.ImageIcon;  import javax.swing.ImageIcon;
35    
36  import org.geotools.feature.FeatureCollection;  import org.geotools.feature.FeatureCollection;
37    import org.geotools.geometry.jts.ReferencedEnvelope;
38  import org.geotools.styling.Style;  import org.geotools.styling.Style;
39  import org.opengis.referencing.crs.CoordinateReferenceSystem;  import org.opengis.referencing.crs.CoordinateReferenceSystem;
40    
41  import skrueger.AttributeMetadata;  import skrueger.AttributeMetadataImpl;
42  import skrueger.RasterLegendData;  import skrueger.RasterLegendData;
43  import skrueger.i8n.Translation;  import skrueger.i8n.Translation;
44    
# Line 85  import com.vividsolutions.jts.geom.Envel Line 86  import com.vividsolutions.jts.geom.Envel
86   * <ul>   * <ul>
87   * <li>layer list only depends on {@link StyledLayerInterface}</li>   * <li>layer list only depends on {@link StyledLayerInterface}</li>
88   * <li>methods returning {@link Translation} must not return {@code null}</li>   * <li>methods returning {@link Translation} must not return {@code null}</li>
89   * <li>methods returning {@link AttributeMetadata}-Map must not return {@code   * <li>methods returning {@link AttributeMetadataImpl}-Map must not return {@code
90   * null}</li>   * null}</li>
91   * <li>static helper method to get a new {@link AttributeMetadata}-map withe the   * <li>static helper method to get a new {@link AttributeMetadataImpl}-map withe the
92   * visible attributes only</li>   * visible attributes only</li>
93   * <li>static helper method to create a "default" {@link AttributeMetadata}-map   * <li>static helper method to create a "default" {@link AttributeMetadataImpl}-map
94   * for a {@link FeatureCollection} with all attributes visible and without real   * for a {@link FeatureCollection} with all attributes visible and without real
95   * translations, but the attribute name as description.</li>   * translations, but the attribute name as description.</li>
96   * </ul>   * </ul>
# Line 116  public interface StyledLayerInterface<E> Line 117  public interface StyledLayerInterface<E>
117          public Envelope getEnvelope();          public Envelope getEnvelope();
118    
119          /**          /**
120             * @return <code>null</code> is no CRS is available
121             */
122            public ReferencedEnvelope getReferencedEnvelope();
123    
124    
125            /**
126           * @return return an ImageIcon - <code>null</code> is valid and no icon or a           * @return return an ImageIcon - <code>null</code> is valid and no icon or a
127           *         default icon will then be shown           *         default icon will then be shown
128           */           */
# Line 142  public interface StyledLayerInterface<E> Line 149  public interface StyledLayerInterface<E>
149           * @return null or an {@link URL}           * @return null or an {@link URL}
150           */           */
151          public URL getInfoURL();          public URL getInfoURL();
152            
153          /**          /**
154           * Should be called when this Object is not needed anymore.           * Should be called when this Object is not needed anymore.
155           */           */
# Line 156  public interface StyledLayerInterface<E> Line 163  public interface StyledLayerInterface<E>
163           * reread on next call of getGeoObject()           * reread on next call of getGeoObject()
164           */           */
165          public void uncache();          public void uncache();
166    //      public String getLegendHtml();
   
167  }  }

Legend:
Removed from v.604  
changed lines
  Added in v.1203

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26