Class IconFactory

java.lang.Object
sc.fiji.snt.gui.IconFactory

public class IconFactory extends Object
A factory for FADerivedIcons presets.
Author:
Tiago Ferreira
  • Constructor Details

    • IconFactory

      public IconFactory()
  • Method Details

    • get

      public static Icon get(IconFactory.GLYPH entry, float size, Color color)
      Creates a new icon from a Font Awesome glyph.
      Parameters:
      entry - the glyph defining the icon's Unicode ID
      size - the icon's size
      color - the icon's color
      Returns:
      the icon
    • getAsImage

      public static ImageIcon getAsImage(IconFactory.GLYPH entry, float size, Color color)
      Creates a new image icon from a Font Awesome glyph.
      Parameters:
      entry - the glyph defining the icon's Unicode ID
      size - the icon's size
      color - the icon's color
      Returns:
      the icon
    • buttonIcon

      public static Icon buttonIcon(IconFactory.GLYPH entry, Color color, float scalingFactor)
    • buttonIcon

      public static Icon buttonIcon(IconFactory.GLYPH entry, float scalingFactor)
    • buttonIcon

      public static Icon buttonIcon(char symbol, boolean solid, Color color)
    • buttonIcon

      public static Icon buttonIcon(char symbol, boolean solid)
    • listIcon

      public static Icon listIcon(JList<?> list, IconFactory.GLYPH entry)
    • tabbedPaneIcon

      public static Icon tabbedPaneIcon(JTabbedPane tabbedPane, IconFactory.GLYPH entry)
    • bottomBorder

      public static TitledBorder bottomBorder(char symbol, boolean solid)
    • assignIcon

      public static void assignIcon(AbstractButton button, IconFactory.GLYPH glyph, Color color, float scalingFactor)
    • assignIcon

      public static void assignIcon(AbstractButton button, IconFactory.GLYPH glyph, Color defaultColor, Color disabledColor, float scalingFactor)
    • assignIcon

      public static void assignIcon(AbstractButton button, IconFactory.GLYPH defaultGlyph, IconFactory.GLYPH selectedGlyph, float scalingFactor)
    • assignIcon

      public static void assignIcon(AbstractButton button, IconFactory.GLYPH defaultGlyph, IconFactory.GLYPH selectedGlyph)
    • assignIcon

      public static void assignIcon(JMenuItem item, IconFactory.GLYPH defaultGlyph)
    • assignIcon

      public static void assignIcon(JMenuItem item, char symbol, boolean solid, Color color)
    • defaultColor

      public static Color defaultColor()
    • secondaryColor

      public static Color secondaryColor()
    • selectedColor

      public static Color selectedColor()
    • nodeIcon

      public static Icon nodeIcon(Color color)
    • nodeIcon

      public static Icon nodeIcon(Color color, boolean isLeaf, boolean isExpanded)
    • nodeIconMulticolor

      public static Icon nodeIconMulticolor(boolean isLeaf, boolean isExpanded)
    • accentIcon

      public static Icon accentIcon(Color color, boolean squarify)