Class InteractiveSvgIcon

All Implemented Interfaces:
InteractiveIcon, Icon

public class InteractiveSvgIcon extends SvgIconUtil.SvgIcon implements InteractiveIcon
  • Constructor Details

    • InteractiveSvgIcon

      public InteractiveSvgIcon(Class relativeClass, String path)
    • InteractiveSvgIcon

      public InteractiveSvgIcon(Class relativeClass, String path, boolean useDisabledIcon)
    • InteractiveSvgIcon

      public InteractiveSvgIcon(Class relativeClass, String path, boolean generateAllIcons, boolean createDisabledIcon)
      Parameters:
      generateAllIcons -

      For a single svg file, if this is set to true, up to 3 additional icon variants will be produced off that single file: selected, inherited, disabled. The disable icon can be excluded from generation via the #userDisabledIcon parameter.


      If this is set to false, variants for the following 2 states must be provided: selected, disabled (if createDisabledIcon is set to true).


      The selected variant must have the same file name specified in the path, but with "-selected" inserted before the file extension.


      The disabled variant must have the same file name specified in the path, but with "-disabled" inserted before the file extension.

      createDisabledIcon - If false will not look for or generate a disabled variant.
    • InteractiveSvgIcon

      public InteractiveSvgIcon(Class relativeClass, String path, boolean generateAllIcons, int width, int height, boolean createDisabledIcon)
  • Method Details