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,Serializable,Icon
- Direct Known Subclasses:
CustomThemedIcon
public class ThemedSVGIcon extends DarkSVGIcon implements ThemedIcon
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedThemedSVGIcon(int width, int height, ThemedSVGIcon icon)ThemedSVGIcon(URI uri, int displayWidth, int displayHeight)ThemedSVGIcon(Supplier<URI> uriSupplier, int displayWidth, int displayHeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThemedSVGIconderive(int width, int height)Derive a new icon with the specified size.protected booleanensureLoaded(boolean painting)protected booleanensureTheme(boolean painting)protected UIDefaultsgetContextDefaults()protected voidinvalidate()protected voidpatchColors()-
Methods inherited from class com.github.weisj.darklaf.icons.DarkSVGIcon
createImage, createSVGIcon, ensureImageLoaded, getIconHeight, getIconWidth, getName, getSVGIcon, getUri, isDirectRenderingMode, paintIcon, paintIcon, setDirectRenderingMode, setDisplaySize, updateCache
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.weisj.darklaf.icons.DerivableIcon
copy
-
Methods inherited from interface javax.swing.Icon
getIconHeight, getIconWidth, paintIcon
-
Methods inherited from interface com.github.weisj.darklaf.icons.ImageSource
createImage
-
-
-
-
Constructor Detail
-
ThemedSVGIcon
public ThemedSVGIcon(URI uri, int displayWidth, int displayHeight)
-
ThemedSVGIcon
protected ThemedSVGIcon(int width, int height, ThemedSVGIcon icon)
-
-
Method Detail
-
derive
public ThemedSVGIcon derive(int width, int height)
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)
-
invalidate
protected void invalidate()
-
getContextDefaults
protected UIDefaults getContextDefaults()
-
patchColors
protected void patchColors()
-
-