Class GlyphFactory


  • public final class GlyphFactory
    extends java.lang.Object
    Factory class for glyphs from Fontawesome library.
    Usage example:
     Glyph g = GlyphFactory.create(FontAwesome.Glyph.CLOSE);
     g.setTextFill(Color.RED);
     Button button = new Button("", g);
     
    Author:
    Luca Molinari
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.controlsfx.glyphfont.Glyph create​(org.controlsfx.glyphfont.FontAwesome.Glyph icon)
      Creates a glyph for given identifier
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static org.controlsfx.glyphfont.Glyph create​(org.controlsfx.glyphfont.FontAwesome.Glyph icon)
        Creates a glyph for given identifier
        Parameters:
        icon - one of the font code available in FontAwesome Glyph enum.
        Returns:
        created glyph