public class IconFactory extends Object
FADerivedIcon
s presets.Modifier and Type | Class and Description |
---|---|
static class |
IconFactory.GLYPH |
Constructor and Description |
---|
IconFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
applyIcon(AbstractButton button,
float iconSize,
IconFactory.GLYPH glyph) |
static JButton |
getButton(IconFactory.GLYPH glyph) |
static Icon |
getButtonIcon(IconFactory.GLYPH entry) |
static Icon |
getButtonIcon(IconFactory.GLYPH entry,
float scalingFactor) |
static Icon |
getIcon(IconFactory.GLYPH entry,
float size,
Color color)
Creates a new icon from a Font Awesome glyph.
|
static Icon |
getListIcon(IconFactory.GLYPH entry) |
static Icon |
getMenuIcon(IconFactory.GLYPH entry) |
static Icon |
getTabbedPaneIcon(IconFactory.GLYPH entry) |
public static Icon getIcon(IconFactory.GLYPH entry, float size, Color color)
entry
- the glyph defining the icon's unicode IDsize
- the icon's sizecolor
- the icon's colorpublic static JButton getButton(IconFactory.GLYPH glyph)
public static void applyIcon(AbstractButton button, float iconSize, IconFactory.GLYPH glyph)
public static Icon getButtonIcon(IconFactory.GLYPH entry, float scalingFactor)
public static Icon getButtonIcon(IconFactory.GLYPH entry)
public static Icon getTabbedPaneIcon(IconFactory.GLYPH entry)
public static Icon getMenuIcon(IconFactory.GLYPH entry)
public static Icon getListIcon(IconFactory.GLYPH entry)
Copyright © 2015–2021 Fiji. All rights reserved.