Package ca.cgjennings.ui.theme
Class LocaleIcon
- java.lang.Object
-
- ca.cgjennings.ui.theme.LocaleIcon
-
- All Implemented Interfaces:
javax.swing.Icon
public class LocaleIcon extends java.lang.Object implements javax.swing.Icon
An icon that represents a locale, language, or region.- Since:
- 3.4
- Author:
- Chris Jennings
-
-
Constructor Summary
Constructors Constructor Description LocaleIcon(java.lang.String language, java.lang.String country)
LocaleIcon(java.util.Locale locale)
LocaleIcon(Language lang)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIconHeight()
int
getIconWidth()
static void
main(java.lang.String[] args)
void
paintIcon(java.awt.Component c, java.awt.Graphics g1, int x, int y)
-
-
-
Constructor Detail
-
LocaleIcon
public LocaleIcon(Language lang)
-
LocaleIcon
public LocaleIcon(java.util.Locale locale)
-
LocaleIcon
public LocaleIcon(java.lang.String language, java.lang.String country)
-
-
Method Detail
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g1, int x, int y)
- Specified by:
paintIcon
in interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interfacejavax.swing.Icon
-
main
public static void main(java.lang.String[] args)
-
-