Class TLcdFXIcon

All Implemented Interfaces:
Styleable, EventTarget

public final class TLcdFXIcon extends Group
A JavaFX node that displays an ILcdIcon. If the supplied ILcdIcon also implements ILcdChangeSource, this class will add a change listener to it and refresh itself automatically when the icon changes.
Since:
2020.0
  • Constructor Details

    • TLcdFXIcon

      public TLcdFXIcon(ILcdIcon aIcon)
      Creates a new JavaFX wrapper around the given icon.
      Parameters:
      aIcon - the icon to be displayed by this node
  • Method Details

    • getChildren

      public ObservableList<Node> getChildren()
      Returns an unmodifiable list containing the children of this node. The contents of this list are considered an implementation detail and should not be depended on.
      Overrides:
      getChildren in class Group
      Returns:
      the children of this node
    • invalidate

      public void invalidate()
      Refreshes the content of this icon. Can be used to synchronize this icon with its delegate ILcdIcon in case the latter has changed. Note that if the delegate ILcdIcon implements ILcdChangeSource, it is not necessary to call this method.