[Schmitzm-commits] r393 - branches/1.0-gt2-2.6/src/schmitzm/geotools/styling

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Sep 14 11:52:00 CEST 2009


Author: alfonx
Date: 2009-09-14 11:52:00 +0200 (Mon, 14 Sep 2009)
New Revision: 393

Modified:
   branches/1.0-gt2-2.6/src/schmitzm/geotools/styling/StylingUtil.java
Log:
* Adapted to GT2.6.. removed the usage of deprecated methods

Modified: branches/1.0-gt2-2.6/src/schmitzm/geotools/styling/StylingUtil.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/geotools/styling/StylingUtil.java	2009-09-13 13:33:51 UTC (rev 392)
+++ branches/1.0-gt2-2.6/src/schmitzm/geotools/styling/StylingUtil.java	2009-09-14 09:52:00 UTC (rev 393)
@@ -952,8 +952,8 @@
 
 		Style style = STYLE_FACTORY.createStyle();
 		style.setName(name);
-		style.setTitle(title);
-		style.addFeatureTypeStyle(featureTypeStyleImpl);
+		style.getDescription().setTitle(title);
+		style.featureTypeStyles().add(featureTypeStyleImpl);
 		return style;
 	}
 
@@ -2075,9 +2075,6 @@
 		if (foundColor == null)
 			foundColor = getGraphicColor(fill.getGraphicFill());
 
-		if (foundColor == null)
-			foundColor = getColorFromExpression(fill.getBackgroundColor());
-
 		return foundColor;
 	}
 
@@ -2176,6 +2173,8 @@
 	public static void copyAllValues(final TextSymbolizer from,
 			final TextSymbolizer to) {
 		to.setLabel(from.getLabel());
+		
+		//TODO Does not copy all that has to be copoied!
 
 		final FilterFactory2 ff2 = FeatureUtil.FILTER_FACTORY2;
 



More information about the Schmitzm-commits mailing list