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

Contents of /trunk/src/skrueger/geotools/MapContextManagerInterface.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 224 - (show annotations)
Tue Jul 14 15:57:19 2009 UTC (15 years, 7 months ago) by alfonx
File size: 2785 byte(s)
* big biG BIG refactoring: StyledMap[Interface,Util,Style] never dealt with Maps (=Orchestrations of layers), but always only with single Layers. Now it has been refactored to StyledLayer[Interface,Util,Style]. 
* Some variable names and methodNames have been corrected also, but many will still be missing.
* New JARs committed
1 package skrueger.geotools;
2 import java.util.List;
3
4 import org.geotools.map.MapContext;
5 import org.geotools.map.MapLayer;
6 import org.geotools.map.event.MapLayerListListener;
7 import org.geotools.map.event.MapLayerListener;
8
9 import skrueger.AttributeMetaData;
10 import skrueger.RasterLegendData;
11
12 /**
13 * Implementations of this class can can be used to fill/insert/remove a mapContext
14 * with {@link StyledLayerInterface} objects.
15 *
16 * @author <a href="mailto:[email protected]">Stefan Alfons Kr&uuml;ger</a>
17 *
18 */
19 public interface MapContextManagerInterface {
20
21 /**
22 * Add a {@link StyledLayerInterface} object into the underlying {@link MapContext}
23 * as the topmost layer
24 *
25 * @param styledLayer Layer to add to the map
26 */
27 boolean addStyledLayer (StyledLayerInterface<?> styledLayer);
28
29 /**
30 * @param mapContextIdx Index in the {@link MapContext}, bottom first
31 * @return successful?
32 */
33 boolean removeStyledLayer (int mapContextIdx);
34
35 /**
36 * Inserts a {@link StyledLayerInterface} object into the underlying {@link MapContext}
37 * at the given position
38 */
39 boolean insertStyledLayer (StyledLayerInterface<?> styledLayer, int mapContextIdx);
40
41 /** Add {@link MapLayerListener} */
42 void addMapLayerListListener( MapLayerListListener listener);
43
44 /** Remove {@link MapLayerListener} */
45 void removeMapLayerListListener( MapLayerListListener listener);
46
47 /**
48 * Help the GC by disposing this Component
49 */
50 void dispose();
51
52 /**
53 * Returns a ordered list of the layers that are contained in the underlying {@link MapContext}
54 */
55 List<StyledLayerInterface<?>> getStyledObjects();
56
57 /**
58 * Returns a list of {@link AttributeMetaData} that shall be shown (e.g. when the Mouse clicked into the map)
59 * Returns an empty list if the layer doesn't exist or is not backed by a {@link StyledFeatureCollectionInterface}
60 */
61 List<AttributeMetaData> getVisibleAttribsFor(MapLayer mapLayer);
62
63 /**
64 * Returns the title of the layer
65 * @param mapLayer {@link MapLayer}
66 * @return <code>null</code>, if the layer is unknown
67 */
68 String getTitleFor(MapLayer mapLayer);
69
70 /**
71 * Returns the description of the layer
72 * @param mapLayer {@link MapLayer}
73 * @return <code>null</code>, if the layer is unknown. Empty String if the description is empty
74 */
75 String getDescFor(MapLayer mapLayer);
76
77 /**
78 * Returns the {@link RasterLegendData} object for the layer.
79 * @return null, if the layer is not found or of type raster
80 */
81 RasterLegendData getLegendMetaData(MapLayer mapLayer);
82
83 /**
84 * Returns the {@link StyledLayerInterface} object that is associated with the layer or NULL if the layer can't be found.
85 */
86 StyledLayerInterface<?> getStyledObjectFor(MapLayer layer);
87 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26