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.StyledFeaturesInterface; |
22 |
|
import skrueger.geotools.StyledLayerInterface; |
23 |
|
|
24 |
/** |
/** |
25 |
* 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> |
26 |
* in the several atlas components and informs the appropriate components |
* in a {@link StyledLayerInterface} ({@link StyledFeatureCollectionInterface} or |
27 |
* 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> |
|
28 |
* @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) |
29 |
*/ |
*/ |
30 |
public class StyledFeatureLayerSelectionModel extends StyledLayerSelectionModel<Feature> { |
public class StyledFeatureLayerSelectionModel extends StyledLayerSelectionModel<String> { |
31 |
/** A static logger for this class */ |
/** |
32 |
private static final Logger LOGGER = Logger.getLogger(StyledFeatureLayerSelectionModel.class); |
* Creates a new selection model. |
33 |
/** Holds the current selection as {@link Style}. */ |
* @param styledLayer styled map the selection is controlled of |
34 |
protected Style selectionMapStyle = null; |
*/ |
35 |
/** Holds the current selection as {@link Filter}. */ |
public StyledFeatureLayerSelectionModel(StyledFeaturesInterface styledLayer) { |
36 |
protected Filter selectionFilter = null; |
super(styledLayer); |
37 |
/** Holds the current selection as {@code ChartStyle}. |
} |
38 |
* TODO: determine an appropriate type for the chart styling. */ |
|
39 |
protected Object selectionChartStyle = null; |
|
40 |
|
|
41 |
|
//*********** UNUSED STUFF ************** |
42 |
|
|
43 |
|
// /** A static logger for this class */ |
44 |
|
// private static final Logger LOGGER = Logger.getLogger(StyledFeatureLayerSelectionModel.class); |
45 |
|
// /** Holds the current selection as {@link Style}. */ |
46 |
|
// protected Style selectionMapStyle = null; |
47 |
|
// /** Holds the current selection as {@link Filter}. */ |
48 |
|
// protected Filter selectionFilter = null; |
49 |
|
// /** Holds the current selection as {@code ChartStyle}. |
50 |
|
// * TODO: determine an appropriate type for the chart styling. */ |
51 |
|
// protected Object selectionChartStyle = null; |
52 |
// |
// |
53 |
// /** |
// /** |
54 |
// * Creates a new selection model. |
// * Creates a new selection model. |