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.StyledMapInterface; |
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 StyledMapInterface} ({@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 styledMap styled map the selection is controlled of |
33 |
protected Style selectionMapStyle = null; |
*/ |
34 |
/** Holds the current selection as {@link Filter}. */ |
public StyledFeatureLayerSelectionModel(StyledFeatureCollectionInterface styledMap) { |
35 |
protected Filter selectionFilter = null; |
super(styledMap); |
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 styledMap styled map the selection is controlled of |
41 |
|
*/ |
42 |
|
public StyledFeatureLayerSelectionModel(StyledFeatureSourceInterface styledMap) { |
43 |
|
super(styledMap); |
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. |