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 voidassignTabIcon(JTabbedPane tabbedPane, int tabIndex, IconFactory.GLYPH entry) 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 intstatic IcondoubleIcon(IconFactory.GLYPH entry1, IconFactory.GLYPH entry2, float scalingFactor, Color color) static 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 Color
-
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
-
assignTabIcon
-
bottomBorder
-
doubleIcon
public static Icon doubleIcon(IconFactory.GLYPH entry1, IconFactory.GLYPH entry2, float scalingFactor, Color color) -
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
-
defaultSize
public static int defaultSize()
-