/[schmitzm]/branches/2.3.KECK/src/skrueger/geotools/selection/StyledFeatureLayerSelectionModel.java
ViewVC logotype

Diff of /branches/2.3.KECK/src/skrueger/geotools/selection/StyledFeatureLayerSelectionModel.java

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

revision 96 by alfonx, Fri May 8 11:23:16 2009 UTC revision 224 by alfonx, Tue Jul 14 15:57:19 2009 UTC
# Line 14  Line 14 
14    
15  package skrueger.geotools.selection;  package skrueger.geotools.selection;
16    
 import java.util.Collection;  
 import java.util.HashSet;  
 import java.util.Set;  
 import java.util.Vector;  
   
 import org.apache.log4j.Logger;  
17  import org.geotools.feature.Feature;  import org.geotools.feature.Feature;
 import org.geotools.filter.AbstractFilterImpl;  
 import org.geotools.styling.Style;  
 import org.opengis.filter.Filter;  
   
 import schmitzm.geotools.feature.FeatureUtil;  
18    
19  import com.vividsolutions.jts.geom.Envelope;  import skrueger.geotools.StyledFeatureCollectionInterface;
20    import skrueger.geotools.StyledFeatureSourceInterface;
21    import skrueger.geotools.StyledLayerInterface;
22    
23  /**  /**
24   * This manager takes care of every object selection for a {@link DpLayerVector}   * This manager holds a set of {@link Feature Features} which are <i>selected</i>
25   * in the several atlas components and informs the appropriate components     * in a {@link StyledLayerInterface} ({@link StyledFeatureCollectionInterface} or
26   * to keep the selection synchronized.   * {@link StyledFeatureSourceInterface}).
  * <ul>  
  *   <li>Geographical map of the layer</li>  
  *   <li>Feature attribute table of the layer</li>  
  *   <li>Chart visualizations of the layer</li>  
  * </ul>  
27   * @author <a href="mailto:[email protected]">Martin Schmitz</a> (University of Bonn/Germany)   * @author <a href="mailto:[email protected]">Martin Schmitz</a> (University of Bonn/Germany)
28   */   */
29  public class StyledFeatureLayerSelectionModel extends StyledLayerSelectionModel<Feature> {  public class StyledFeatureLayerSelectionModel extends StyledLayerSelectionModel<String> {
30          /** A static logger for this class  */    /**
31    private static final Logger LOGGER = Logger.getLogger(StyledFeatureLayerSelectionModel.class);     * Creates a new selection model.
32    /** Holds the current selection as {@link Style}. */     * @param styledLayer styled map the selection is controlled of
33    protected Style selectionMapStyle = null;     */
34    /** Holds the current selection as {@link Filter}. */    public StyledFeatureLayerSelectionModel(StyledFeatureCollectionInterface styledLayer) {
35    protected Filter selectionFilter = null;      super(styledLayer);
36    /** Holds the current selection as {@code ChartStyle}.    }
37     *  TODO: determine an appropriate type for the chart styling. */    
38    protected Object selectionChartStyle = null;    /**
39       * Creates a new selection model.
40       * @param styledLayer styled map the selection is controlled of
41       */
42      public StyledFeatureLayerSelectionModel(StyledFeatureSourceInterface styledLayer) {
43        super(styledLayer);
44      }
45      
46      
47      
48    //***********  UNUSED STUFF  **************  
49      
50    //      /** A static logger for this class  */
51    //  private static final Logger LOGGER = Logger.getLogger(StyledFeatureLayerSelectionModel.class);
52    //  /** Holds the current selection as {@link Style}. */
53    //  protected Style selectionMapStyle = null;
54    //  /** Holds the current selection as {@link Filter}. */
55    //  protected Filter selectionFilter = null;
56    //  /** Holds the current selection as {@code ChartStyle}.
57    //   *  TODO: determine an appropriate type for the chart styling. */
58    //  protected Object selectionChartStyle = null;
59  //      //    
60  //  /**  //  /**
61  //   * Creates a new selection model.  //   * Creates a new selection model.

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26