42 |
**/ |
**/ |
43 |
package skrueger.geotools.selection; |
package skrueger.geotools.selection; |
44 |
|
|
|
import java.awt.RenderingHints; |
|
45 |
import java.beans.PropertyChangeEvent; |
import java.beans.PropertyChangeEvent; |
46 |
import java.beans.PropertyChangeListener; |
import java.beans.PropertyChangeListener; |
47 |
import java.io.File; |
import java.io.File; |
|
import java.util.HashMap; |
|
48 |
import java.util.HashSet; |
import java.util.HashSet; |
49 |
import java.util.Iterator; |
import java.util.Iterator; |
50 |
import java.util.Set; |
import java.util.Set; |
58 |
import org.geotools.feature.FeatureIterator; |
import org.geotools.feature.FeatureIterator; |
59 |
import org.geotools.filter.FidFilterImpl; |
import org.geotools.filter.FidFilterImpl; |
60 |
import org.geotools.map.MapLayer; |
import org.geotools.map.MapLayer; |
|
import org.geotools.renderer.GTRenderer; |
|
|
import org.geotools.renderer.label.LabelCacheImpl; |
|
|
import org.geotools.renderer.lite.StreamingRenderer; |
|
61 |
import org.geotools.styling.FeatureTypeStyle; |
import org.geotools.styling.FeatureTypeStyle; |
62 |
import org.geotools.styling.Style; |
import org.geotools.styling.Style; |
63 |
import org.geotools.styling.visitor.DuplicatingStyleVisitor; |
import org.geotools.styling.visitor.DuplicatingStyleVisitor; |
68 |
import org.opengis.filter.identity.FeatureId; |
import org.opengis.filter.identity.FeatureId; |
69 |
|
|
70 |
import schmitzm.geotools.FilterUtil; |
import schmitzm.geotools.FilterUtil; |
|
import schmitzm.geotools.GTUtil; |
|
71 |
import schmitzm.geotools.gui.SelectableXMapPane; |
import schmitzm.geotools.gui.SelectableXMapPane; |
72 |
import schmitzm.geotools.map.event.FeatureSelectedEvent; |
import schmitzm.geotools.map.event.FeatureSelectedEvent; |
73 |
import schmitzm.geotools.map.event.JMapPaneListener; |
import schmitzm.geotools.map.event.JMapPaneListener; |
317 |
} |
} |
318 |
|
|
319 |
/** |
/** |
320 |
* Analyses whether the selection has changed in comparison to the selection |
* Analyzes whether the selection has changed in comparison to the selection |
321 |
* stored in the mapLayer.Style |
* stored in the mapLayer.Style |
322 |
* |
* |
323 |
* @param newSelection |
* @param newSelection a List<String> of all newly selected FIDs |
324 |
* @param originalStyle |
* @param originalStyle the original {@link Style} that has an earlier selection coded into the {@link Style} |
325 |
* @return |
* @return <code>true</code> if changed. |
326 |
*/ |
*/ |
327 |
private boolean selectionChanged(Vector<String> newSelection, |
private boolean selectionChanged(Vector<String> newSelection, |
328 |
Style originalStyle) { |
Style originalStyle) { |