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

public class ThemedSVGIcon extends DarkSVGIcon implements ThemedIcon
See Also:
Serialized Form
  • Constructor Details

    • ThemedSVGIcon

      public ThemedSVGIcon(Supplier<URI> uriSupplier, int displayWidth, int displayHeight)
    • ThemedSVGIcon

      public ThemedSVGIcon(URI uri, int displayWidth, int displayHeight)
    • ThemedSVGIcon

      protected ThemedSVGIcon(int width, int height, ThemedSVGIcon icon)
  • Method Details

    • derive

      public ThemedSVGIcon derive(int width, int height)
      Description copied from interface: DerivableIcon
      Derive a new icon with the specified size.
      Specified by:
      derive in interface DerivableIcon<DarkSVGIcon>
      Overrides:
      derive in class DarkSVGIcon
      Parameters:
      width - the new width
      height - the new height.
      Returns:
      the derived icon.
    • ensureLoaded

      protected boolean ensureLoaded(boolean painting)
      Overrides:
      ensureLoaded in class DarkSVGIcon
    • ensureTheme

      protected boolean ensureTheme(boolean painting)
    • toString

      public String toString()
      Overrides:
      toString in class DarkSVGIcon
    • invalidate

      protected void invalidate()
    • getContextDefaults

      protected UIDefaults getContextDefaults()
    • patchColors

      protected void patchColors()