/[schmitzm]/branches/2.0-RC2/src/skrueger/geotools/selection/StyledLayerSelectionModel.java
ViewVC logotype

Diff of /branches/2.0-RC2/src/skrueger/geotools/selection/StyledLayerSelectionModel.java

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

trunk/src/skrueger/geotools/selection/StyledLayerSelectionModel.java revision 256 by alfonx, Fri Jul 31 14:43:47 2009 UTC branches/2.0-RC1/src/skrueger/geotools/selection/StyledLayerSelectionModel.java revision 604 by alfonx, Wed Dec 9 14:15:53 2009 UTC
# Line 52  import java.util.Vector; Line 52  import java.util.Vector;
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.Feature;  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;
# Line 75  public abstract class StyledLayerSelecti Line 75  public abstract class StyledLayerSelecti
75    /** Holds the connected listeners. */    /** Holds the connected listeners. */
76    protected EventListenerList listenerList = new EventListenerList();    protected EventListenerList listenerList = new EventListenerList();
77    
78    /** Holds the current selection (e.g. {@link Feature Features}). */    /** Holds the current selection (e.g. {@link SimpleFeature Features}). */
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
# Line 237  public abstract class StyledLayerSelecti Line 237  public abstract class StyledLayerSelecti
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  }  }

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

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26