Package sc.fiji.snt.gui
Class IconFactory
java.lang.Object
sc.fiji.snt.gui.IconFactory
A factory for
FADerivedIcons presets.- Author:
- Tiago Ferreira
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IconaccentIcon(Color color, boolean squarify) static voidassignIcon(AbstractButton button, IconFactory.GLYPH glyph, Color color, float scalingFactor) static voidassignIcon(AbstractButton button, IconFactory.GLYPH glyph, Color defaultColor, Color disabledColor, float scalingFactor) static voidassignIcon(AbstractButton button, IconFactory.GLYPH defaultGlyph, IconFactory.GLYPH selectedGlyph) static voidassignIcon(AbstractButton button, IconFactory.GLYPH defaultGlyph, IconFactory.GLYPH selectedGlyph, float scalingFactor) static voidassignIcon(JMenuItem item, char symbol, boolean solid, Color color) static voidassignIcon(JMenuItem item, IconFactory.GLYPH defaultGlyph) static TitledBorderbottomBorder(char symbol, boolean solid) static IconbuttonIcon(char symbol, boolean solid) static IconbuttonIcon(char symbol, boolean solid, Color color) static IconbuttonIcon(IconFactory.GLYPH entry, float scalingFactor) static IconbuttonIcon(IconFactory.GLYPH entry, Color color, float scalingFactor) static Colorstatic IcondropdownMenuIcon(IconFactory.GLYPH entry, float scalingFactor, Color color) static Iconget(IconFactory.GLYPH entry, float size, Color color) Creates a new icon from a Font Awesome glyph.static ImageIcongetAsImage(IconFactory.GLYPH entry, float size, Color color) Creates a new image icon from a Font Awesome glyph.static IconlistIcon(JList<?> list, IconFactory.GLYPH entry) static IconmenuIcon(char symbol, boolean solid) static Iconstatic IconmenuIcon(IconFactory.GLYPH entry) static IconmenuIcon(IconFactory.GLYPH entry, Color color) static Iconstatic Iconstatic IconnodeIconMulticolor(boolean isLeaf, boolean isExpanded) static Colorstatic Colorstatic IcontabbedPaneIcon(JTabbedPane tabbedPane, IconFactory.GLYPH entry)
-
Constructor Details
-
IconFactory
public IconFactory()
-
-
Method Details
-
get
Creates a new icon from a Font Awesome glyph.- Parameters:
entry- the glyph defining the icon's Unicode IDsize- the icon's sizecolor- the icon's color- Returns:
- the icon
-
getAsImage
Creates a new image icon from a Font Awesome glyph.- Parameters:
entry- the glyph defining the icon's Unicode IDsize- the icon's sizecolor- the icon's color- Returns:
- the icon
-
buttonIcon
-
buttonIcon
-
buttonIcon
-
buttonIcon
-
listIcon
-
tabbedPaneIcon
-
bottomBorder
-
dropdownMenuIcon
-
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
-
assignIcon
-
defaultColor
-
secondaryColor
-
selectedColor
-
nodeIcon
-
nodeIcon
-
nodeIconMulticolor
-
accentIcon
-