Class DefaultGraphicProvider

java.lang.Object
org.tentackle.fx.IkonliGraphicProvider
org.tentackle.fx.DefaultGraphicProvider
All Implemented Interfaces:
GraphicProvider

@GraphicProviderService public class DefaultGraphicProvider extends IkonliGraphicProvider
The default graphic provider for framework-related icons.
Based on the ikonli materialdesign pack.
Author:
harald
  • Constructor Details

    • DefaultGraphicProvider

      public DefaultGraphicProvider()
      Creates the graphic provider.
  • Method Details

    • getNameMap

      protected Map<String,String> getNameMap()
      Gets the symbolic name map.
      Returns:
      the map of symbolic to icon pack names
    • translateName

      protected String translateName(String name)
      Description copied from class: IkonliGraphicProvider
      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. This allows the application to use known icons of the corresponding icon pack.
      Specified by:
      translateName in class IkonliGraphicProvider
      Parameters:
      name - the symbolic name
      Returns:
      the possibly translated name
    • createNameMap

      protected Map<String,String> createNameMap()
      Creates the symbolic to icon-pack name map.
      Returns:
      the map