Package eu.bandm.tools.muli
Class FlagByLanguageCode
java.lang.Object
eu.bandm.tools.muli.FlagByLanguageCode
@ResourceDependency({"data-dir/world-blue.png","data-dir/rom.png","data-dir/de.png","data-dir/es.png"})
public class FlagByLanguageCode
extends Object
Utility class to deliver flag icons for a particular language.
Nearly all national flag icons are by FamFamFam
http:famfamfam.com/lab/icons/flags (Mark James)
Offline since 2023-11.
Now at https://commons.wikimedia.org/wiki/Famfamfam_flag_icons License is "BY", as on https://github.com/markjames/famfamfam-flag-icons, so there should a credit go. These are pngs with "16 * 11" size.
The "world" flag is taken from openstreetmap and has originally 18 x 18 . Coloured version by us, 18 x 16.
-
Method Summary
-
Method Details
-
imageIcon
Deliver an ImageIcon which can represent in a graphic user interface the given language, if such an Icon is present. The sice of the icon is currently limited to "PNG image data, 16 x 11, 8-bit/color RGB, non-interlaced".- Parameters:
languageCode
- an icon is searched for.- Returns:
- an icon to symbolize the selected language.
- Throws:
IllegalArgumentException
- when no flag is known.
-