Package resources.icons

# 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 Summary

  Constructors
  Constructor
  Description
  `IconWrapper()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected abstract Icon`
  `createIcon()`
  Creates the icon upon first use.
  `int`
  `getIconHeight()`
  `int`
  `getIconWidth()`
  `void`
  `paintIcon(Component c, Graphics g, int x, int y)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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`