Interface TextLayoutableFigure

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

public interface TextLayoutableFigure extends Figure
A figure which supports font attributes.
Author:
Werner Randelshofer
  • Field Details

    • LINE_SPACING

      static final @Nullable CssSizeStyleableKey LINE_SPACING
      The line spacing. Default value: 0.0
    • TEXT_ALIGNMENT

      static final NonNullEnumStyleableKey<javafx.scene.text.TextAlignment> TEXT_ALIGNMENT
      The text alignment. Default value: left
    • TEXT_VPOS

      static final NonNullEnumStyleableKey<javafx.geometry.VPos> TEXT_VPOS
      The vertical position of the text. Default value: baseline
    • TEXT_HPOS

      static final NonNullEnumStyleableKey<javafx.geometry.HPos> TEXT_HPOS
      The horizontal position of the text. Default value: left
    • WRAPPING_WIDTH

      static final DoubleStyleableKey WRAPPING_WIDTH
      Text wrapping width. Default value: 0.0 (no wrapping).
  • Method Details

    • applyTextLayoutableFigureProperties

      default void applyTextLayoutableFigureProperties(@Nullable RenderContext ctx, javafx.scene.text.Text text)
      Updates a text node with fontable properties.
      Parameters:
      ctx - RenderContext, can be null
      text - a text node
    • applyTextLayoutableFigureProperties

      default void applyTextLayoutableFigureProperties(@Nullable RenderContext ctx, javafx.scene.control.Labeled text)
      Updates a Labeled node with fontable properties.
      Parameters:
      ctx - context
      text - a text node