Class FigureTypesScriptService

  • All Implemented Interfaces:
    org.xwiki.script.service.ScriptService

    @Component
    @Singleton
    @Named("figureTypes")
    public class FigureTypesScriptService
    extends Object
    implements org.xwiki.script.service.ScriptService
    Gives access to the figures types, in particular the list of configured figure types as well at the localized label of the figure types.
    Since:
    15.4
    Version:
    $Id$
    • Constructor Detail

      • FigureTypesScriptService

        public FigureTypesScriptService()
    • Method Detail

      • getFigureTypes

        public Set<FigureType> getFigureTypes()
        Returns:
        the set of configured figure types
      • getLabel

        public String getLabel​(String type)
        Parameters:
        type - the figure type
        Returns:
        the translated value if key org.xwiki.rendering.macro.figure.FigureType.$type is found, the capitalized type otherwise
      • getStyle

        public FigureStyle getStyle​(String type)
        Parameters:
        type - the type of the figure
        Returns:
        the style of the figure