Package com.github.weisj.darklaf.icons
Class LazyUIAwareIcon
java.lang.Object
com.github.weisj.darklaf.icons.DefaultUIAwareIcon
com.github.weisj.darklaf.icons.LazyUIAwareIcon
- All Implemented Interfaces:
DynamicIcon,UIAwareIcon,Icon
-
Field Summary
Fields inherited from class com.github.weisj.darklaf.icons.DefaultUIAwareIcon
dark, light -
Constructor Summary
ConstructorsModifierConstructorDescriptionLazyUIAwareIcon(IconSupplier<Icon> lightSupplier, IconSupplier<Icon> darkSupplier)protectedLazyUIAwareIcon(LazyUIAwareIcon dual) -
Method Summary
Modifier and TypeMethodDescriptionprotected UIAwareIconprotected IconLoad the dark version of the icon.protected IconLoad the light version of the icon.Methods inherited from class com.github.weisj.darklaf.icons.DefaultUIAwareIcon
getDual, getIconHeight, getIconWidth, paintIcon
-
Constructor Details
-
LazyUIAwareIcon
-
LazyUIAwareIcon
-
-
Method Details
-
createDual
- Specified by:
createDualin classDefaultUIAwareIcon
-
loadLightIcon
Description copied from class:DefaultUIAwareIconLoad the light version of the icon. This method should never return a null value.- Specified by:
loadLightIconin classDefaultUIAwareIcon- Returns:
- the light icon.
-
loadDarkIcon
Description copied from class:DefaultUIAwareIconLoad the dark version of the icon. This method should never return a null value.- Specified by:
loadDarkIconin classDefaultUIAwareIcon- Returns:
- the dark icon.
-