Class ThemedSVGIcon
java.lang.Object
com.github.weisj.darklaf.properties.icons.DarkSVGIcon
com.github.weisj.darklaf.properties.icons.ThemedSVGIcon
- All Implemented Interfaces:
DerivableIcon<DarkSVGIcon>,DynamicIcon,IconLoader.CacheableIcon,ImageSource,RotateIcon,ThemedIcon,com.github.weisj.darklaf.util.cache.SoftCache.Cacheable<com.github.weisj.darklaf.properties.icons.IconLoader.IconKey>,com.github.weisj.swingdsl.visualpadding.VisualPaddingProvider,Serializable,Icon
- Direct Known Subclasses:
CustomThemedIcon
An
DarkSVGIcon, which will patch dynamic color values defined in the svg file.- See Also:
-
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) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull com.github.weisj.jsvg.parser.ParserProviderderive(int width, int height) Derive a new icon with the specified size.protected booleanensureLoaded(boolean painting) protected booleanensureTheme(boolean painting) protected UIDefaultsvoidprotected voidtoString()Methods inherited from class com.github.weisj.darklaf.properties.icons.DarkSVGIcon
createImage, ensureImageLoaded, getIconHeight, getIconWidth, getName, getSize, getSVGDocument, getURI, getVisualPaddings, isDirectRenderingMode, paintIcon, paintIcon, setCacheKey, 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.properties.icons.DerivableIcon
copyMethods inherited from interface javax.swing.Icon
getIconHeight, getIconWidth, paintIconMethods inherited from interface com.github.weisj.darklaf.properties.icons.ImageSource
createImage
-
Constructor Details
-
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) -
createParserProvider
@NotNull protected @NotNull com.github.weisj.jsvg.parser.ParserProvider createParserProvider()- Overrides:
createParserProviderin classDarkSVGIcon
-
toString
- Overrides:
toStringin classDarkSVGIcon
-
invalidate
public void invalidate() -
getContextDefaults
-
patchColors
protected void patchColors()
-