Package com.github.weisj.darklaf.icons
Class CustomThemedIcon
java.lang.Object
com.github.weisj.darklaf.icons.DarkSVGIcon
com.github.weisj.darklaf.icons.ThemedSVGIcon
com.github.weisj.darklaf.icons.CustomThemedIcon
- All Implemented Interfaces:
DerivableIcon<DarkSVGIcon>,DynamicIcon,ImageSource,MutableThemedIcon,RotateIcon,ThemedIcon,com.github.weisj.swingdsl.visualpadding.VisualPaddingProvider,Serializable,Icon
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface com.github.weisj.swingdsl.visualpadding.VisualPaddingProvider
VISUAL_PADDING_PROP -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCustomThemedIcon(int width, int height, CustomThemedIcon icon)CustomThemedIcon(DarkSVGIcon icon)CustomThemedIcon(DarkSVGIcon icon, Map<Object,Object> contextDefaults, CustomThemedIcon.MergeMode mergeMode)CustomThemedIcon(URI uri, int displayWidth, int displayHeight, Map<Object,Object> colors)CustomThemedIcon(Supplier<URI> uriSupplier, int displayWidth, int displayHeight)CustomThemedIcon(Supplier<URI> uriSupplier, int displayWidth, int displayHeight, Map<Object,Object> colors) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.kitfox.svg.app.beans.SVGIconderive(int width, int height)Derive a new icon with the specified size.voidmergeProperties(CustomThemedIcon.MergeMode mergeMode, DarkSVGIcon originalIcon)protected voidvoidsetContextProperties(Map<Object,Object> props)voidsetProperties(Map<Object,Object> props)Methods inherited from class com.github.weisj.darklaf.icons.ThemedSVGIcon
ensureLoaded, ensureTheme, getContextDefaults, invalidate, toStringMethods inherited from class com.github.weisj.darklaf.icons.DarkSVGIcon
createImage, 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
createImageMethods inherited from interface com.github.weisj.darklaf.icons.MutableThemedIcon
getProperty, getPropertyOfType, setProperty
-
Field Details
-
LAF_CONTEXT
-
-
Constructor Details
-
CustomThemedIcon
-
CustomThemedIcon
-
CustomThemedIcon
-
CustomThemedIcon
-
CustomThemedIcon
public CustomThemedIcon(DarkSVGIcon icon, Map<Object,Object> contextDefaults, CustomThemedIcon.MergeMode mergeMode) -
CustomThemedIcon
-
-
Method Details
-
mergeProperties
-
getProperties
- Specified by:
getPropertiesin interfaceMutableThemedIcon
-
setProperties
- Specified by:
setPropertiesin interfaceMutableThemedIcon
-
derive
Description copied from interface:DerivableIconDerive a new icon with the specified size.- Specified by:
derivein interfaceDerivableIcon<DarkSVGIcon>- Overrides:
derivein classThemedSVGIcon- Parameters:
width- the new widthheight- the new height.- Returns:
- the derived icon.
-
createSVGIcon
protected com.kitfox.svg.app.beans.SVGIcon createSVGIcon()- Overrides:
createSVGIconin classDarkSVGIcon
-
getContextProperties
- Specified by:
getContextPropertiesin interfaceMutableThemedIcon
-
setContextProperties
- Specified by:
setContextPropertiesin interfaceMutableThemedIcon
-
patchColors
protected void patchColors()- Overrides:
patchColorsin classThemedSVGIcon
-