22 |
import javax.swing.ListSelectionModel; |
import javax.swing.ListSelectionModel; |
23 |
import javax.swing.event.ListSelectionEvent; |
import javax.swing.event.ListSelectionEvent; |
24 |
import javax.swing.event.ListSelectionListener; |
import javax.swing.event.ListSelectionListener; |
25 |
|
import javax.swing.text.Utilities; |
26 |
|
|
27 |
import org.geotools.feature.Feature; |
import org.geotools.feature.Feature; |
28 |
import org.geotools.map.MapLayer; |
import org.geotools.map.MapLayer; |
130 |
try { |
try { |
131 |
if (newSelection.isEmpty()) { |
if (newSelection.isEmpty()) { |
132 |
|
|
|
LOGGER.debug("NO SELECTION"); |
|
133 |
selectionMapStyle = styledMapLayer.getStyle(); |
selectionMapStyle = styledMapLayer.getStyle(); |
134 |
|
LOGGER.debug("NO SELECTION .. reset original style"); |
135 |
|
|
136 |
} else { |
} else { |
137 |
LOGGER.debug("SELECTION EXISTEnT"); |
LOGGER.debug("SELECTION .. change style"); |
138 |
selectionMapStyle = StylingUtil |
selectionMapStyle = StylingUtil |
139 |
.createDefaultStyle(styledMapLayer.getGeoObject()); |
.createDefaultStyle(styledMapLayer.getGeoObject()); |
140 |
|
|
141 |
|
selectionMapStyle = styledMapLayer.getStyle(); |
142 |
|
|
143 |
} |
} |
144 |
|
|
145 |
mapLayer.setStyle(selectionMapStyle); |
mapLayer.setStyle(selectionMapStyle); |