- 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 ofFxIconGlyph
as 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 String
getFill()
javafx.scene.text.Font
getFont()
String
getStroke()
String
getUnicode()
void
setFill(String fill)
void
setFont(javafx.scene.text.Font font)
void
setStroke(String stroke)
void
setUnicode(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
- theFxIconGlyph
to copy.
-
-
Method Detail
-
getFont
public javafx.scene.text.Font getFont()
- Returns:
- the
Font
to 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()
.
-
-