[Schmitzm-commits] r413 - in branches/1.0-gt2-2.6/src/schmitzm: geotools/styling jfree/chart/style

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Sep 23 13:36:47 CEST 2009


Author: alfonx
Date: 2009-09-23 13:36:45 +0200 (Wed, 23 Sep 2009)
New Revision: 413

Modified:
   branches/1.0-gt2-2.6/src/schmitzm/geotools/styling/StylingUtil.java
   branches/1.0-gt2-2.6/src/schmitzm/jfree/chart/style/ChartType.java
Log:
* ChartType: Debugging why the preview images are not visible when the GP is released.
* StylingUtil: JavaDoc only

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-22 17:46:26 UTC (rev 412)
+++ branches/1.0-gt2-2.6/src/schmitzm/geotools/styling/StylingUtil.java	2009-09-23 11:36:45 UTC (rev 413)
@@ -132,7 +132,7 @@
 public class StylingUtil {
 	private static final FilterFactory FILTER_FACTORY = FeatureUtil.FILTER_FACTORY;
 	private static final Logger LOGGER = Logger.getLogger(StylingUtil.class);
-	/** Transparente Farbe */
+	/** transparent color */
 	public static final Color TRANSPARENT_COLOR = new Color(0, 0, 0, 0);
 
 	/**

Modified: branches/1.0-gt2-2.6/src/schmitzm/jfree/chart/style/ChartType.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/jfree/chart/style/ChartType.java	2009-09-22 17:46:26 UTC (rev 412)
+++ branches/1.0-gt2-2.6/src/schmitzm/jfree/chart/style/ChartType.java	2009-09-23 11:36:45 UTC (rev 413)
@@ -102,13 +102,15 @@
 	public ImageIcon getIcon() {
 		final String fileName = getClass().getSimpleName() + "_" + toString();
 
-		final String imageResPath = "../../resource/images/" + fileName
+		final String imageResPath = "resource/images/" + fileName
 				+ ".png";
 
 		// LOGGER.debug("Looking for image " + imageResPath);
-		final URL imageUrl = ChartStyle.class.getResource(imageResPath);
+		final URL imageUrl = JFreeChartUtil.class.getResource(imageResPath);
 
 		if (imageUrl == null) {
+			LOGGER.warn(imageResPath + "not found!");
+
 			// Create a default icon
 			final BufferedImage bufferedImage = new BufferedImage(16, 16,
 					BufferedImage.TYPE_INT_RGB);



More information about the Schmitzm-commits mailing list