Package com.github.weisj.darklaf.icons
Class SimpleUIAwareIcon
java.lang.Object
com.github.weisj.darklaf.icons.DefaultUIAwareIcon
com.github.weisj.darklaf.icons.SimpleUIAwareIcon
- All Implemented Interfaces:
DynamicIcon,UIAwareIcon,Icon
Implementation of
UIAwareIcon which delegates to preloaded icons.-
Field Summary
Fields inherited from class com.github.weisj.darklaf.icons.DefaultUIAwareIcon
dark, light -
Constructor Summary
Constructors -
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
-
SimpleUIAwareIcon
-
SimpleUIAwareIcon
-
-
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.
-