Interface ControlIcon


public interface ControlIcon

Provides small and large versions of an icon.

For instances use the controlIcon(ImageIcon, ImageIcon) factory method or controlIcon(ImageIcon) in case of a single icon size.

  • Method Details

    • small

      ImageIcon small()
      Returns:
      the small version of the icon
    • large

      ImageIcon large()
      Returns:
      the large version of the icon
    • controlIcon

      static ControlIcon controlIcon(ImageIcon icon)
      Creates a new ControlIcon using the same icon for both small and large.
      Parameters:
      icon - the icon, used as both small and large
      Returns:
      a new ControlIcon instance
    • controlIcon

      static ControlIcon controlIcon(ImageIcon small, ImageIcon large)
      Parameters:
      small - the small version of the icon
      large - the large version of the icon
      Returns:
      a new ControlIcon instance