/[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

trunk/src/skrueger/geotools/StyledMapInterface.java revision 40 by alfonx, Mon Apr 6 19:31:02 2009 UTC trunk/src/skrueger/geotools/StyledLayerInterface.java revision 224 by alfonx, Tue Jul 14 15:57:19 2009 UTC
# Line 4  import java.net.URL; Line 4  import java.net.URL;
4    
5  import javax.swing.ImageIcon;  import javax.swing.ImageIcon;
6    
7    import org.geotools.feature.FeatureCollection;
8  import org.geotools.styling.Style;  import org.geotools.styling.Style;
9  import org.opengis.referencing.crs.CoordinateReferenceSystem;  import org.opengis.referencing.crs.CoordinateReferenceSystem;
10    
11    import skrueger.AttributeMetaData;
12    import skrueger.RasterLegendData;
13  import skrueger.i8n.Translation;  import skrueger.i8n.Translation;
14    
15  import com.vividsolutions.jts.geom.Envelope;  import com.vividsolutions.jts.geom.Envelope;
16    
 // fuer Doku  
 import org.geotools.feature.FeatureCollection;  
 import org.geotools.coverage.grid.GridCoverage2D;  
 import skrueger.geotools.MapContextManagerInterface;  
 import skrueger.AttributeMetaData;  
 import skrueger.RasterLegendData;  
   
17  /**  /**
18   * This class is the top interface for styled objects to be managed in   * This class is the top interface for styled objects to be managed in
19   * {@link MapContextManagerInterface}. The (rough) classe structure is the   * {@link MapContextManagerInterface}. The (rough) classe structure is the
20   * following:   * following:
21   * <ul>   * <ul>
22   * <li><b>{@link StyledMapInterface StyledMapInterface<E>}</b>   * <li><b>{@link StyledLayerInterface StyledLayerInterface<E>}</b>
23   * <ul>   * <ul>
24   * <li>{@link #getId()} -> String</li>   * <li>{@link #getId()} -> String</li>
25   * <li>{@link #getKeywords() get/setKeywords()} -> {@link Translation}</li>   * <li>{@link #getKeywords() get/setKeywords()} -> {@link Translation}</li>
# Line 41  import skrueger.RasterLegendData; Line 37  import skrueger.RasterLegendData;
37   * </ul>   * </ul>
38   * </li>   * </li>
39   * <li><b>{@link StyledFeatureCollectionInterface} extends   * <li><b>{@link StyledFeatureCollectionInterface} extends
40   * {@link StyledMapInterface StyledMapInterface<FeatureCollection>}</b>   * {@link StyledLayerInterface StyledLayerInterface<FeatureCollection>}</b>
41   * <ul>   * <ul>
42   * <li>{@link StyledFeatureCollectionInterface#getAttributeMetaDataMap()} ->   * <li>{@link StyledFeatureCollectionInterface#getAttributeMetaDataMap()} ->
43   * Map<Integer,AttributeMetaData></li>   * Map<Integer,AttributeMetaData></li>
44   * </ul>   * </ul>
45   * </li>   * </li>
46   * <li><b>{@link StyledRasterInterface} extends {@link StyledMapInterface   * <li><b>{@link StyledRasterInterface} extends {@link StyledLayerInterface
47   * StyledMapInterface<GridCoverage2D>}</b>   * StyledLayerInterface<GridCoverage2D>}</b>
48   * <ul>   * <ul>
49   * <li>{@link StyledRasterInterface#getLegendMetaData()} ->   * <li>{@link StyledRasterInterface#getLegendMetaData()} ->
50   * {@link RasterLegendData}</li>   * {@link RasterLegendData}</li>
# Line 58  import skrueger.RasterLegendData; Line 54  import skrueger.RasterLegendData;
54   * <br>   * <br>
55   * <b>Restrictions:</b>   * <b>Restrictions:</b>
56   * <ul>   * <ul>
57   * <li>layer list only depends on {@link StyledMapInterface}</li>   * <li>layer list only depends on {@link StyledLayerInterface}</li>
58   * <li>methods returning {@link Translation} must not return {@code null}</li>   * <li>methods returning {@link Translation} must not return {@code null}</li>
59   * <li>methods returning {@link AttributeMetaData}-Map must not return {@code   * <li>methods returning {@link AttributeMetaData}-Map must not return {@code
60   * null}</li>   * null}</li>
# Line 69  import skrueger.RasterLegendData; Line 65  import skrueger.RasterLegendData;
65   * translations, but the attribute name as description.</li>   * translations, but the attribute name as description.</li>
66   * </ul>   * </ul>
67   */   */
68  public interface StyledMapInterface<E> {  public interface StyledLayerInterface<E> {
69          public String getId();          public String getId();
70    
71          public Translation getTitle();          public Translation getTitle();
# Line 103  public interface StyledMapInterface<E> { Line 99  public interface StyledMapInterface<E> {
99           *           *
100           * @throws RuntimeException           * @throws RuntimeException
101           */           */
102          public E getGeoObject() throws Exception;          public E getGeoObject();
103    
104          public Style getStyle();          public Style getStyle();
105    
# Line 112  public interface StyledMapInterface<E> { Line 108  public interface StyledMapInterface<E> {
108          /**          /**
109           * Returns the {@link URL} to a (HTML) file that provides more information           * Returns the {@link URL} to a (HTML) file that provides more information
110           * about this layer. If no HTML if associated with this           * about this layer. If no HTML if associated with this
111           * {@link StyledMapInterface}, then <code>null</code> will be returned.           * {@link StyledLayerInterface}, then <code>null</code> will be returned.
112           *           *
113           * @return null or an {@link URL}           * @return null or an {@link URL}
114           */           */
# Line 132  public interface StyledMapInterface<E> { Line 128  public interface StyledMapInterface<E> {
128           */           */
129          public void uncache();          public void uncache();
130    
         /**  
          * If true, this layer will not be shown in the legend. Default = false  
          */  
         /**  
          *  
          * Killed by SK: 6. April 09: Ein Layer soll nicht generell auf  
          * verstecken/nicht verstecken gestellt werden können. Das sind  
          * Eigenschaften der Karte/MapContext, ebenso wie die Reihenfolge der Layer.  
          * Im Atlas verwaltet deshalb nun die Klasse skrueger.atlas.Map welche Layer  
          * nicht in der Legende auftauchen sollen. Meines Wissens hat keiner bisher  
          * die Funktion genutzt.  
          *  
          * public boolean isHideInLegend();  
          */  
131    
132  }  }

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26