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üger</a> |
* Krü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 |
|
|
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 |
|
|
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 |