Class IconWrapper

java.lang.Object
resources.icons.IconWrapper
All Implemented Interfaces:
Icon

public abstract class IconWrapper extends Object implements Icon
IconWrapper provides a simple icon wrapper which delays icon construction until its first use.
  • Constructor Details

    • IconWrapper

      public IconWrapper()
  • Method Details

    • createIcon

      protected abstract Icon createIcon()
      Creates the icon upon first use.
      Returns:
      icon
    • getIconHeight

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

      public int getIconWidth()
      Specified by:
      getIconWidth in interface Icon
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon