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

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

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

revision 256 by alfonx, Fri Jul 31 14:43:47 2009 UTC revision 1273 by alfonx, Mon Nov 15 16:22:47 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  import java.util.List;  import java.util.List;
# Line 33  import java.util.List; Line 33  import java.util.List;
33  import org.geotools.map.MapContext;  import org.geotools.map.MapContext;
34  import org.geotools.map.MapLayer;  import org.geotools.map.MapLayer;
35  import org.geotools.map.event.MapLayerListListener;  import org.geotools.map.event.MapLayerListListener;
 import org.geotools.map.event.MapLayerListener;  
36    
37  import skrueger.AttributeMetaData;  import skrueger.AttributeMetadataImpl;
38  import skrueger.RasterLegendData;  import skrueger.RasterLegendData;
39    
40  /**  /**
41   * Implementations of this class can can be used to fill/insert/remove a mapContext   * Implementations of this class can can be used to fill/insert/remove a mapContext
42   * with {@link StyledLayerInterface} objects.   * with {@link StyledLayerInterface} objects.
43   *   *
44   * @author <a href="mailto:[email protected]">Stefan Alfons Kr&uuml;ger</a>   * @author <a href="mailto:[email protected]">Stefan Alfons Tzeggai</a>
45   *   *
46   */   */
47  public interface MapContextManagerInterface {  public interface MapContextManagerInterface {
# Line 67  public interface MapContextManagerInterf Line 66  public interface MapContextManagerInterf
66           */           */
67          boolean insertStyledLayer (StyledLayerInterface<?> styledLayer, int mapContextIdx);          boolean insertStyledLayer (StyledLayerInterface<?> styledLayer, int mapContextIdx);
68    
69          /** Add {@link MapLayerListener} */          /** Add {@link MapLayerListListener} */
70          void addMapLayerListListener( MapLayerListListener listener);          void addMapLayerListListener( MapLayerListListener listener);
71    
72          /** Remove {@link MapLayerListener} */          /** Remove {@link MapLayerListListener} */
73          void removeMapLayerListListener( MapLayerListListener listener);          void removeMapLayerListListener( MapLayerListListener listener);
74    
75          /**          /**
# Line 84  public interface MapContextManagerInterf Line 83  public interface MapContextManagerInterf
83          List<StyledLayerInterface<?>> getStyledObjects();          List<StyledLayerInterface<?>> getStyledObjects();
84    
85          /**          /**
86           * Returns a list of {@link AttributeMetaData} that shall be shown (e.g. when the Mouse clicked into the map)           * Returns a list of {@link AttributeMetadataImpl} that shall be shown (e.g. when the Mouse clicked into the map)
87           * Returns an empty list if the layer doesn't exist or is not backed by a {@link StyledFeatureCollectionInterface}           * Returns an empty list if the layer doesn't exist or is not backed by a {@link StyledFeatureCollectionInterface}
88           */           */
89          List<AttributeMetaData> getVisibleAttribsFor(MapLayer mapLayer);          List<AttributeMetadataImpl> getVisibleAttribsFor(MapLayer mapLayer);
90    
91          /**          /**
92           * Returns the title of the layer           * Returns the title of the layer
# Line 113  public interface MapContextManagerInterf Line 112  public interface MapContextManagerInterf
112           * Returns the {@link StyledLayerInterface} object that is associated with the layer or NULL if the layer can't be found.           * Returns the {@link StyledLayerInterface} object that is associated with the layer or NULL if the layer can't be found.
113           */           */
114          StyledLayerInterface<?> getStyledObjectFor(MapLayer layer);          StyledLayerInterface<?> getStyledObjectFor(MapLayer layer);
115            
116            /**
117             * @return The {@link MapContext} managed by this {@link MapContextManagerInterface}
118             */
119            MapContext getMapContext();
120    
121  }  }

Legend:
Removed from v.256  
changed lines
  Added in v.1273

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26