Package com.github.weisj.darklaf.icons
Class LazyIcon
java.lang.Object
com.github.weisj.darklaf.icons.LazyIcon
- All Implemented Interfaces:
Icon,UIResource
- Direct Known Subclasses:
LazyImageIcon
public abstract class LazyIcon extends Object implements Icon, UIResource
-
Field Summary
Fields Modifier and Type Field Description protected IconLoader.IconKeykeyprotected Class<?>parentClassprotected Stringpath -
Constructor Summary
Constructors Constructor Description LazyIcon(String path, IconLoader.IconKey key, Class<?> parentClass) -
Method Summary
Modifier and Type Method Description intgetIconHeight()intgetIconWidth()protected abstract IconloadIcon()voidpaintIcon(Component c, Graphics g, int x, int y)
-
Field Details
-
Constructor Details
-
Method Details
-
paintIcon
-
loadIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-