/[schmitzm]/branches/2.1/src/skrueger/geotools/selection/ChartSelectionSynchronizer.java
ViewVC logotype

Diff of /branches/2.1/src/skrueger/geotools/selection/ChartSelectionSynchronizer.java

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

revision 244 by alfonx, Wed Jul 29 09:33:33 2009 UTC revision 685 by alfonx, Wed Feb 10 15:04:02 2010 UTC
# Line 2  Line 2 
2   * Copyright (c) 2009 Martin O. J. Schmitz.   * Copyright (c) 2009 Martin O. J. Schmitz.
3   *   *
4   * This file is part of the SCHMITZM library - a collection of utility   * This file is part of the SCHMITZM library - a collection of utility
5   * classes based on Java 1.6, focussing (not only) on Java Swing   * classes based on Java 1.6, focusing (not only) on Java Swing
6   * and the Geotools library.   * and the Geotools library.
7   *   *
8   * The SCHMITZM project is hosted at:   * The SCHMITZM project is hosted at:
# Line 63  public class ChartSelectionSynchronizer Line 63  public class ChartSelectionSynchronizer
63                                          implements DatasetSelectionListener {                                          implements DatasetSelectionListener {
64    
65    /** Holds the chart datset to keep synchronized with the layer selection model. */    /** Holds the chart datset to keep synchronized with the layer selection model. */
66    protected FeatureDatasetSelectionModel<?> datasetSelModel = null;    protected FeatureDatasetSelectionModel<?,?,?> datasetSelModel = null;
67    
68    /**    /**
69     * Creates a new synchronizer.     * Creates a new synchronizer.
# Line 74  public class ChartSelectionSynchronizer Line 74  public class ChartSelectionSynchronizer
74     *            dataset selection model to keep synchronized with the layer     *            dataset selection model to keep synchronized with the layer
75     *            selection model     *            selection model
76     */     */
77    public ChartSelectionSynchronizer(StyledFeatureLayerSelectionModel layerSelModel, FeatureDatasetSelectionModel<?> datasetSelModel) {    public ChartSelectionSynchronizer(StyledFeatureLayerSelectionModel layerSelModel, FeatureDatasetSelectionModel<?,?,?> datasetSelModel) {
78      super(layerSelModel);      super(layerSelModel);
79      this.datasetSelModel = datasetSelModel;      this.datasetSelModel = datasetSelModel;
80    }    }
# Line 88  public class ChartSelectionSynchronizer Line 88  public class ChartSelectionSynchronizer
88     */     */
89    @Override    @Override
90    public void propertyChange(PropertyChangeEvent evt) {    public void propertyChange(PropertyChangeEvent evt) {
91            
92            if (!isEnabled())
93                    return;
94              
95      if (!(evt instanceof StyledLayerSelectionEvent))      if (!(evt instanceof StyledLayerSelectionEvent))
96        return;        return;
97      StyledLayerSelectionEvent selEvt = (StyledLayerSelectionEvent) evt;      StyledLayerSelectionEvent selEvt = (StyledLayerSelectionEvent) evt;

Legend:
Removed from v.244  
changed lines
  Added in v.685

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26