- java.lang.Object
-
- io.github.mmm.ui.fx.icon.AbstractFxIconGlyph
-
- io.github.mmm.ui.fx.icon.FxIconGlyphBean
-
- All Implemented Interfaces:
FxIconGlyph
public class FxIconGlyphBean extends AbstractFxIconGlyph
Implementation ofFxIconGlyphas mutable Java bean.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description FxIconGlyphBean()The constructor.FxIconGlyphBean(FxIconGlyph template)The constructor.FxIconGlyphBean(javafx.scene.text.Font font, String unicode)The constructor.FxIconGlyphBean(javafx.scene.text.Font font, String unicode, String fill)The constructor.FxIconGlyphBean(javafx.scene.text.Font font, String unicode, String fill, String stroke)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFill()javafx.scene.text.FontgetFont()StringgetStroke()StringgetUnicode()voidsetFill(String fill)voidsetFont(javafx.scene.text.Font font)voidsetStroke(String stroke)voidsetUnicode(String unicode)-
Methods inherited from class io.github.mmm.ui.fx.icon.AbstractFxIconGlyph
toString
-
-
-
-
Constructor Detail
-
FxIconGlyphBean
public FxIconGlyphBean()
The constructor.
-
FxIconGlyphBean
public FxIconGlyphBean(javafx.scene.text.Font font, String unicode)The constructor.- Parameters:
font- - seegetFont().unicode- - seegetUnicode().
-
FxIconGlyphBean
public FxIconGlyphBean(javafx.scene.text.Font font, String unicode, String fill)The constructor.- Parameters:
font- - seegetFont().unicode- - seegetUnicode().fill- - seegetFill().
-
FxIconGlyphBean
public FxIconGlyphBean(javafx.scene.text.Font font, String unicode, String fill, String stroke)The constructor.- Parameters:
font- - seegetFont().unicode- - seegetUnicode().fill- - seegetFill().stroke- - seegetStroke().
-
FxIconGlyphBean
public FxIconGlyphBean(FxIconGlyph template)
The constructor.- Parameters:
template- theFxIconGlyphto copy.
-
-
Method Detail
-
getFont
public javafx.scene.text.Font getFont()
- Returns:
- the
Fontto display the icon as glyph from itsunicode.
-
setFont
public void setFont(javafx.scene.text.Font font)
- Parameters:
font- new value ofgetFont().
-
getUnicode
public String getUnicode()
- Returns:
- the unicode character of the glyph representing the icon in the specified
font.
-
setUnicode
public void setUnicode(String unicode)
- Parameters:
unicode- new value ofgetUnicode().
-
getFill
public String getFill()
- Returns:
- the optional CSS (default) fill color for the icon.
-
getStroke
public String getStroke()
- Returns:
- the optional CSS (default) stroke (outline) color for the icon.
-
setStroke
public void setStroke(String stroke)
- Parameters:
stroke- new value ofgetStroke().
-
-