Package com.github.weisj.darklaf.icons
Interface UIAwareIcon
-
- All Superinterfaces:
DynamicIcon,Icon
- All Known Implementing Classes:
DarkUIAwareIcon,DefaultUIAwareIcon,LazyUIAwareIcon,SimpleUIAwareIcon
public interface UIAwareIcon extends DynamicIcon
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UIAwareIcongetDual()Return the dual version of the icon.-
Methods inherited from interface javax.swing.Icon
getIconHeight, getIconWidth, paintIcon
-
-
-
-
Method Detail
-
getDual
UIAwareIcon getDual()
Return the dual version of the icon. i.e. if the current icon is light then the dual version will be dark and vice versa. Implementations of this method should respect that the appearance of the icon after invoking this method twice should be the same.- Returns:
- the dual icon.
-
-