java.lang.Object
org.tentackle.fx.IkonliGraphicProvider
org.tentackle.fx.DefaultGraphicProvider
- All Implemented Interfaces:
GraphicProvider
The default graphic provider for framework-related icons.
Based on the ikonli materialdesign pack.
Based on the ikonli materialdesign pack.
- Author:
- harald
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates the symbolic to icon-pack name map.Gets the symbolic name map.protected StringtranslateName(String name) Translates the symbolic Tentackle icon name to the corresponding name of the icon pack.
If the name is not one of the names used by the framework, it is returned unchanged.Methods inherited from class org.tentackle.fx.IkonliGraphicProvider
createGraphic
-
Constructor Details
-
DefaultGraphicProvider
public DefaultGraphicProvider()Creates the graphic provider.
-
-
Method Details
-
getNameMap
Gets the symbolic name map.- Returns:
- the map of symbolic to icon pack names
-
translateName
Description copied from class:IkonliGraphicProviderTranslates the symbolic Tentackle icon name to the corresponding name of the icon pack.
If the name is not one of the names used by the framework, it is returned unchanged. This allows the application to use known icons of the corresponding icon pack.- Specified by:
translateNamein classIkonliGraphicProvider- Parameters:
name- the symbolic name- Returns:
- the possibly translated name
-
createNameMap
Creates the symbolic to icon-pack name map.- Returns:
- the map
-