Interface TextableFigure

All Superinterfaces:
Figure, PropertyBean, StyleableBean, StyleablePropertyBean, TreeNode<Figure>
All Known Implementing Classes:
LabelFigure, SimpleLabelConnectionFigure, TextAreaFigure, TextFigure

public interface TextableFigure extends Figure
A figure which holds text in an attribute.
Author:
Werner Randelshofer
  • Field Details

  • Method Details

    • applyTextableFigureProperties

      default void applyTextableFigureProperties(@Nullable RenderContext ctx, javafx.scene.text.Text text)
      Updates a text node with textable properties.

      You must set the font before you set the text, so that JavaFx does not need to retrieve the system default font, which on Windows requires that the JavaFx Toolkit is launched.

      Parameters:
      ctx - the render context
      text - a text node
    • applyTextableFigureProperties

      default void applyTextableFigureProperties(javafx.scene.control.Labeled text)
      Updates a text node with fontable properties.
      Parameters:
      text - a text node