/[schmitzm]/trunk/src/skrueger/geotools/StyledLayerUtil.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/StyledLayerUtil.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 788 by alfonx, Tue Apr 6 12:18:52 2010 UTC revision 824 by alfonx, Wed May 5 10:44:01 2010 UTC
# Line 931  public class StyledLayerUtil { Line 931  public class StyledLayerUtil {
931           * Creates a {@link JPanel} that shows a legend for a list of           * Creates a {@link JPanel} that shows a legend for a list of
932           * {@link FeatureTypeStyle}s and a targeted featureType           * {@link FeatureTypeStyle}s and a targeted featureType
933           *           *
934             * @param style
935             *            The Style to presented in this legend
936           * @param featureType           * @param featureType
937           *            If this a legend for Point, Polygon or Line?           *            If this a legend for Point, Polygon or Line?
          * @param list  
          *            The Styles to presented in this legend  
938           *           *
939           * @author <a href="mailto:[email protected]">Stefan Alfons           * @author <a href="mailto:[email protected]">Stefan Alfons
940           *         Kr&uuml;ger</a>           *         Kr&uuml;ger</a>
941           */           */
942          public static JPanel createLegendPanel(Style style,          public static JPanel createLegendSwingPanel(Style style,
943                          final SimpleFeatureType featureType, final int iconWidth,                          final SimpleFeatureType featureType, final int iconWidth,
944                          final int iconHeight) {                          final int iconHeight) {
945    
# Line 995  public class StyledLayerUtil { Line 995  public class StyledLayerUtil {
995                  return panel;                  return panel;
996          }          }
997    
998            
999    
1000            
1001          /**          /**
1002           * Creates a {@link JComponent} that contains a legend for a given           * Creates a {@link JComponent} that contains a legend for a given
1003           * rasterLayer and a given {@link Style}.           * {@link StyledRasterInterface} and a given {@link Style}.
1004           *           *
1005           * @param style           * @param style
1006           *            if <code>null</code>, the default {@link Style} is extracetd           *            if <code>null</code>, the default {@link Style} is extracetd
1007           *            from the {@link StyledRasterInterface}           *            from the {@link StyledRasterInterface}
1008           */           */
1009          public static JPanel createLegendPanel(          public static JPanel createLegendSwingPanel(
1010                          final StyledRasterInterface<?> styledRaster, Style style,                          final StyledRasterInterface<?> styledRaster, Style style,
1011                          final int iconWidth, final int iconHeight) {                          final int iconWidth, final int iconHeight) {
1012    
# Line 1134  public class StyledLayerUtil { Line 1137  public class StyledLayerUtil {
1137    
1138                  return panel;                  return panel;
1139          }          }
1140            
1141                    
1142    
1143          /**          /**
1144           * Extracts the {@link ColorModel} of any {@link StyledRasterInterface}. May           * Extracts the {@link ColorModel} of any {@link StyledRasterInterface}. May

Legend:
Removed from v.788  
changed lines
  Added in v.824

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26