Class TextFlow

All Implemented Interfaces:
LayoutMeasurable, LayoutMeasurableMixin, HasBackgroundProperty, HasBlendModeProperty, HasBorderProperty, HasClipProperty, HasEffectProperty, HasHeightProperty, HasLayoutXProperty, HasLayoutYProperty, HasManagedProperty, HasMaxHeightProperty, HasMaxWidthProperty, HasMinHeightProperty, HasMinWidthProperty, HasMouseTransparentProperty, HasOnMouseClickedProperty, HasOpacityProperty, HasPaddingProperty, HasParentProperty, HasPrefHeightProperty, HasPrefWidthProperty, HasSnapToPixelProperty, HasVisibleProperty, HasWidthProperty, Styleable, EventTarget, INode, PreferenceResizableNode

public class TextFlow extends VBox
Temporary simplified implementation of TextFlow that works with 1 Text. The html peer makes the text wrap (see HtmlScenePeer).
Author:
Bruno Salmon
  • Constructor Details

    • TextFlow

      public TextFlow()
    • TextFlow

      public TextFlow(Node... children)
  • Method Details

    • getContentBias

      public Orientation getContentBias()
      Specified by:
      getContentBias in interface INode
      Overrides:
      getContentBias in class VBox
      Returns:
      null unless one of its children has a content bias.
    • prefHeight

      public double prefHeight(double width)
    • setTextAlignment

      public void setTextAlignment(TextAlignment textAlignment)