Top Inners Fields Constructors Methods
org.kordamp.ikonli.javafx

public Class FontIcon

extends Text
implements Icon
Class Inheritance
All Implemented Interfaces
org.kordamp.ikonli.javafx.Icon, javafx.css.Styleable
Imports
javafx.beans.property.IntegerProperty, .ObjectProperty, javafx.css.CssMetaData, .StyleOrigin, .Styleable, .StyleableIntegerProperty, .StyleableObjectProperty, .StyleableProperty, javafx.css.converter.PaintConverter, .SizeConverter, javafx.scene.paint.Color, .LinearGradient, .Paint, .RadialGradient, javafx.scene.text.Font, .Text, org.kordamp.ikonli.Ikon, .IkonHandler, java.util.ArrayList, .List, .Objects

Author
Andres Almiray

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final double
private StyleableObjectProperty<Ikon>
protected StyleableObjectProperty<Paint>
protected StyleableIntegerProperty

Constructor Summary

AccessConstructor and Description
public
public
FontIcon(String iconCode)

public
FontIcon(Ikon iconCode)

Method Summary

Modifier and TypeMethod and Description
public static List<CssMetaData<? extends Styleable, ?>>
getClassCssMetaData()

Hides javafx.scene.text.Text.getClassCssMetaData.

Gets the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.

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

Overrides javafx.scene.text.Text.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

The CssMetaData of this Styleable.

public Ikon
public Paint
public String
public int
public ObjectProperty<Ikon>
public ObjectProperty<Paint>
public IntegerProperty
public static IllegalArgumentException
private String
normalizeStyle(String style, String key, String value)

public static FontIcon
of(Ikon ikon)

public static FontIcon
of(Ikon ikon, int iconSize)

public static FontIcon
of(Ikon ikon, Color iconColor)

public static FontIcon
of(Ikon iconCode, int iconSize, Color iconColor)

private void
resolvePaint(String iconCode, String[] parts)

private static Paint
resolvePaintValue(String iconCode, String value)

private void
resolveSize(String iconCode, String[] parts)

public void
setIconCode(Ikon iconCode)

public void
public void
public void
public String
toString()

Overrides javafx.scene.text.Text.toString.

Returns a string representation of this Text object.

Inherited from javafx.scene.text.Text:
baselineOffsetPropertyboundsTypePropertycaretBiasPropertycaretPositionPropertycaretShapecaretShapePropertyfontPropertyfontSmoothingTypePropertygetBaselineOffsetgetBoundsTypegetCaretPositiongetCaretShapegetFontgetFontSmoothingTypegetLineSpacinggetSelectionEndgetSelectionFillgetSelectionShapegetSelectionStartgetTabSizegetTextgetTextAlignmentgetTextOrigingetWrappingWidthgetXgetYhitTestisCaretBiasisStrikethroughisUnderlinelineSpacingPropertyqueryAccessibleAttributerangeShapeselectionEndPropertyselectionFillPropertyselectionShapePropertyselectionStartPropertysetBoundsTypesetCaretBiassetCaretPositionsetFontsetFontSmoothingTypesetLineSpacingsetSelectionEndsetSelectionFillsetSelectionStartsetStrikethroughsetTabSizesetTextsetTextAlignmentsetTextOriginsetUnderlinesetWrappingWidthsetXsetYstrikethroughPropertytabSizePropertytextAlignmentPropertytextOriginPropertytextPropertyunderlinePropertyunderlineShapeusesMirroringwrappingWidthPropertyxPropertyyProperty

Field Detail

EPSILONback to summary
private static final double EPSILON
iconCodeback to summary
private StyleableObjectProperty<Ikon> iconCode
iconColorback to summary
protected StyleableObjectProperty<Paint> iconColor
iconSizeback to summary
protected StyleableIntegerProperty iconSize

Constructor Detail

FontIconback to summary
public FontIcon()
FontIconback to summary
public FontIcon(String iconCode)
FontIconback to summary
public FontIcon(Ikon iconCode)

Method Detail

getClassCssMetaDataback to summary
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData()

Hides javafx.scene.text.Text.getClassCssMetaData.

Doc from javafx.scene.text.Text.getClassCssMetaData.

Gets the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.

Returns:List<CssMetaData<? extends Styleable, ?>>

the CssMetaData

getCssMetaDataback to summary
public List<CssMetaData<? extends Styleable, ?>> getCssMetaData()

Overrides javafx.scene.text.Text.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

Doc from javafx.css.Styleable.getCssMetaData.

The CssMetaData of this Styleable. This may be returned as an unmodifiable list.

Returns:List<CssMetaData<? extends Styleable, ?>>

the CssMetaData

Annotations
@Override
getIconCodeback to summary
public Ikon getIconCode()
getIconColorback to summary
public Paint getIconColor()

Implements org.kordamp.ikonli.javafx.Icon.getIconColor.

Annotations
@Override
getIconLiteralback to summary
public String getIconLiteral()
getIconSizeback to summary
public int getIconSize()

Implements org.kordamp.ikonli.javafx.Icon.getIconSize.

Annotations
@Override
iconCodePropertyback to summary
public ObjectProperty<Ikon> iconCodeProperty()
iconColorPropertyback to summary
public ObjectProperty<Paint> iconColorProperty()

Implements org.kordamp.ikonli.javafx.Icon.iconColorProperty.

Annotations
@Override
iconSizePropertyback to summary
public IntegerProperty iconSizeProperty()

Implements org.kordamp.ikonli.javafx.Icon.iconSizeProperty.

Annotations
@Override
invalidDescriptionback to summary
public static IllegalArgumentException invalidDescription(String description, Exception e)
normalizeStyleback to summary
private String normalizeStyle(String style, String key, String value)
ofback to summary
public static FontIcon of(Ikon ikon)
ofback to summary
public static FontIcon of(Ikon ikon, int iconSize)
ofback to summary
public static FontIcon of(Ikon ikon, Color iconColor)
ofback to summary
public static FontIcon of(Ikon iconCode, int iconSize, Color iconColor)
resolvePaintback to summary
private void resolvePaint(String iconCode, String[] parts)
resolvePaintValueback to summary
private static Paint resolvePaintValue(String iconCode, String value)
resolveSizeback to summary
private void resolveSize(String iconCode, String[] parts)
setIconCodeback to summary
public void setIconCode(Ikon iconCode)
setIconColorback to summary
public void setIconColor(Paint paint)

Implements org.kordamp.ikonli.javafx.Icon.setIconColor.

Annotations
@Override
setIconLiteralback to summary
public void setIconLiteral(String iconCode)
setIconSizeback to summary
public void setIconSize(int size)

Implements org.kordamp.ikonli.javafx.Icon.setIconSize.

Annotations
@Override
toStringback to summary
public String toString()

Overrides javafx.scene.text.Text.toString.

Doc from javafx.scene.text.Text.toString.

Returns a string representation of this Text object.

Returns:String

a string representation of this Text object.

Annotations
@Override
org.kordamp.ikonli.javafx back to summary

private Class FontIcon.StyleableProperties

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final CssMetaData<FontIcon, Ikon>
private static final CssMetaData<FontIcon, Paint>
private static final CssMetaData<FontIcon, Number>
private static final List<CssMetaData<? extends Styleable, ?>>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ICON_CODEback to summary
private static final CssMetaData<FontIcon, Ikon> ICON_CODE
ICON_COLORback to summary
private static final CssMetaData<FontIcon, Paint> ICON_COLOR
ICON_SIZEback to summary
private static final CssMetaData<FontIcon, Number> ICON_SIZE
STYLEABLESback to summary
private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES

Constructor Detail

StyleablePropertiesback to summary
private StyleableProperties()