Module MaterialFX

Class MFXFontIcon

All Implemented Interfaces:
Styleable, EventTarget

public class MFXFontIcon extends Text
Class used for MaterialFX font icon resources.
  • Property Details

  • Constructor Details

    • MFXFontIcon

      public MFXFontIcon()
    • MFXFontIcon

      public MFXFontIcon(String description)
    • MFXFontIcon

      public MFXFontIcon(String description, Color color)
    • MFXFontIcon

      public MFXFontIcon(String description, double size)
    • MFXFontIcon

      public MFXFontIcon(String description, double size, Color color)
  • Method Details

    • getRandomIcon

      public static MFXFontIcon getRandomIcon(double size, Color color)
      Returns:
      a new MFXFontIcon with a random icon, the specified size and color.
    • getColor

      public Color getColor()
      Gets the value of the property color.
      Property description:
      Specifies the color of the icon.
    • colorProperty

      public StyleableObjectProperty<Color> colorProperty()
      Specifies the color of the icon.
      See Also:
    • setColor

      public void setColor(Color color)
      Sets the value of the property color.
      Property description:
      Specifies the color of the icon.
    • getDescription

      public String getDescription()
      Gets the value of the property description.
      Property description:
      Specifies the icon's code.
    • descriptionProperty

      public StyleableStringProperty descriptionProperty()
      Specifies the icon's code.
      See Also:
    • setDescription

      public void setDescription(String code)
      Sets the value of the property description.
      Property description:
      Specifies the icon's code.
    • getSize

      public double getSize()
      Gets the value of the property size.
      Property description:
      Specifies the size of the icon.
    • sizeProperty

      public StyleableDoubleProperty sizeProperty()
      Specifies the size of the icon.
      See Also:
    • setSize

      public void setSize(double size)
      Sets the value of the property size.
      Property description:
      Specifies the size of the icon.
    • getClassCssMetaDataList

      public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaDataList()
    • getCssMetaData

      public List<CssMetaData<? extends Styleable,?>> getCssMetaData()
      Specified by:
      getCssMetaData in interface Styleable
      Overrides:
      getCssMetaData in class Text