Class ReIcon

  • public class ReIcon
    extends Object
    Quick utility class used to "resize" an icon.
    Jody Garnett
    • Constructor Summary

      Constructor Description
      ReIcon​(Icon icon)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Icon getIcon()  
      Icon getIcon​(int size)
      Produce an icon of the required size.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReIcon

        public ReIcon​(Icon icon)
    • Method Detail

      • getIcon

        public Icon getIcon()
      • getIcon

        public Icon getIcon​(int size)
        Produce an icon of the required size.

        The returned icon is not always an ImageIcon; and may in fact pay attention to your component foreground and background color.

        size - Size of the icon (usually 16,32 and 48 are supported)
        A square icon of the requested size