52 |
import javax.swing.event.EventListenerList; |
import javax.swing.event.EventListenerList; |
53 |
|
|
54 |
import org.apache.log4j.Logger; |
import org.apache.log4j.Logger; |
55 |
import org.geotools.feature.SimpleFeature; |
import org.opengis.feature.simple.SimpleFeature; |
56 |
|
|
57 |
import schmitzm.swing.event.PropertyChangeEmitter; |
import schmitzm.swing.event.PropertyChangeEmitter; |
58 |
import skrueger.geotools.StyledLayerInterface; |
import skrueger.geotools.StyledLayerInterface; |
79 |
protected final HashSet<E> selectionObjects; |
protected final HashSet<E> selectionObjects; |
80 |
|
|
81 |
/** Holds the styled map whose selection is managed by this class. */ |
/** Holds the styled map whose selection is managed by this class. */ |
82 |
protected final StyledLayerInterface<?> styledLayer; |
private final StyledLayerInterface<?> styledLayer; |
83 |
|
|
84 |
|
|
85 |
/** Indicates whether a selection change is a part of multiple |
/** Indicates whether a selection change is a part of multiple |
237 |
* Removes a listener from the listener list. Only alias for {@link #removeListener(PropertyChangeListener)}. |
* Removes a listener from the listener list. Only alias for {@link #removeListener(PropertyChangeListener)}. |
238 |
* @param listener a listener |
* @param listener a listener |
239 |
*/ |
*/ |
240 |
public void removeSelectionListener(StyledLayerSelectionModelSynchronizer<StyledLayerSelectionModel<E>> listener) { |
public boolean removeSelectionListener(StyledLayerSelectionModelSynchronizer<StyledLayerSelectionModel<E>> listener) { |
241 |
this.removeListener(listener); |
return this.removeListener(listener); |
242 |
} |
} |
243 |
|
|
244 |
|
public StyledLayerInterface<?> getStyledLayer() { |
245 |
|
return styledLayer; |
246 |
|
} |
247 |
|
|
248 |
|
|
249 |
} |
} |