Package com.dua3.utility.fx.icons
Class IconUtil
java.lang.Object
com.dua3.utility.fx.icons.IconUtil
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 Summary
Modifier and TypeMethodDescriptionstatic Icon
Returns an empty icon.iconFromName
(String name) Returns an optional icon based on the given name.static Collection
<String> Returns a collection of names of available icon providers.
-
Method Details
-
iconFromName
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
Returns a collection of names of available icon providers.- Returns:
- a collection of strings representing the names of the available icon providers
-
emptyIcon
Returns an empty icon.- Returns:
- an empty icon represented by the
Icon
interface
-