Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface javax.swing.Icon
      • getIconWidth

        public int getIconWidth()
        Specified by:
        getIconWidth in interface javax.swing.Icon
      • getIconHeight

        public int getIconHeight()
        Specified by:
        getIconHeight in interface javax.swing.Icon
      • main

        public static void main​(java.lang.String[] args)