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

public Class StackedFontIcon

extends StackPane
implements Icon
Class Inheritance
All Implemented Interfaces
org.kordamp.ikonli.javafx.Icon, javafx.css.Styleable
Imports
javafx.beans.property.IntegerProperty, .ObjectProperty, javafx.beans.value.ChangeListener, javafx.collections.ListChangeListener, .MapChangeListener, javafx.css.CssMetaData, .StyleOrigin, .Styleable, .StyleableIntegerProperty, .StyleableObjectProperty, .StyleableProperty, javafx.css.converter.PaintConverter, .SizeConverter, javafx.scene.Node, javafx.scene.layout.StackPane, javafx.scene.paint.Color, .Paint, org.kordamp.ikonli.Ikon, java.util.ArrayList, .Arrays, .List

Author
Andres Almiray

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private static class

Field Summary

Modifier and TypeField and Description
private StyleableObjectProperty<Paint>
private ChangeListener<Paint>
private StyleableIntegerProperty
private ChangeListener<Number>
private double[]
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
applySizeToIcon(int size, Icon icon, int index)

private FontIcon
createFontIcon(Ikon iconCode, int index)

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

Hides javafx.scene.layout.StackPane.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.layout.StackPane.getCssMetaData.

Implements javafx.css.Styleable.getCssMetaData.

The CssMetaData of this Styleable.

public Paint
public static double
public int
public ObjectProperty<Paint>
public IntegerProperty
private void
public void
setColors(Paint... iconColors)

public void
public void
setIconCodes(Ikon... iconCodes)

public void
private void
public static void
setIconSize(Node icon, double size)

public void
private void
public void
setIconSizes(double...
values must be within the range [0..1]
iconSizes
)

Sets the size for each child icon relative to this icon's size.

private void
updateIconCodes(Ikon[] iconCodes)

Inherited from javafx.scene.layout.StackPane:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthgetAlignmentgetAlignmentgetContentBiasgetMarginlayoutChildrenrequestLayoutsetAlignmentsetAlignmentsetMargin

Field Detail

iconColorback to summary
private StyleableObjectProperty<Paint> iconColor
iconColorChangeListenerback to summary
private ChangeListener<Paint> iconColorChangeListener
iconSizeback to summary
private StyleableIntegerProperty iconSize
iconSizeChangeListenerback to summary
private ChangeListener<Number> iconSizeChangeListener
iconSizesback to summary
private double[] iconSizes
KEY_STACKED_FONT_ICON_SIZEback to summary
private static final String KEY_STACKED_FONT_ICON_SIZE

Constructor Detail

StackedFontIconback to summary
public StackedFontIcon()

Method Detail

applySizeToIconback to summary
private void applySizeToIcon(int size, Icon icon, int index)
createFontIconback to summary
private FontIcon createFontIcon(Ikon iconCode, int index)
getClassCssMetaDataback to summary
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData()

Hides javafx.scene.layout.StackPane.getClassCssMetaData.

Doc from javafx.scene.layout.StackPane.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.layout.StackPane.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

getIconColorback to summary
public Paint getIconColor()

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

getIconSizeback to summary
public static double getIconSize(Node icon)
getIconSizeback to summary
public int getIconSize()

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

iconColorPropertyback to summary
public ObjectProperty<Paint> iconColorProperty()

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

iconSizePropertyback to summary
public IntegerProperty iconSizeProperty()

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

initializeSizesIfNeededback to summary
private void initializeSizesIfNeeded(Object[] array)
setColorsback to summary
public void setColors(Paint... iconColors)
setIconCodeLiteralsback to summary
public void setIconCodeLiterals(String... iconCodes)
setIconCodesback to summary
public void setIconCodes(Ikon... iconCodes)
setIconColorback to summary
public void setIconColor(Paint paint)

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

setIconColorOnChildrenback to summary
private void setIconColorOnChildren(Paint color)
setIconSizeback to summary
public static void setIconSize(Node icon, double size)
setIconSizeback to summary
public void setIconSize(int size)

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

setIconSizeOnChildrenback to summary
private void setIconSizeOnChildren(int size)
setIconSizesback to summary
public void setIconSizes(double... iconSizes)

Sets the size for each child icon relative to this icon's size.

Parameters
iconSizes:double[]

values must be within the range [0..1]

updateIconCodesback to summary
private void updateIconCodes(Ikon[] iconCodes)
org.kordamp.ikonli.javafx back to summary

private Class StackedFontIcon.NodeSizeListener

extends Object
implements MapChangeListener<Object, Object>
Class Inheritance
All Implemented Interfaces
javafx.collections.MapChangeListener

Field Summary

Modifier and TypeField and Description
private Node

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
onChanged(MapChangeListener.Change<?, ?>
the change that was made
change
)

Implements javafx.collections.MapChangeListener.onChanged.

Called after a change has been made to an ObservableMap.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nodeback to summary
private Node node

Constructor Detail

NodeSizeListenerback to summary
private NodeSizeListener(Node node)

Method Detail

onChangedback to summary
public void onChanged(MapChangeListener.Change<?, ?> change)

Implements javafx.collections.MapChangeListener.onChanged.

Doc from javafx.collections.MapChangeListener.onChanged.

Called after a change has been made to an ObservableMap. This method is called on every elementary change (put/remove) once. This means, complex changes like keySet().removeAll(Collection) or clear() may result in more than one call of onChanged method.

Parameters
change:MapChangeListener.Change<?, ?>

the change that was made

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

private Class StackedFontIcon.StyleableProperties

extends Object
Class Inheritance
  • java.lang.Object
  • org.kordamp.ikonli.javafx.StackedFontIcon.StyleableProperties

Field Summary

Modifier and TypeField and Description
private static final CssMetaData<StackedFontIcon, Paint>
private static final CssMetaData<StackedFontIcon, 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_COLORback to summary
private static final CssMetaData<StackedFontIcon, Paint> ICON_COLOR
ICON_SIZEback to summary
private static final CssMetaData<StackedFontIcon, Number> ICON_SIZE
STYLEABLESback to summary
private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES

Constructor Detail

StyleablePropertiesback to summary
private StyleableProperties()