/[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 256 by alfonx, Fri Jul 31 14:43:47 2009 UTC revision 685 by alfonx, Wed Feb 10 15:04:02 2010 UTC
# 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.256  
changed lines
  Added in v.685

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26