Package resources.icons
Class IconWrapper
java.lang.Object
resources.icons.IconWrapper
- All Implemented Interfaces:
Icon
IconWrapper provides a simple icon wrapper which
delays icon construction until its first use.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract IconCreates the icon upon first use.intintvoid
-
Constructor Details
-
IconWrapper
public IconWrapper()
-
-
Method Details
-
createIcon
Creates the icon upon first use.- Returns:
- icon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
paintIcon
-