Package com.github.weisj.darklaf.icons
Class ThemedSVGIcon
java.lang.Object
com.github.weisj.darklaf.icons.DarkSVGIcon
com.github.weisj.darklaf.icons.ThemedSVGIcon
- All Implemented Interfaces:
DerivableIcon<DarkSVGIcon>,DynamicIcon,ImageSource,RotateIcon,ThemedIcon,com.github.weisj.swingdsl.visualpadding.VisualPaddingProvider,Serializable,Icon
- Direct Known Subclasses:
CustomThemedIcon
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from interface com.github.weisj.swingdsl.visualpadding.VisualPaddingProvider
VISUAL_PADDING_PROP -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThemedSVGIcon(int width, int height, ThemedSVGIcon icon)ThemedSVGIcon(URI uri, int displayWidth, int displayHeight)ThemedSVGIcon(Supplier<URI> uriSupplier, int displayWidth, int displayHeight) -
Method Summary
Modifier and TypeMethodDescriptionderive(int width, int height)Derive a new icon with the specified size.protected booleanensureLoaded(boolean painting)protected booleanensureTheme(boolean painting)protected UIDefaultsprotected voidprotected voidtoString()Methods inherited from class com.github.weisj.darklaf.icons.DarkSVGIcon
createImage, createSVGIcon, ensureImageLoaded, getIconHeight, getIconWidth, getName, getSize, getSVGIcon, getUri, getVisualPaddings, isDirectRenderingMode, paintIcon, paintIcon, setDirectRenderingMode, setDisplaySize, updateCacheMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.weisj.darklaf.icons.DerivableIcon
copyMethods inherited from interface javax.swing.Icon
getIconHeight, getIconWidth, paintIconMethods inherited from interface com.github.weisj.darklaf.icons.ImageSource
createImage
-
Constructor Details
-
ThemedSVGIcon
-
ThemedSVGIcon
-
ThemedSVGIcon
-
-
Method Details
-
derive
Description copied from interface:DerivableIconDerive a new icon with the specified size.- Specified by:
derivein interfaceDerivableIcon<DarkSVGIcon>- Overrides:
derivein classDarkSVGIcon- Parameters:
width- the new widthheight- the new height.- Returns:
- the derived icon.
-
ensureLoaded
protected boolean ensureLoaded(boolean painting)- Overrides:
ensureLoadedin classDarkSVGIcon
-
ensureTheme
protected boolean ensureTheme(boolean painting) -
toString
- Overrides:
toStringin classDarkSVGIcon
-
invalidate
protected void invalidate() -
getContextDefaults
-
patchColors
protected void patchColors()
-