Class IconUtil

java.lang.Object
com.dua3.utility.fx.icons.IconUtil

public final class IconUtil extends Object
The IconUtil class provides utility methods for working with icons. It contains static methods for retrieving icons, retrieving the names of available icon providers, and creating an empty icon. Icons are represented by the Icon interface.
  • Method Details

    • iconFromName

      public static Optional<Icon> iconFromName(String name)
      Returns an optional icon based on the given name.
      Parameters:
      name - the name of the icon requested
      Returns:
      an optional icon that matches the given name, or an empty optional if the icon does not exist
    • iconProviderNames

      public static Collection<String> iconProviderNames()
      Returns a collection of names of available icon providers.
      Returns:
      a collection of strings representing the names of the available icon providers
    • emptyIcon

      public static Icon emptyIcon()
      Returns an empty icon.
      Returns:
      an empty icon represented by the Icon interface