[Schmitzm-commits] r107 - trunk/src/skrueger/geotools/selection
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon May 11 15:14:21 CEST 2009
Author: alfonx
Date: 2009-05-11 15:14:20 +0200 (Mon, 11 May 2009)
New Revision: 107
Modified:
trunk/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
Log:
* Removed the Windows hack to correct _DE.html filenames automatically to _de.html
Modified: trunk/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java
===================================================================
--- trunk/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java 2009-05-08 15:13:49 UTC (rev 106)
+++ trunk/src/skrueger/geotools/selection/FeatureMapLayerSelectionSynchronizer.java 2009-05-11 13:14:20 UTC (rev 107)
@@ -26,6 +26,7 @@
import org.geotools.feature.Feature;
import org.geotools.map.MapLayer;
+import org.geotools.styling.PolygonSymbolizer;
import org.geotools.styling.Rule;
import org.geotools.styling.RuleImpl;
import org.geotools.styling.Style;
@@ -35,6 +36,7 @@
import org.opengis.filter.FilterVisitor;
import org.opengis.layer.StyleURL;
+import schmitzm.geotools.FilterUtil;
import schmitzm.geotools.gui.FeatureCollectionTableModel;
import schmitzm.geotools.gui.JMapPane;
import schmitzm.geotools.map.event.FeatureSelectedEvent;
@@ -147,14 +149,17 @@
Style originalStyle = styledMapLayer.getStyle();
// TODO This clone is a deep clone and it is slow..
- selectionMapStyle = StylingUtil.clone(originalStyle);
-
- // TODO BAD CODE
- Style defaultStyle = StylingUtil
+ selectionMapStyle = StylingUtil
.createDefaultStyle(styledMapLayer.getGeoObject());
+
+// Symbolizer sss = selectionMapStyle.getFeatureTypeStyles()[0].getRules()[0].getSymbolizers()[0];
+// if (sss instanceof PolygonSymbolizer) {
+// PolygonSymbolizer ps = (PolygonSymbolizer) sss;
+// ps.getFill().setOpacity( FilterUtil.FILTER_FAC.literal(0.5));
+// }
// Rule selectedRule = StylingUtil.STYLE_FACTORY.createRule();
- defaultStyle.getFeatureTypeStyles()[0].getRules()[0]
+ selectionMapStyle.getFeatureTypeStyles()[0].getRules()[0]
.setFilter(new Filter() {
@Override
@@ -181,8 +186,8 @@
});
selectionMapStyle.setFeatureTypeStyles(LangUtil.extendArray(
- selectionMapStyle.getFeatureTypeStyles(), defaultStyle
- .getFeatureTypeStyles()[0]));
+ originalStyle
+ .getFeatureTypeStyles(), selectionMapStyle.getFeatureTypeStyles()));
// selectionMapStyle.setFeatureTypeStyles(originalStyle.getF)
More information about the Schmitzm-commits
mailing list