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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Icon
Creates the icon upon first use.int
int
void
-
Constructor Details
-
IconWrapper
public IconWrapper()
-
-
Method Details
-
createIcon
Creates the icon upon first use.- Returns:
- icon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
paintIcon
-