[Schmitzm-commits] r824 - trunk/src/skrueger/geotools

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed May 5 12:44:02 CEST 2010


Author: alfonx
Date: 2010-05-05 12:44:01 +0200 (Wed, 05 May 2010)
New Revision: 824

Modified:
   trunk/src/skrueger/geotools/StyledLayerUtil.java
Log:
Renamed createLegendPanel to createLegendSwingPanel

Modified: trunk/src/skrueger/geotools/StyledLayerUtil.java
===================================================================
--- trunk/src/skrueger/geotools/StyledLayerUtil.java	2010-05-03 08:07:56 UTC (rev 823)
+++ trunk/src/skrueger/geotools/StyledLayerUtil.java	2010-05-05 10:44:01 UTC (rev 824)
@@ -931,15 +931,15 @@
 	 * Creates a {@link JPanel} that shows a legend for a list of
 	 * {@link FeatureTypeStyle}s and a targeted featureType
 	 * 
+	 * @param style
+	 *            The Style to presented in this legend
 	 * @param featureType
 	 *            If this a legend for Point, Polygon or Line?
-	 * @param list
-	 *            The Styles to presented in this legend
 	 * 
 	 * @author <a href="mailto:skpublic at wikisquare.de">Stefan Alfons
 	 *         Kr&uuml;ger</a>
 	 */
-	public static JPanel createLegendPanel(Style style,
+	public static JPanel createLegendSwingPanel(Style style,
 			final SimpleFeatureType featureType, final int iconWidth,
 			final int iconHeight) {
 
@@ -995,15 +995,18 @@
 		return panel;
 	}
 
+	
+
+	
 	/**
 	 * Creates a {@link JComponent} that contains a legend for a given
-	 * rasterLayer and a given {@link Style}.
+	 * {@link StyledRasterInterface} and a given {@link Style}.
 	 * 
 	 * @param style
 	 *            if <code>null</code>, the default {@link Style} is extracetd
 	 *            from the {@link StyledRasterInterface}
 	 */
-	public static JPanel createLegendPanel(
+	public static JPanel createLegendSwingPanel(
 			final StyledRasterInterface<?> styledRaster, Style style,
 			final int iconWidth, final int iconHeight) {
 
@@ -1134,6 +1137,8 @@
 
 		return panel;
 	}
+	
+		
 
 	/**
 	 * Extracts the {@link ColorModel} of any {@link StyledRasterInterface}. May



More information about the Schmitzm-commits mailing list