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 |
|
|
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 |
|
|
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> |
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 |
*/ |
*/ |
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 |
*/ |
*/ |
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 |
} |
} |