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.AttributeMetadataInterface; |
43 |
import skrueger.RasterLegendData; |
import skrueger.RasterLegendData; |
44 |
import skrueger.i8n.Translation; |
import skrueger.i8n.Translation; |
45 |
|
|
87 |
* <ul> |
* <ul> |
88 |
* <li>layer list only depends on {@link StyledLayerInterface}</li> |
* <li>layer list only depends on {@link StyledLayerInterface}</li> |
89 |
* <li>methods returning {@link Translation} must not return {@code null}</li> |
* <li>methods returning {@link Translation} must not return {@code null}</li> |
90 |
* <li>methods returning {@link AttributeMetadata}-Map must not return {@code |
* <li>methods returning {@link AttributeMetadataInterface}-Map must not return {@code |
91 |
* null}</li> |
* null}</li> |
92 |
* <li>static helper method to get a new {@link AttributeMetadata}-map withe the |
* <li>static helper method to get a new {@link AttributeMetadataImpl}-map with the |
93 |
* visible attributes only</li> |
* visible attributes only</li> |
94 |
* <li>static helper method to create a "default" {@link AttributeMetadata}-map |
* <li>static helper method to create a "default" {@link AttributeMetadataImpl}-map |
95 |
* for a {@link FeatureCollection} with all attributes visible and without real |
* for a {@link FeatureCollection} with all attributes visible and without real |
96 |
* translations, but the attribute name as description.</li> |
* translations, but the attribute name as description.</li> |
97 |
* </ul> |
* </ul> |
118 |
public Envelope getEnvelope(); |
public Envelope getEnvelope(); |
119 |
|
|
120 |
/** |
/** |
121 |
|
* @return <code>null</code> is no CRS is available |
122 |
|
*/ |
123 |
|
public ReferencedEnvelope getReferencedEnvelope(); |
124 |
|
|
125 |
|
|
126 |
|
/** |
127 |
* @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 |
128 |
* default icon will then be shown |
* default icon will then be shown |
129 |
*/ |
*/ |
164 |
* reread on next call of getGeoObject() |
* reread on next call of getGeoObject() |
165 |
*/ |
*/ |
166 |
public void uncache(); |
public void uncache(); |
167 |
|
// public String getLegendHtml(); |
|
|
|
168 |
} |
} |